Bug 6170: restore more options to staff adv search
authorColin Campbell <colin.campbell@ptfs-europe.com>
Tue, 12 Apr 2011 20:43:43 +0000 (22:43 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 12 Apr 2011 22:57:18 +0000 (10:57 +1200)
Some globals were assigned as search box attributes in conversion
causing elements to be suppressed

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt

index c7d34d5..bfa5179 100644 (file)
 <!-- BOOLEAN SEARCH OPTIONS -->
     <fieldset>
     <legend>Search For: </legend>
-    [% FOREACH search_boxes_loo IN search_boxes_loop %]
-        [% IF ( search_boxes_loo.search_boxes_label ) %]<div style="text-indent: 4.5em;">[% ELSE %]<div>[% END %]
-                       [% IF ( search_boxes_loo.expanded_options ) %]
-            [% IF ( search_boxes_loo.boolean ) %]
+    [% FOREACH search_box IN search_boxes_loop %]
+        [% IF ( search_boxes_label ) %]<div style="text-indent: 4.5em;">[% ELSE %]<div>[% END %]
+                       [% IF ( expanded_options ) %]
+            [% IF ( search_box.boolean ) %]
                 <select name="op">
                     <option value="and" selected="selected">and</option>
                     <option value="or">or</option>
                        [% END %]
                        [% INCLUDE 'search_indexes.inc' %]
                        <input type="text" size="30" name="q" title="Enter search terms" value="" />
-            [% IF ( search_boxes_loo.expanded_options ) %]
-                [% IF ( search_boxes_loo.add_field ) %]
+            [% IF ( expanded_options ) %]
+                [% IF ( search_box.add_field ) %]
                     <a href="JavaScript:add_field();" id="ButtonPlus" title="Add another field">[+]</a>
                                [% END %]
-               [% IF ( search_boxes_loo.scan_index ) %]
-                       <label for="scan">Scan Indexes</label><input type="checkbox" name="scan" id="scan" value="1" />
-               [% END %]
+              [% IF ( search_box.scan_index ) %]
+                <label for="scan">Scan Indexes</label><input type="checkbox" name="scan" id="scan" value="1" />
+              [% END %]
             [% END %]
                </div>
     [% END %]