LP#1739286: Revert "lp1739286 default search box in Z39.50"
[working/Evergreen.git] / Open-ILS / src / templates / staff / cat / catalog / t_catalog.tt2
1
2 <div ng-show="record_id" class="row col-md-12">
3     <eg-record-summary record-id="record_id" no-marc-link="true" record="summary_pane_record"></eg-record-summary>
4 </div>
5
6 <div ng-show="record_id" class="row col-md-12 pad-vert">
7   <div class="col-md-6">
8     <button type="button" ng-disabled="from_route" class="btn btn-default" ng-click="opac_call('rdetailStart')">
9        [% l('Start') %]
10     </button>
11     <button type="button" ng-disabled="from_route" class="btn btn-default" ng-click="opac_call('rdetailPrev')">
12        [% l('Previous') %]
13     </button>
14     <button type="button" ng-disabled="from_route" class="btn btn-default" ng-click="opac_call('rdetailNext')">
15        [% l('Next') %]
16     </button>
17     <button type="button" ng-disabled="from_route" class="btn btn-default" ng-click="opac_call('rdetailEnd')">
18        [% l('End') %]
19     </button>
20     <button type="button" ng-disabled="from_route" class="btn btn-default" ng-click="opac_call('rdetailBackToResults', true)">
21        [% l('Back To Results') %] ( {{ search_result_index }} / {{ search_result_hit_count }} )
22     </button>
23   </div>
24   <div class="col-md-6">
25     <div class="pull-right">
26     <button type="button" class="btn btn-default" ng-click="selectedHoldingsVolCopyAdd()">
27         [% l('Add Copies') %]
28     </button>
29     <div class="btn-group" uib-dropdown dropdown-append-to-body>
30         <button id="serials-button" type="button" class="btn btn-default" uib-dropdown-toggle>
31             [% l('Serials') %] <span class="caret"></span>
32         </button>
33         <ul uib-dropdown-menu role="menu" aria-labelledby="serials-button">
34              <li role="menuitem">
35                 <a ng-click="quickReceive()">[% l('Quick Receive') %]</a>
36             </li>
37              <li role="menuitem">
38                 <a target="_self" href="./serials/{{record_id}}">[% l('Manage Subscriptions') %]</a>
39             </li>
40              <li role="menuitem">
41                 <a target="_self" href="./serials/{{record_id}}/manage-mfhds">[% l('Manage MFHDs') %]</a>
42             </li>
43         </ul>
44     </div>
45     <div class="btn-group" uib-dropdown dropdown-append-to-body>
46         <button id="mark-for-button" type="button" class="btn btn-default" uib-dropdown-toggle>
47             [% l('Mark for:') %] <span class="caret"></span>
48         </button>
49         <ul uib-dropdown-menu role="menu" aria-labelledby="mark-for-button">
50              <li role="menuitem">
51                     <a ng-click="markConjoined()" href="">
52                         [% l('Conjoined Items') %]
53                     <span class="target-record-aside" ng-if="current_conjoined_target">[% l('(Currently [_1])', '{{current_conjoined_target}}') %]</span>
54                 </a>
55             </li>
56            <li role="menuitem">
57                 <a ng-click="markOverlay()" href="">
58                     [% l('Overlay Target') %]
59                     <span class="target-record-aside" ng-if="current_overlay_target">[% l('(Currently [_1])', '{{current_overlay_target}}') %]</span>
60                 </a>
61             </li>
62             <li role="menuitem">
63                 <a ng-click="mark_hold_transfer_dest()" href="">
64                    [% l('Title Hold Transfer') %]
65                 <span class="target-record-aside" ng-if="current_hold_transfer_dest">[% l('(Currently [_1])', '{{current_hold_transfer_dest}}') %]</span>
66                 </a>
67             </li>
68             <li role="menuitem">
69                 <a ng-click="markHoldingsTransfer()" href="">
70                     [% l('Holdings Transfer') %]
71                     <span class="target-record-aside" ng-if="current_transfer_target">[% l('(Currently [_1])', '{{current_transfer_target}}') %]</span>
72                 </a>
73             </li>
74             <li role="menuitem">
75                 <a ng-click="clearRecordMarks()" href="">[% l('Reset Record Marks') %]</a>
76             </li>
77         </ul>
78     </div>
79         <div class="btn-group" uib-dropdown dropdown-append-to-body>
80         <button id="other-actions-button" type="button" class="btn btn-default" uib-dropdown-toggle>
81             [% l('Other Actions:') %] <span class="caret"></span>
82         </button>
83         <ul uib-dropdown-menu role="menu" aria-labelledby="other-actions-button">
84              <li role="menuitem">
85                     <a ng-click="add_to_record_bucket()" href="">
86                         [% l('Add To Bucket') %]
87                     </a>
88             </li>
89             <li role="menuitem">
90                    <a ng-click="view_place_orders()" href="">
91                         [% l('View/Place Orders') %]
92                    </a>
93             </li>
94         </ul>
95         </div>
96     </div>
97   </div>
98 </div>
99
100 <ul class="nav nav-tabs">
101   <li ng-class="{active : record_tab == 'catalog'}">
102     <a ng-click="set_record_tab('catalog')" >
103         [% l('OPAC View') %]
104     </a>
105   </li>
106   <li ng-class="{disabled : !record_id, active : record_tab == 'marc_edit'}">
107     <a ng-click="record_id && set_record_tab('marc_edit')" >
108         [% l('MARC Edit') %]
109     </a>
110   </li>
111   <li ng-class="{disabled : !record_id, active : record_tab == 'marc_html'}">
112     <a ng-click="record_id && set_record_tab('marc_html')" >
113         [% l('MARC View') %]
114     </a>
115   </li>
116   <li ng-class="{disabled : !record_id, active : record_tab == 'holds'}">
117     <a ng-click="record_id && set_record_tab('holds')" >
118         [% l('View Holds') %]
119     </a>
120   </li>
121   <li ng-class="{disabled : !record_id, active : record_tab == 'monoparts'}">
122     <a ng-click="record_id && set_record_tab('monoparts')" >
123         [% l('Monograph Parts') %]
124     </a>
125   </li>
126   <li ng-class="{disabled : !record_id, active : record_tab == 'holdings'}">
127     <a ng-click="record_id && set_record_tab('holdings')" >
128         [% l('Holdings View') %]
129     </a>
130   </li>
131   <li ng-class="{disabled : !record_id, active : record_tab == 'conjoined'}">
132     <a ng-click="record_id && set_record_tab('conjoined')" >
133         [% l('Conjoined Items') %]
134     </a>
135   </li>
136 </ul>
137
138 <div class="tab-content">
139   <div ng-disabled="record_tab == default_tab" class="btn btn-default btn-xs pull-right" ng-click="set_default_record_tab()">
140     [% l('Set default view') %]
141   </div>
142   <div class="tab-pane active">
143     <!-- ng-show allows the catalog iframe to stay loaded (unlike ng-if) -->
144     <div ng-show="record_tab == 'catalog'">
145       <eg-embed-frame save-space="300" frame="opac_iframe" url="catalog_url" handlers="handlers" onchange="handle_page"></eg-embed-frame>
146     </div>
147     <div ng-show="record_tab == 'marc_edit'">
148       <eg-marc-edit-record fast-add="true" on-save="refresh_record_callback" dirty-flag="stop_unload" record-id="record_id"/>
149     </div>
150     <!-- ng-if the remaining tabs so they can be instantiated on demand -->
151     <div ng-if="record_tab == 'marc_html'">
152       <eg-record-html record-id="record_id"></eg-record-html>
153     </div>
154     <div ng-if="record_tab == 'holds'">
155       [% INCLUDE 'staff/cat/catalog/t_holds.tt2' %]
156     </div>
157     <div ng-if="record_tab == 'monoparts'">
158       <eg-embed-frame save-space="350" url="parts_url"></eg-embed-frame>
159     </div>
160     <div ng-if="record_tab == 'holdings'">
161       [% INCLUDE 'staff/cat/catalog/t_holdings.tt2' %]
162     </div>
163     <div ng-if="record_tab == 'conjoined'">
164       [% INCLUDE 'staff/cat/catalog/t_conjoined_items.tt2' %]
165     </div>
166   </div>
167 </div>