LP#1832897: add miscellaneous carousels functionality to staff interface
[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 Holdings') %]
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" ng-class="{disabled : !carousels_available}">
90                     <a ng-click="add_to_carousel()" href="">
91                         [% l('Add To Carousel') %]
92                     </a>
93             </li>
94             <li role="menuitem">
95                    <a ng-click="view_place_orders()" href="">
96                         [% l('View/Place Orders') %]
97                    </a>
98             </li>
99         </ul>
100         </div>
101     </div>
102   </div>
103 </div>
104
105 <ul class="nav nav-tabs">
106   <li ng-class="{active : record_tab == 'catalog'}">
107     <a ng-click="set_record_tab('catalog')" >
108         [% l('OPAC View') %]
109     </a>
110   </li>
111   <li ng-class="{disabled : !record_id, active : record_tab == 'marc_edit'}">
112     <a ng-click="record_id && set_record_tab('marc_edit')" >
113         [% l('MARC Edit') %]
114     </a>
115   </li>
116   <li ng-class="{disabled : !record_id, active : record_tab == 'marc_html'}">
117     <a ng-click="record_id && set_record_tab('marc_html')" >
118         [% l('MARC View') %]
119     </a>
120   </li>
121   <li ng-class="{disabled : !record_id, active : record_tab == 'holds'}">
122     <a ng-click="record_id && set_record_tab('holds')" >
123         [% l('View Holds') %]
124     </a>
125   </li>
126   <li ng-class="{disabled : !record_id, active : record_tab == 'monoparts'}">
127     <a ng-click="record_id && set_record_tab('monoparts')" >
128         [% l('Monograph Parts') %]
129     </a>
130   </li>
131   <li ng-class="{disabled : !record_id, active : record_tab == 'holdings'}">
132     <a ng-click="record_id && set_record_tab('holdings')" >
133         [% l('Holdings View') %]
134     </a>
135   </li>
136   <li ng-class="{disabled : !record_id, active : record_tab == 'conjoined'}">
137     <a ng-click="record_id && set_record_tab('conjoined')" >
138         [% l('Conjoined Items') %]
139     </a>
140   </li>
141 </ul>
142
143 <div class="tab-content">
144   <div ng-disabled="record_tab == default_tab" class="btn btn-default btn-xs pull-right" ng-click="set_default_record_tab()">
145     [% l('Set default view') %]
146   </div>
147   <div class="tab-pane active">
148     <!-- ng-show allows the catalog iframe to stay loaded (unlike ng-if) -->
149     <div ng-show="record_tab == 'catalog'">
150       <eg-embed-frame save-space="300" frame="opac_iframe" url="catalog_url" handlers="handlers" onchange="handle_page"></eg-embed-frame>
151     </div>
152     <div ng-show="record_tab == 'marc_edit'">
153       <eg-marc-edit-record fast-add="true" on-save="refresh_record_callback" dirty-flag="stop_unload" record-id="record_id"/>
154     </div>
155     <!-- ng-if the remaining tabs so they can be instantiated on demand -->
156     <div ng-if="record_tab == 'marc_html'">
157       <eg-record-html record-id="record_id"></eg-record-html>
158     </div>
159     <div ng-if="record_tab == 'holds'">
160       [% INCLUDE 'staff/cat/catalog/t_holds.tt2' %]
161     </div>
162     <div ng-if="record_tab == 'monoparts'">
163       <eg-embed-frame save-space="350" url="parts_url"></eg-embed-frame>
164     </div>
165     <div ng-if="record_tab == 'holdings'">
166       [% INCLUDE 'staff/cat/catalog/t_holdings.tt2' %]
167     </div>
168     <div ng-if="record_tab == 'conjoined'">
169       [% INCLUDE 'staff/cat/catalog/t_conjoined_items.tt2' %]
170     </div>
171   </div>
172 </div>