]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/cat/catalog/t_holds.tt2
cc7d4e66d0b1d7f0816bdad7fb556ac1f9e1a430
[Evergreen.git] / Open-ILS / src / templates / staff / cat / catalog / t_holds.tt2
1
2 <div ng-if="!detail_hold_id">
3   <div class="row">
4     <div class="col-md-3">
5       <div class="input-group">
6         <span class="input-group-addon">[% l('Pickup Library') %]</span>
7         <eg-org-selector selected="pickup_ou" onchange="pickup_ou_changed"></eg-org-selector>
8       </div>
9     </div>
10   </div>
11   <div class="pad-vert"></div>
12
13   <eg-grid
14     id-field="id"
15     features="clientsort,"
16     items-provider="hold_grid_data_provider"
17     grid-controls="hold_grid_controls"
18     persist-key="cat.catalog.wide_holds"
19     dateformat="{{$root.egDateAndTimeFormat}}">
20
21     <eg-grid-menu-item handler="detail_view" 
22       label="[% l('Detail View') %]"></eg-grid-menu-item>
23     <!-- <eg-grid-menu-item handler="mark_hold_transfer_dest"
24       label="[% l('Mark as Title Hold Transfer Destination') %]"></eg-grid-menu-item>
25         <eg-grid-menu-item handler="transfer_holds_to_marked"
26       label="[% l('Transfer All Title Holds') %]"></eg-grid-menu-item> -->
27
28     <eg-grid-action handler="grid_actions.show_recent_circs_wide" group="[% l('Item') %]"
29       label="[% l('Show Last Few Circulations') %]"></eg-grid-action>
30     <eg-grid-action handler="grid_actions.show_patrons_wide" group="[% l('Patron') %]"
31       label="[% l('Retrieve Patron') %]"></eg-grid-action>
32     <eg-grid-action group="[% l('Hold') %]" handler="grid_actions.set_copy_quality_wide"
33       label="[% l('Set Desired Item Quality') %]"></eg-grid-action>
34     <eg-grid-action group="[% l('Hold') %]" handler="grid_actions.edit_pickup_lib_wide"
35       label="[% l('Edit Pickup Library') %]"></eg-grid-action>
36     <eg-grid-action group="[% l('Hold') %]" handler="grid_actions.edit_notify_prefs_wide"
37       label="[% l('Edit Notification Settings') %]"></eg-grid-action>
38     <eg-grid-action group="[% l('Hold') %]" handler="grid_actions.edit_dates_wide"
39       label="[% l('Edit Hold Dates') %]"></eg-grid-action>
40     <eg-grid-action handler="grid_actions.activate_wide" group="[% l('Hold') %]"
41       label="[% l('Activate') %]"></eg-grid-action>
42     <eg-grid-action handler="grid_actions.suspend_wide" group="[% l('Hold') %]"
43       label="[% l('Suspend') %]"></eg-grid-action>
44     <eg-grid-action handler="grid_actions.set_top_of_queue_wide" group="[% l('Hold') %]"
45       label="[% l('Set Top of Queue') %]"></eg-grid-action>
46     <eg-grid-action handler="grid_actions.clear_top_of_queue_wide" group="[% l('Hold') %]"
47       label="[% l('Un-Set Top of Queue') %]"></eg-grid-action>
48     <eg-grid-action handler="grid_actions.transfer_to_marked_title_wide" group="[% l('Hold') %]"
49       label="[% l('Transfer To Marked Title') %]"></eg-grid-action>
50     <eg-grid-action handler="grid_actions.mark_damaged_wide" group="[% l('Item') %]"
51       label="[% l('Mark Item Damaged') %]"></eg-grid-action>
52     <eg-grid-action handler="grid_actions.mark_missing_wide" group="[% l('Item') %]"
53       label="[% l('Mark Item Missing') %]"></eg-grid-action>
54     <eg-grid-action handler="grid_actions.retarget_wide" group="[% l('Hold') %]"
55       label="[% l('Find Another Target') %]"></eg-grid-action>
56     <eg-grid-action handler="grid_actions.cancel_wide_hold" group="[% l('Hold') %]"
57       label="[% l('Cancel Hold') %]"></eg-grid-action>
58
59     <eg-grid-field label="[% l('Hold ID') %]" path='hold.id'></eg-grid-field>
60     <eg-grid-field label="[% l('Current Item') %]" 
61       path='hold.cp_barcode'>
62       <a href="./cat/item/{{item.hold.cp_id}}/summary" target="_self">
63         {{item.hold.cp_barcode}}
64       </a>
65     </eg-grid-field>
66
67     <eg-grid-field label="[% l('Patron Barcode') %]" path='hold.ucard_barcode' hidden></eg-grid-field>
68     <eg-grid-field label="[% l('Patron alias') %]">{{item.usr_alias}}</eg-grid-field>
69     <eg-grid-field label="[% l('Request Date') %]" path='hold.request_time' datatype="timestamp"></eg-grid-field>
70     <eg-grid-field label="[% l('Capture Date') %]" path='hold.capture_time' datatype="timestamp"></eg-grid-field>
71     <eg-grid-field label="[% l('Available Date') %]" path='hold.shelf_time' datatype="timestamp"></eg-grid-field>
72     <eg-grid-field label="[% l('Hold Type') %]" path='hold.hold_type'></eg-grid-field>
73     <eg-grid-field label="[% l('Pickup Library') %]" path='hold.pl_shortname'></eg-grid-field>
74
75   <eg-grid-field label="[% l('Title') %]" path='hold.title'>
76     <a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.hold.record_id}}">
77       {{item.hold.title}}
78     </a>
79   </eg-grid-field>
80
81   <eg-grid-field label="[% l('Author') %]" path='hold.author'></eg-grid-field>
82   <eg-grid-field label="[% l('Potential Items') %]" path='hold.potentials'></eg-grid-field>
83   <eg-grid-field label="[% l('Status') %]" path='status_string'></eg-grid-field>
84
85   <eg-grid-field label="[% l('Queue Position') %]" path='hold.relative_queue_position' hidden></eg-grid-field>
86
87     <eg-grid-field path='hold.usr_id' label="[% l('User ID') %]" hidden></eg-grid-field>
88     <eg-grid-field path='hold.usr_usrname' label="[% l('Username') %]" hidden></eg-grid-field>
89     <eg-grid-field path='hold.usr_first_given_name' label="[% l('First Name') %]" hidden></eg-grid-field>
90     <eg-grid-field path='hold.usr_family_name' label="[% l('Last Name') %]" hidden></eg-grid-field>
91     <eg-grid-field path='hold.rusr_id' label="[% l('Requestor ID') %]" hidden></eg-grid-field>
92     <eg-grid-field path='hold.rusr_usrname' label="[% l('Requestor Username') %]" hidden></eg-grid-field>
93
94    <eg-grid-field label="[% l('Item Status') %]" path="hold.cs_name" hidden></eg-grid-field>
95
96     <eg-grid-field path='hold.acnp_label' label="[% l('CN Prefix') %]" hidden></eg-grid-field>
97     <eg-grid-field path='hold.acns_label' label="[% l('CN Suffix') %]" hidden></eg-grid-field>
98     <eg-grid-field path='mvr.*' parent-idl-class="mvr" hidden></eg-grid-field>
99
100   <eg-grid-field label="[% l('Copy Status') %]" path="hold.cs_name" hidden></eg-grid-field>
101
102   <eg-grid-field label="[% l('Fulfillment Date/Time') %]" path='hold.fulfillment_time' datatype="timestamp" hidden></eg-grid-field>
103   <eg-grid-field label="[% l('Checkin Time') %]" path='hold.checkin_time' datatype="timestamp" hidden></eg-grid-field>
104   <eg-grid-field label="[% l('Return Time') %]" path='hold.return_time' datatype="timestamp" hidden></eg-grid-field>
105   <eg-grid-field label="[% l('Last Targeting Date/Time') %]" path='hold.prev_check_time' datatype="timestamp" hidden></eg-grid-field>
106   <eg-grid-field label="[% l('Expire Time') %]" path='hold.expire_time' datatype="timestamp" hidden></eg-grid-field>
107   <eg-grid-field label="[% l('Hold Cancel Date/Time') %]" path='hold.cancel_time' datatype="timestamp" hidden></eg-grid-field>
108   <eg-grid-field label="[% l('Cancelation note') %]" path='hold.cancel_note' hidden></eg-grid-field>
109   <eg-grid-field label="[% l('Hold Target') %]" path='hold.target' hidden></eg-grid-field>
110   <eg-grid-field label="[% l('Current Copy') %]" path='hold.current_copy' hidden></eg-grid-field>
111   <eg-grid-field label="[% l('Fulfilling Staff') %]" path='hold.fulfillment_staff' hidden></eg-grid-field>
112   <eg-grid-field label="[% l('Fulfilling Library') %]" path='hold.fulfillment_lib' hidden></eg-grid-field>
113   <eg-grid-field label="[% l('Requesting Library') %]" path='hold.request_lib' hidden></eg-grid-field>
114   <eg-grid-field label="[% l('Requesting User') %]" path='hold.requestor' hidden></eg-grid-field>
115   <eg-grid-field label="[% l('User') %]" path='hold.usr' hidden></eg-grid-field>
116   <eg-grid-field label="[% l('Selection Library') %]" path='hold.selection_ou' hidden></eg-grid-field>
117   <eg-grid-field label="[% l('Item Selection Depth') %]" path='hold.selection_depth' hidden></eg-grid-field>
118   <eg-grid-field label="[% l('Holdable Formats (for M-type hold)') %]" path='hold.holdable_formats' hidden></eg-grid-field>
119   <eg-grid-field label="[% l('Notifications Phone Number') %]" path='hold.phone_notify' hidden></eg-grid-field>
120   <eg-grid-field label="[% l('Notifications SMS Number') %]" path='hold.sms_notify' hidden></eg-grid-field>
121   <eg-grid-field label="[% l('Notify by Email?') %]" path='hold.email_notify' datatype="bool" hidden></eg-grid-field>
122   <eg-grid-field label="[% l('SMS Carrier') %]" path='hold.sms_carrier' hidden></eg-grid-field>
123   <eg-grid-field label="[% l('Currently Frozen') %]" path='hold.frozen' datatype="bool" hidden></eg-grid-field>
124   <eg-grid-field label="[% l('Activation Date') %]" path='hold.thaw_date' datatype="timestamp" hidden></eg-grid-field>
125   <eg-grid-field label="[% l('Top of Queue') %]" path='hold.cut_in_line' datatype="bool" hidden></eg-grid-field>
126   <eg-grid-field label="[% l('Is Mint Condition') %]" path='hold.mint_condition' datatype="bool" hidden></eg-grid-field>
127   <eg-grid-field label="[% l('Shelf Expire Time') %]" path='hold.shelf_expire_time' datatype="timestamp" hidden></eg-grid-field>
128   <eg-grid-field label="[% l('Current Shelf Library') %]" path='hold.current_shelf_lib' hidden></eg-grid-field>
129   <eg-grid-field label="[% l('Behind Desk') %]" path='hold.behind_desk' datatype="bool" hidden></eg-grid-field>
130   <eg-grid-field label="[% l('Status') %]" path='hold.hold_status' hidden></eg-grid-field>
131   <eg-grid-field label="[% l('Clearable') %]" path='hold.clear_me' datatype="bool" hidden></eg-grid-field>
132   <eg-grid-field label="[% l('Is Staff-placed Hold') %]" path='hold.is_staff_hold' datatype="bool" hidden></eg-grid-field>
133   <eg-grid-field label="[% l('Cancelation Cause ID') %]" path='hold.cc_id' hidden></eg-grid-field>
134   <eg-grid-field label="[% l('Cancelation Cause') %]" path='hold.cc_label' hidden></eg-grid-field>
135   <eg-grid-field label="[% l('Pickup Library') %]" path='hold.pl_shortname'></eg-grid-field>
136   <eg-grid-field label="[% l('Pickup Library Name') %]" path='hold.pl_name' hidden></eg-grid-field>
137   <eg-grid-field label="[% l('Pickup Library Email') %]" path='hold.pl_email' hidden></eg-grid-field>
138   <eg-grid-field label="[% l('Pickup Library Phone') %]" path='hold.pl_phone' hidden></eg-grid-field>
139   <eg-grid-field label="[% l('Pickup Library Opac Visible') %]" path='hold.pl_opac_visible' hidden></eg-grid-field>
140   <eg-grid-field label="[% l('Transit ID') %]" path='hold.tr_id' hidden></eg-grid-field>
141   <eg-grid-field label="[% l('Transit Send Time') %]" path='hold.tr_source_send_time' datatype="timestamp" hidden></eg-grid-field>
142   <eg-grid-field label="[% l('Transit Receive Time') %]" path='hold.tr_dest_recv_time' datatype="timestamp" hidden></eg-grid-field>
143   <eg-grid-field label="[% l('Transit Copy') %]" path='hold.tr_target_copy' hidden></eg-grid-field>
144   <eg-grid-field label="[% l('Transit Source') %]" path='hold.tr_source' hidden></eg-grid-field>
145   <eg-grid-field label="[% l('Transit Destination') %]" path='hold.tr_dest' hidden></eg-grid-field>
146   <eg-grid-field label="[% l('Transit Copy Status') %]" path='hold.tr_copy_status' hidden></eg-grid-field>
147   <eg-grid-field label="[% l('Transit Hold') %]" path='hold.tr_hold' hidden></eg-grid-field>
148   <eg-grid-field label="[% l('Transit Cancel Time') %]" path='hold.tr_cancel_time' datatype="timestamp" hidden></eg-grid-field>
149   <eg-grid-field label="[% l('Hold Note Count') %]" path='hold.note_count' hidden></eg-grid-field>
150   <eg-grid-field label="[% l('User Display Name') %]" path='hold.usr_display_name' hidden></eg-grid-field>
151   <eg-grid-field label="[% l('Requestor Username') %]" path='hold.rusr_usrname' hidden></eg-grid-field>
152   <eg-grid-field label="[% l('Copy ID') %]" path='hold.cp_id' hidden></eg-grid-field>
153   <eg-grid-field label="[% l('Copy Number on Volume') %]" path='hold.cp_copy_number' hidden></eg-grid-field>
154   <eg-grid-field label="[% l('Fine Level') %]" path='hold.cp_fine_level' hidden></eg-grid-field>
155   <eg-grid-field label="[% l('Can Circulate') %]" path='hold.cp_circulate' datatype="bool" hidden></eg-grid-field>
156   <eg-grid-field label="[% l('Deposit Amount') %]" path='hold.cp_deposit_amount' datatype="bool" hidden></eg-grid-field>
157   <eg-grid-field label="[% l('Is Deposit Required') %]" path='hold.cp_deposit' datatype="bool" hidden></eg-grid-field>
158   <eg-grid-field label="[% l('Is Reference') %]" path='hold.cp_ref' datatype="bool" hidden></eg-grid-field>
159   <eg-grid-field label="[% l('Is Holdable') %]" path='hold.cp_holdable' datatype="bool" hidden></eg-grid-field>
160   <eg-grid-field label="[% l('Price') %]" path='hold.cp_price' hidden></eg-grid-field>
161   <eg-grid-field label="[% l('Copy Barcode') %]" path='hold.cp_barcode' hidden></eg-grid-field>
162   <eg-grid-field label="[% l('Circulation Modifier') %]" path='hold.cp_circ_modifier' hidden></eg-grid-field>
163   <eg-grid-field label="[% l('Circulate as MARC Type') %]" path='hold.cp_circ_as_type' hidden></eg-grid-field>
164   <eg-grid-field label="[% l('Precat Dummy Title') %]" path='hold.cp_dummy_title' hidden></eg-grid-field>
165   <eg-grid-field label="[% l('Precat Dummy Author') %]" path='hold.cp_dummy_author' hidden></eg-grid-field>
166   <eg-grid-field label="[% l('Copy Alert Message (deprecated)') %]" path='hold.cp_alert_message' hidden></eg-grid-field>
167   <eg-grid-field label="[% l('Copy OPAC Visible') %]" path='hold.cp_opac_visible' datatype="bool" hidden></eg-grid-field>
168   <eg-grid-field label="[% l('Copy Deleted') %]" path='hold.cp_deleted' datatype="bool" hidden></eg-grid-field>
169   <eg-grid-field label="[% l('Floating Group') %]" path='hold.cp_floating' hidden></eg-grid-field>
170   <eg-grid-field label="[% l('Precat Dummy ISBN') %]" path='hold.cp_dummy_isbn' hidden></eg-grid-field>
171   <eg-grid-field label="[% l('Copy Status Change Time') %]" path='hold.cp_status_change_time' datatype="timestamp" hidden></eg-grid-field>
172   <eg-grid-field label="[% l('Copy Active Date') %]" path='hold.cp_active_date' datatype="timestamp" hidden></eg-grid-field>
173   <eg-grid-field label="[% l('Copy Is Mint Condition') %]" path='hold.cp_mint_condition' datatype="bool" hidden></eg-grid-field>
174   <eg-grid-field label="[% l('Cost') %]" path='hold.cp_cost' hidden></eg-grid-field>
175   <eg-grid-field label="[% l('Copy Status') %]" path='hold.cs_name' hidden></eg-grid-field>
176   <eg-grid-field label="[% l('Status Is Holdable') %]" path='hold.cs_holdable' datatype="bool" hidden></eg-grid-field>
177   <eg-grid-field label="[% l('Status Is OPAC Visible') %]" path='hold.cs_opac_visible' datatype="bool" hidden></eg-grid-field>
178   <eg-grid-field label="[% l('Status Is Copy-Active') %]" path='hold.cs_copy_active' datatype="bool" hidden></eg-grid-field>
179   <eg-grid-field label="[% l('Status Is Deleted') %]" path='hold.cs_restrict_copy_delete' datatype="bool" hidden></eg-grid-field>
180   <eg-grid-field label="[% l('Status Is Available') %]" path='hold.cs_is_available' datatype="bool" hidden></eg-grid-field>
181   <eg-grid-field label="[% l('Issuance Label') %]" path='hold.issuance_label' hidden></eg-grid-field>
182   <eg-grid-field label="[% l('Call Number ID') %]" path='hold.cn_id' hidden></eg-grid-field>
183   <eg-grid-field label="[% l('CN Label') %]" path='hold.cn_label' hidden></eg-grid-field>
184   <eg-grid-field label="[% l('CN Label Class') %]" path='hold.cn_label_class' hidden></eg-grid-field>
185   <eg-grid-field label="[% l('CN Sort Key') %]" path='hold.cn_label_sortkey' hidden></eg-grid-field>
186   <eg-grid-field label="[% l('Part ID') %]" path='hold.p_id' hidden></eg-grid-field>
187   <eg-grid-field label="[% l('Part Label') %]" path='hold.p_label' hidden></eg-grid-field>
188   <eg-grid-field label="[% l('Part Sort Key') %]" path='hold.p_label_sortkey' hidden></eg-grid-field>
189   <eg-grid-field label="[% l('Part Is Deleted') %]" path='hold.p_deleted' datatype="bool" hidden></eg-grid-field>
190   <eg-grid-field label="[% l('CN Full Label') %]" path='hold.cn_full_label' hidden></eg-grid-field>
191   <eg-grid-field label="[% l('Record ID') %]" path='hold.record_id' hidden></eg-grid-field>
192   <eg-grid-field label="[% l('Copy Location ID') %]" path='hold.acpl_id' hidden></eg-grid-field>
193   <eg-grid-field label="[% l('Copy Location') %]" path='hold.acpl_name' hidden></eg-grid-field>
194   <eg-grid-field label="[% l('Copy Location Holdable') %]" path='hold.acpl_holdable' datatype="bool" hidden></eg-grid-field>
195   <eg-grid-field label="[% l('Copy Location Hold-Verify') %]" path='hold.acpl_hold_verify' datatype="bool" hidden></eg-grid-field>
196   <eg-grid-field label="[% l('Copy Location OPAC Visible') %]" path='hold.acpl_opac_visible' datatype="bool" hidden></eg-grid-field>
197   <eg-grid-field label="[% l('Copy Location Can Circulate') %]" path='hold.acpl_circulate' datatype="bool" hidden></eg-grid-field>
198   <eg-grid-field label="[% l('Copy Location Prefix') %]" path='hold.acpl_label_prefix' hidden></eg-grid-field>
199   <eg-grid-field label="[% l('Copy Location Suffix') %]" path='hold.acpl_label_suffix' hidden></eg-grid-field>
200   <eg-grid-field label="[% l('Copy Location Checkin Alert') %]" path='hold.acpl_checkin_alert' datatype="bool" hidden></eg-grid-field>
201   <eg-grid-field label="[% l('Copy Location Is Deleted') %]" path='hold.acpl_deleted' datatype="bool" hidden></eg-grid-field>
202   <eg-grid-field label="[% l('Copy Location URL') %]" path='hold.acpl_url' hidden></eg-grid-field>
203   <eg-grid-field label="[% l('Copy Location Order') %]" path='hold.copy_location_order_position' hidden></eg-grid-field>
204   <eg-grid-field label="[% l('Default Estimated Wait Time') %]" path='hold.default_estimated_wait' hidden></eg-grid-field>
205   <eg-grid-field label="[% l('Minimum Estimated Wait Time') %]" path='hold.min_estimated_wait' hidden></eg-grid-field>
206   <eg-grid-field label="[% l('Peer Hold Count') %]" path='hold.other_holds' hidden></eg-grid-field>
207   <eg-grid-field label="[% l('Total Wait Time') %]" path='hold.total_wait_time' hidden></eg-grid-field>
208   <eg-grid-field label="[% l('Notify Count') %]" path='hold.notification_count' hidden></eg-grid-field>
209   <eg-grid-field label="[% l('Last Notify Time') %]" path='hold.last_notification_time' datatype="timestamp" hidden></eg-grid-field>
210
211
212   </eg-grid>
213
214   <div class="flex-row pad-vert">
215     <div class="flex-cell"></div>
216     <div>
217       <button class="btn btn-default" ng-click="print_holds()">
218         [% l('Print') %]
219       </button>
220     </div>
221   </div>
222 </div>
223
224 <!-- hold details -->
225 <div ng-if="detail_hold_id">
226   <div class="row">
227     <div class="col-md-2">
228       <button class="btn btn-default" ng-click="list_view()">
229         [% l('List View') %]
230       </button>
231     </div>
232   </div>
233   <div class="pad-vert"></div>
234   <eg-record-summary record='detail_hold_record' 
235     record-id="detail_hold_record_id"></eg-record-summary>
236   <eg-hold-details hold-retrieved="set_hold" hold-id="detail_hold_id"></eg-hold-details>
237 </div>