LP#1739286: Revert "lp1739286 default search box in Z39.50"
[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     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" group="[% l('Copy') %]"
29       label="[% l('Show Last Few Circulations') %]"></eg-grid-action>
30     <eg-grid-action handler="grid_actions.show_patrons" group="[% l('Patron') %]"
31       label="[% l('Retrieve Patron') %]"></eg-grid-action>
32     <eg-grid-action group="[% l('Hold') %]" handler="grid_actions.set_copy_quality"
33       label="[% l('Set Desired Copy Quality') %]"></eg-grid-action>
34     <eg-grid-action group="[% l('Hold') %]" handler="grid_actions.edit_pickup_lib"
35       label="[% l('Edit Pickup Library') %]"></eg-grid-action>
36     <eg-grid-action group="[% l('Hold') %]" handler="grid_actions.edit_notify_prefs"
37       label="[% l('Edit Notification Settings') %]"></eg-grid-action>
38     <eg-grid-action group="[% l('Hold') %]" handler="grid_actions.edit_dates"
39       label="[% l('Edit Hold Dates') %]"></eg-grid-action>
40     <eg-grid-action handler="grid_actions.activate" group="[% l('Hold') %]"
41       label="[% l('Activate') %]"></eg-grid-action>
42     <eg-grid-action handler="grid_actions.suspend" group="[% l('Hold') %]"
43       label="[% l('Suspend') %]"></eg-grid-action>
44     <eg-grid-action handler="grid_actions.set_top_of_queue" group="[% l('Hold') %]"
45       label="[% l('Set Top of Queue') %]"></eg-grid-action>
46     <eg-grid-action handler="grid_actions.clear_top_of_queue" 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" group="[% l('Hold') %]"
49       label="[% l('Transfer To Marked Title') %]"></eg-grid-action>
50     <eg-grid-action handler="grid_actions.mark_damaged" group="[% l('Copy') %]"
51       label="[% l('Mark Item Damaged') %]"></eg-grid-action>
52     <eg-grid-action handler="grid_actions.mark_missing" group="[% l('Copy') %]"
53       label="[% l('Mark Item Missing') %]"></eg-grid-action>
54     <eg-grid-action handler="grid_actions.retarget" group="[% l('Hold') %]"
55       label="[% l('Find Another Target') %]"></eg-grid-action>
56     <eg-grid-action handler="grid_actions.cancel_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 Copy') %]" 
61       path='hold.current_copy.barcode'>
62       <a href="./cat/item/{{item.hold.current_copy().id()}}/summary" target="_self">
63         {{item.hold.current_copy().barcode()}}
64       </a>
65     </eg-grid-field>
66
67     <eg-grid-field label="[% l('Patron Barcode') %]">{{item.patron_barcode}}</eg-grid-field>
68     <eg-grid-field label="[% l('Patron alias') %]">{{item.patron_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.pickup_lib.shortname'></eg-grid-field>
74
75     <eg-grid-field label="[% l('Title') %]" path='mvr.title'>
76       <a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.mvr.doc_id()}}">
77         {{item.mvr.title()}}
78       </a>
79     </eg-grid-field>
80
81     <eg-grid-field label="[% l('Author') %]" path='mvr.author'></eg-grid-field>
82     <eg-grid-field label="[% l('Potential Copies') %]" path='potential_copies'></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='queue_position' hidden></eg-grid-field>
86     <eg-grid-field path='hold.*' parent-idl-class="ahr" hidden></eg-grid-field>
87     <eg-grid-field path='copy.*' parent-idl-class="acp" hidden></eg-grid-field>
88
89     <eg-grid-field path='hold.usr.id' parent-idl-class="ahr" label="[% l('User ID') %]" hidden></eg-grid-field>
90     <eg-grid-field path='hold.usr.usrname' parent-idl-class="ahr" label="[% l('Username') %]" hidden></eg-grid-field>
91     <eg-grid-field path='hold.usr.first_given_name' parent-idl-class="ahr" label="[% l('First Name') %]" hidden></eg-grid-field>
92     <eg-grid-field path='hold.usr.family_name' parent-idl-class="ahr" label="[% l('Last Name') %]" hidden></eg-grid-field>
93     <eg-grid-field path='hold.requestor.id' parent-idl-class="ahr" label="[% l('Requestor ID') %]" hidden></eg-grid-field>
94     <eg-grid-field path='hold.requestor.usrname' parent-idl-class="ahr" label="[% l('Requestor Username') %]" hidden></eg-grid-field>
95
96    <eg-grid-field label="[% l('Copy Status') %]" path="hold.current_copy.status.name" hidden>
97     </eg-grid-field>
98
99     <eg-grid-field path='volume.*' parent-idl-class="acn" hidden></eg-grid-field>
100     <eg-grid-field path='volume.prefix.label' label="[% l('CN Prefix') %]" parent-idl-class="acn" hidden></eg-grid-field>
101     <eg-grid-field path='volume.suffix.label' label="[% l('CN Suffix') %]" parent-idl-class="acn" hidden></eg-grid-field>
102     <eg-grid-field path='mvr.*' parent-idl-class="mvr" hidden></eg-grid-field>
103   </eg-grid>
104
105   <div class="flex-row pad-vert">
106     <div class="flex-cell"></div>
107     <div>
108       <button class="btn btn-default" ng-click="print_holds()">
109         [% l('Print') %]
110       </button>
111     </div>
112   </div>
113 </div>
114
115 <!-- hold details -->
116 <div ng-if="detail_hold_id">
117   <div class="row">
118     <div class="col-md-2">
119       <button class="btn btn-default" ng-click="list_view()">
120         [% l('List View') %]
121       </button>
122     </div>
123   </div>
124   <div class="pad-vert"></div>
125   <eg-record-summary record='detail_hold_record' 
126     record-id="detail_hold_record_id"></eg-record-summary>
127   <eg-hold-details hold-retrieved="set_hold" hold-id="detail_hold_id"></eg-hold-details>
128 </div>