LP#1739286: Revert "lp1739286 default search box in Z39.50"
[working/Evergreen.git] / Open-ILS / src / templates / staff / cat / z3950 / t_search_fields.tt2
index 377695e..61c74de 100644 (file)
@@ -1,8 +1,21 @@
 <div class="form-horizontal">
-    <div ng-repeat="(code, search_field) in fields" class="z3950-search-field-list form-group">
-        <label for="z3950-field-{{code}}" class="col-xs-6 control-label">{{search_field.label}}</label>
+    <div ng-repeat="search_field in fields | orderObjectBy: 'label'" class="z3950-search-field-list form-group">
+        <label for="z3950-field-{{search_field.key}}" class="col-xs-6 control-label">{{search_field.label}}</label>
         <div class="col-xs-6">
-            <input type="text" class="form=control" id="z3950-field-{{code}}" ng-model="search_field.query">
+            <input type="text" class="form=control" id="z3950-field-{{search_field.key}}" ng-model="search_field.query" ng-if="search_field.key != 'item_type'">
+            <select ng-if="search_field.key == 'item_type'" ng-model="search_field.query">
+                <option value="">[% l('All Formats') %]</option>
+                <option value='art'>[% l('Papers or Articles') %]</option>
+                <option value='bks'>[% l('Books') %]</option>
+                <option value='com'>[% l('Computer files') %]</option>
+                <option value='map'>[% l('Maps') %]</option>
+                <option value='mix'>[% l('Mixed material') %]</option>
+                <option value='rec'>[% l('Sound recordings') %]</option>
+                <option value='sco'>[% l('Musical scores') %]</option>
+                <option value='ser'>[% l('Serials') %]</option>
+                <option value='url'>[% l('Internet Resources') %]</option>
+                <option value='vis'>[% l('Visual materials') %]</option>
+            </select>
         </div>
     </div>
 </div>