]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/cat/z3950/t_list.tt2
webstaff: Z39.50 - various improvements
[Evergreen.git] / Open-ILS / src / templates / staff / cat / z3950 / t_list.tt2
1 <div class="row">
2   <a class="pull-right" href ng-click="toggle_search_form()"
3     title="[% l('Hide Search Form') %]"
4     ng-show="show_search_form()">
5     <span class="glyphicon glyphicon-resize-small"></span>
6   </a>
7   <a class="pull-right" href ng-click="toggle_search_form()"
8     title="[% l('Show Search Form') %]"
9     ng-hide="show_search_form()">
10     <span class="glyphicon glyphicon-resize-full"></span>
11   </a>
12 </div>
13
14 <div class="row">
15     <div class="col-xs-6">
16         <strong>[% l('Query') %]</strong>
17         <form ng-keyup="$event.keyCode == 13 && search()">
18         <eg-z3950-search-field-list ng-show="show_search_form()"></eg-z3950-search-field-list>
19         </form>
20     </div>
21     <div class="col-xs-6">
22         <strong>[% l('Service and Credentials') %]</strong>
23         <eg-z3950-target-list ng-show="show_search_form()">
24     </div>
25 </div>
26
27 <div class="row" id="z3950-search-form-row" ng-show="show_search_form()">
28     <form ng-submit="search()" id="z3950-search-form"
29         role="form" class="form-inline">
30         <div class="button-group">
31                 <input type="submit" class="btn btn-primary" value="[% l('Search') %]"/>
32
33                 <input type="reset" class="btn btn-primary" ng-click="clearForm()"
34                 value="[% l('Clear Form') %]"/>
35         </div>
36     </form>
37 </div>
38
39 <eg-grid
40   id-field="index"
41   idl-class="mvr"
42   features="-display,-sort,-multisort,-multiselect"
43   items-provider="z3950SearchGridProvider"
44   grid-controls="gridControls"
45   persist-key="cat.z3950_results">
46
47   <eg-grid-menu-item handler="showInCatalog" disabled="cant_showInCatalog"
48     label="[% l('Show in Catalog') %]"></eg-grid-menu>
49   <eg-grid-menu-item handler="import" disabled="cant_import"
50     label="[% l('Import') %]"></eg-grid-menu>
51   <eg-grid-menu-item handler="spawn_editor" disabled="cant_import"
52     label="[% l('Edit then Import') %]"></eg-grid-menu>
53
54     <!-- 
55       FIXME: it would be nice to make this column link
56       to record display page when the service is
57       'native-evergreen-catalog', but can't do ng-if
58       inside of column value templates at the moment
59     -->
60     <eg-grid-field label="[% l('Title') %]" path="title" visible></eg-grid-field>
61     <eg-grid-field label="[% l('Author') %]" path="author" visible></eg-grid-field>
62     <eg-grid-field label="[% l('Edition') %]" path="edition" visible></eg-grid-field>
63     <eg-grid-field label="[% l('ISBN') %]" path="isbn" visible></eg-grid-field>
64     <eg-grid-field label="[% l('Publication Date') %]" path="pubdate" visible></eg-grid-field>
65     <eg-grid-field label="[% l('Publisher') %]" path="publisher" visible></eg-grid-field>
66     <eg-grid-field label="[% l('Service') %]" path="service" visible></eg-grid-field>
67     <eg-grid-field label="[% l('TCN') %]" path="tcn" visible></eg-grid-field>
68     <eg-grid-field label
69     <eg-grid-field path="*" hidden></eg-grid-field>
70 </eg-grid>