lp1739286 default search box in Z39.50
[working/Evergreen.git] / Open-ILS / src / templates / staff / cat / z3950 / t_search_fields.tt2
1 <div class="form-horizontal">
2     <div class="z3950-search-field-list row">
3         <label class="col-xs-2">[% l('Default') %]</label>
4         <label class="col-xs-3">[% l('Field') %]</label>
5         <label class="col-xs-7">[% l('Value') %]</label>
6     </div>
7     <div ng-repeat="search_field in fields | orderObjectBy: 'label'" class="z3950-search-field-list row">
8         <div class="col-xs-2">
9             <input type="radio" name="default_field" ng-model="default_field" value="{{search_field.key}}" ng-change="save(search_field.key)"/>
10         </div>
11         <div class="col-xs-3">
12             <label for="z3950-field-{{search_field.key}}" class="control-label">{{search_field.label}}</label>
13         </div>
14         <div class="col-xs-7">
15             <input type="text" class="form-control" id="z3950-field-{{search_field.key}}" ng-model="search_field.query" ng-if="search_field.key != 'item_type'" focus-me="default_field == search_field.key"/>
16             <select id="z3950-field-item_type" ng-if="search_field.key == 'item_type'" ng-model="search_field.query" focus-me="default_field == 'item_type'">
17                 <option value="">[% l('All Formats') %]</option>
18                 <option value='art'>[% l('Papers or Articles') %]</option>
19                 <option value='bks'>[% l('Books') %]</option>
20                 <option value='com'>[% l('Computer files') %]</option>
21                 <option value='map'>[% l('Maps') %]</option>
22                 <option value='mix'>[% l('Mixed material') %]</option>
23                 <option value='rec'>[% l('Sound recordings') %]</option>
24                 <option value='sco'>[% l('Musical scores') %]</option>
25                 <option value='ser'>[% l('Serials') %]</option>
26                 <option value='url'>[% l('Internet Resources') %]</option>
27                 <option value='vis'>[% l('Visual materials') %]</option>
28             </select>
29         </div>
30     </div>
31 </div>