(sitka) [rt14111] Limit search to eBook or print materials user/lwhalen/rt14111
authorLiam Whalen <liam.whalen@bc.libraries.coop>
Mon, 21 Oct 2013 18:17:52 +0000 (11:17 -0700)
committerLiam Whalen <liam.whalen@bc.libraries.coop>
Wed, 23 Oct 2013 05:38:56 +0000 (22:38 -0700)
Support asked to have new Format limiters added to the Basic and
Advanced Search options.  This commit changes 3 files.  It changes
search.tt2 to allow the 'All Formats' option to appear in the Advanced
Search.  It also modifies searchbar.tt2 and searchbar_staff.tt2 to, so
the new format limiters can be seen in the Basic Search.

Signed-off-by: Liam Whalen <liam.whalen@bc.libraries.coop>
Open-ILS/src/templates/opac/parts/advanced/search.tt2
Open-ILS/src/templates/opac/parts/searchbar.tt2
Open-ILS/src/templates/opac/parts/searchbar_staff.tt2

index 4755f0f..c480863 100644 (file)
@@ -129,7 +129,7 @@ class="opac-button">[% l('Clear Form') %]</a>
                 attr=adv_chunk.adv_attr multiple="multiple" size="4";
         ELSIF adv_chunk.adv_filter;
             INCLUDE "opac/parts/filter_group_selector.tt2"
-                filter_group=adv_chunk.adv_filter multiple="multiple" size="4";
+                filter_group=adv_chunk.adv_filter multiple="multiple" size="4" none_ok=1 none_label=l('All Formats');
         END; %]
             </td>
 [%
index 2df300d..d8b1e35 100644 (file)
 
     <br />    
     <br />    
-
-    [%- INCLUDE "opac/parts/coded_value_selector.tt2"
-            attr=["mattype", "item_type"] none_ok=1 none_label=l('All Formats');
+        [%- INCLUDE "opac/parts/filter_group_selector.tt2"
+            filter_group=["format_limiters"] none_ok=1 none_label=l('All Formats');
             l(' FOR ');
-        %]
+        %] 
         [%- 
             select_lib_label = l("Select search library");
             INCLUDE "opac/parts/qtype_selector.tt2" id="qtype";
index 3b4e794..2023e34 100644 (file)
@@ -5,10 +5,10 @@
     [%- END %]
 
     <div class="searchbar">[%- l('SEARCH');
-        INCLUDE "opac/parts/coded_value_selector.tt2"
-            attr=["mattype", "item_type"] none_ok=1 none_label=l('All Formats');
+            INCLUDE "opac/parts/filter_group_selector.tt2"
+            filter_group=["format_limiters"] none_ok=1 none_label=l('All Formats');
             l(' FOR ');
-        %]
+        %] 
         <span class='search_box_wrapper'>
             <input type="text" id="search_box" name="query"
                [%- IF CGI.param('qtype') and not is_special  %]