]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/cat/catalog/t_holds.tt2
webstaff: add actions to various grids
[working/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="-sort,-multisort"
16     items-provider="hold_grid_data_provider"
17     grid-controls="hold_grid_controls"
18     persist-key="cat.catalog.holds">
19
20     <eg-grid-menu-item handler="detail_view" 
21       label="[% l('Detail View') %]"></eg-grid-menu-item>
22
23     <eg-grid-action handler="grid_actions.show_recent_circs"
24       label="[% l('Show Last Few Circulations') %]"></eg-grid-action>
25   <eg-grid-action handler="grid_actions.show_patrons"
26     label="[% l('Retrieve Patron') %]"></eg-grid-action>
27     <eg-grid-action divider="true"></eg-grid-action>
28     <eg-grid-action handler="grid_actions.set_copy_quality"
29       label="[% l('Set Desired Copy Quality') %]"></eg-grid-action>
30     <eg-grid-action handler="grid_actions.edit_pickup_lib"
31       label="[% l('Edit Pickup Library') %]"></eg-grid-action>
32     <eg-grid-action handler="grid_actions.edit_notify_prefs"
33       label="[% l('Edit Notification Settings') %]"></eg-grid-action>
34     <eg-grid-action handler="grid_actions.edit_dates"
35       label="[% l('Edit Hold Dates') %]"></eg-grid-action>
36     <eg-grid-action handler="grid_actions.activate"
37       label="[% l('Activate') %]"></eg-grid-action>
38     <eg-grid-action handler="grid_actions.suspend"
39       label="[% l('Suspend') %]"></eg-grid-action>
40     <eg-grid-action handler="grid_actions.set_top_of_queue"
41       label="[% l('Set Top of Queue') %]"></eg-grid-action>
42     <eg-grid-action handler="grid_actions.clear_top_of_queue"
43       label="[% l('Un-Set Top of Queue') %]"></eg-grid-action>
44     <eg-grid-action handler="grid_actions.transfer_to_marked_title"
45       label="[% l('Transfer To Marked Title') %]"></eg-grid-action>
46     <eg-grid-action handler="grid_actions.mark_damaged"
47       label="[% l('Mark Item Damaged') %]"></eg-grid-action>
48     <eg-grid-action handler="grid_actions.mark_missing"
49       label="[% l('Mark Item Missing') %]"></eg-grid-action>
50     <eg-grid-action divider="true"></eg-grid-action>
51     <eg-grid-action handler="grid_actions.retarget"
52       label="[% l('Find Another Target') %]"></eg-grid-action>
53     <eg-grid-action handler="grid_actions.cancel_hold"
54       label="[% l('Cancel Hold') %]"></eg-grid-action>
55
56     <eg-grid-field label="[% l('Hold ID') %]" path='hold.id'></eg-grid-field>
57     <eg-grid-field label="[% l('Current Copy') %]" 
58       path='hold.current_copy.barcode'>
59       <a href="./cat/item/{{item.hold.current_copy().id()}}/summary" target="_self">
60         {{item.hold.current_copy().barcode()}}
61       </a>
62     </eg-grid-field>
63
64     <eg-grid-field label="[% l('Patron Barcode') %]">{{item.patron_barcode}}</eg-grid-field>
65     <eg-grid-field label="[% l('Patron alias') %]">{{item.patron_alias}}</eg-grid-field>
66     <eg-grid-field label="[% l('Request Date') %]" path='hold.request_time'></eg-grid-field>
67     <eg-grid-field label="[% l('Capture Date') %]" path='hold.capture_time'></eg-grid-field>
68     <eg-grid-field label="[% l('Available Date') %]" path='hold.shelf_time'></eg-grid-field>
69     <eg-grid-field label="[% l('Hold Type') %]" path='hold.hold_type'></eg-grid-field>
70     <eg-grid-field label="[% l('Pickup Library') %]" path='hold.pickup_lib.shortname'></eg-grid-field>
71
72     <eg-grid-field label="[% l('Title') %]" path='mvr.title'>
73       <a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.mvr.doc_id()}}">
74         {{item.mvr.title()}}
75       </a>
76     </eg-grid-field>
77
78     <eg-grid-field label="[% l('Author') %]" path='mvr.author'></eg-grid-field>
79     <eg-grid-field label="[% l('Potential Copies') %]" path='potential_copies'></eg-grid-field>
80     <eg-grid-field label="[% l('Status') %]" path='status_string'></eg-grid-field>
81
82     <eg-grid-field label="[% l('Queue Position') %]" path='queue_position' hidden></eg-grid-field>
83     <eg-grid-field path='hold.*' parent-idl-class="ahr" hidden></eg-grid-field>
84     <eg-grid-field path='copy.*' parent-idl-class="acp" hidden></eg-grid-field>
85     <eg-grid-field path='hold.usr.*' parent-idl-class="ahr" hidden></eg-grid-field>
86     <eg-grid-field path='hold.usr.card.*' parent-idl-class="ahr" hidden></eg-grid-field>
87     <eg-grid-field path='hold.requestor.*' parent-idl-class="ahr" hidden></eg-grid-field>
88     <eg-grid-field path='hold.requestor.card.*' parent-idl-class="ahr" hidden></eg-grid-field>
89
90     <eg-grid-field path='volume.*' parent-idl-class="acn" hidden></eg-grid-field>
91     <eg-grid-field path='mvr.*' parent-idl-class="mvr" hidden></eg-grid-field>
92   </eg-grid>
93
94   <div class="flex-row pad-vert">
95     <div class="flex-cell"></div>
96     <div>
97       <button class="btn btn-default" ng-click="print_holds()">
98         [% l('Print') %]
99       </button>
100     </div>
101   </div>
102 </div>
103
104 <!-- hold details -->
105 <div ng-if="detail_hold_id">
106   <div class="row">
107     <div class="col-md-2">
108       <button class="btn btn-default" ng-click="list_view()">
109         [% l('List View') %]
110       </button>
111     </div>
112   </div>
113   <div class="pad-vert"></div>
114   <eg-record-summary record='detail_hold_record' 
115     record-id="detail_hold_record_id"></eg-record-summary>
116   <eg-hold-details hold-retrieved="set_hold" hold-id="detail_hold_id"></eg-hold-details>
117 </div>