Restore missing format selector from search bar
authorDan Scott <dscott@laurentian.ca>
Wed, 18 Sep 2013 21:23:46 +0000 (17:23 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 25 Sep 2013 22:42:08 +0000 (18:42 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/templates/opac/css/style.css.tt2
Open-ILS/src/templates/opac/parts/searchbar.tt2

index fde2104..6f6156d 100644 (file)
@@ -1925,7 +1925,7 @@ a.preflib_change {
     } 
     .searchbar { line-height: 1.5em; }
     #browse-controls { line-height: 1.5em; }
-    #search_query_label, #search_qtype_label, #search_locg_label {
+    #search_query_label, #search_qtype_label, #search_itype_label, #search_locg_label {
         display: block;
     }
     .bookshelf td {
index b276a9d..9ea7f6c 100644 (file)
             INCLUDE "opac/parts/qtype_selector.tt2" id="qtype";
         -%]
         </label>
+        <label id="search_itype_label">
+        [%-
+            l('Format: ');
+            IF search.basic_config.type == 'attr';
+                INCLUDE "opac/parts/coded_value_selector.tt2"
+                    attr=search.basic_config.group none_ok=1 none_label=search.basic_config.none_label;
+            ELSIF search.basic_config.type == 'filter';
+                INCLUDE "opac/parts/filter_group_selector.tt2"
+                    filter_group=search.basic_config.group none_ok=1 none_label=search.basic_config.none_label;
+            END;
+        -%]
         <label id="search_locg_label">
         [%- 
             l('Library: ');