LP#1739286: Revert "lp1739286 default search box in Z39.50"
[working/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()"></eg-z3950-target-list>
24         <div class="button-group">
25             <button class="btn btn-default" ng-click="saveDefaultZ3950Targets()">
26                 [% l('Save as Default') %]
27             </button>
28         </div>
29     </div>
30 </div>
31
32 <div class="row" id="z3950-search-form-row" ng-show="show_search_form()">
33     <form ng-submit="search()" id="z3950-search-form"
34         role="form" class="form-inline">
35         <div class="button-group">
36                 <input type="submit" class="btn btn-primary" value="[% l('Search') %]"/>
37
38                 <input type="reset" class="btn btn-primary" ng-click="clearForm()"
39                 value="[% l('Clear Form') %]"/>
40                 <button class="btn btn-default" ng-click="showRawSearchForm()"
41                         ng-disabled="raw_search_impossible()">
42                     [% l('Raw Search') %]
43                 </button>
44         </div>
45     </form>
46 </div>
47
48 <div class="panel panel-default" ng-show="field_strip_groups.length">
49   <div class="panel-heading">[% l('Remove Fields on Import') %]</div>
50   <div class="panel-body">
51     <ul class="row list-unstyled">
52         <li class="col-sm-3" ng-repeat="grp in field_strip_groups">
53             <label>
54             <input id='strip-grp-{{grp.id()}}' ng-model="grp.selected" type="checkbox"/>{{grp.label()}}</label>
55         </li>
56     </ul>
57   </div>
58 </div>
59
60 <div class="row" ng-show="searchInProgress">
61   <div class="col-md-6">
62     <div class="progress progress-striped active">
63         <div class="progress-bar"  role="progressbar" aria-valuenow="100"
64               aria-valuemin="0" aria-valuemax="100" style="width: 100%">
65             <span class="sr-only">[% l('Searching...') %]</span>
66         </div>
67     </div>
68   </div>
69 </div>
70
71 <div class="row">
72     <div class="col-md-6">
73         [% l('Total hits: [_1]', '{{total_hits}}') %]
74     </div>
75     <div class="col-md-6 text-right" ng-if="local_overlay_target">
76         [% l('Record with TCN [_1] marked for overlay.', '{{local_overlay_target}}') %]"
77     </div>
78     <div class="col-md-6 text-right" ng-if="!local_overlay_target">
79         [% l('No record marked for overlay.') %]
80     </div>
81 </div>
82
83
84 <eg-grid
85   id-field="index"
86   idl-class="mvr"
87   features="-display,-sort,-multisort,-multiselect"
88   items-provider="z3950SearchGridProvider"
89   grid-controls="gridControls"
90   persist-key="cat.z3950_results"
91   dateformat="{{$root.egDateAndTimeFormat}}">
92
93   <eg-grid-menu-item handler="showInCatalog" disabled="cant_showInCatalog"
94     label="[% l('Show in Catalog') %]"></eg-grid-menu-item>
95   <eg-grid-menu-item handler="import" disabled="need_one_selected"
96     label="[% l('Import') %]"></eg-grid-menu-item>
97   <eg-grid-menu-item handler="spawn_editor" disabled="need_one_selected"
98     label="[% l('Edit then Import') %]"></eg-grid-menu-item>
99   <eg-grid-menu-item handler="view_marc" disabled="need_one_selected"
100     label="[% l('View MARC') %]"></eg-grid-menu-item>
101   <eg-grid-menu-item handler="mark_as_overlay_target" disabled="cant_showInCatalog"
102     label="[% l('Mark Local Result As Overlay Target') %]"></eg-grid-menu-item>
103   <eg-grid-menu-item handler="overlay_record" disabled="cant_overlay"
104     label="[% l('Overlay') %]"></eg-grid-menu-item>
105
106   <eg-grid-action handler="showInCatalog" disabled="cant_showInCatalog"
107     label="[% l('Show in Catalog') %]"></eg-grid-action>
108   <eg-grid-action handler="import" disabled="need_one_selected"
109     label="[% l('Import') %]"></eg-grid-action>
110   <eg-grid-action handler="spawn_editor" disabled="need_one_selected"
111     label="[% l('Edit then Import') %]"></eg-grid-action>
112   <eg-grid-action handler="view_marc" disabled="need_one_selected"
113     label="[% l('View MARC') %]"></eg-grid-action>
114   <eg-grid-action handler="mark_as_overlay_target" disabled="cant_showInCatalog"
115     label="[% l('Mark Local Result As Overlay Target') %]"></eg-grid-action>
116   <eg-grid-action handler="overlay_record" disabled="cant_overlay"
117     label="[% l('Overlay') %]"></eg-grid-action>
118
119     <!-- 
120       FIXME: it would be nice to make this column link
121       to record display page when the service is
122       'native-evergreen-catalog', but can't do ng-if
123       inside of column value templates at the moment
124     -->
125     <eg-grid-field label="[% l('Title') %]" path="title" visible></eg-grid-field>
126     <eg-grid-field label="[% l('Author') %]" path="author" visible></eg-grid-field>
127     <eg-grid-field label="[% l('Edition') %]" path="edition" visible></eg-grid-field>
128     <eg-grid-field label="[% l('ISBN') %]" path="isbn" visible></eg-grid-field>
129     <eg-grid-field label="[% l('Publication Date') %]" path="pubdate" visible></eg-grid-field>
130     <eg-grid-field label="[% l('Publisher') %]" path="publisher" visible></eg-grid-field>
131     <eg-grid-field label="[% l('Service') %]" path="service" visible></eg-grid-field>
132     <eg-grid-field label="[% l('TCN') %]" path="tcn" visible></eg-grid-field>
133     <eg-grid-field path="*" hidden></eg-grid-field>
134 </eg-grid>