]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/circ/holds/t_pull_list.tt2
LP#1653001 webstaff: Holds pull list sortable columns
[working/Evergreen.git] / Open-ILS / src / templates / staff / circ / holds / t_pull_list.tt2
1 <div ng-if="print_list_progress !== null" class="strong-text-2">
2   [% l('Loading... [_1]', '{{print_list_progress}}') %]
3 </div>
4
5 <eg-grid
6   id-field="id"
7   idl-class="ahopl"
8   grid-controls="gridControls"
9   persist-key="circ.holds.pull">
10
11   <eg-grid-menu-item handler="detail_view" 
12     label="[% l('Detail View') %]"></eg-grid-menu-item>
13
14   <eg-grid-menu-item handler="print_full_list" 
15     label="[% l('Print Full List') %]"></eg-grid-menu-item>
16
17   <!--
18   The Alternate print UI appears to be generated in a very similar
19   fashion to our native full list printer.  Also, since it's 
20   generated from a separate standalone HTML page, the print
21   action bypasses Hatch and goes straight to the browser printer.
22   <eg-grid-menu-item handler="print_list_alt" 
23     label="[% l('Print Full List (Alt)') %]"></eg-grid-menu-item>
24   -->
25
26   <eg-grid-action handler="grid_actions.show_recent_circs"
27     label="[% l('Show Last Few Circulations') %]"></eg-grid-action>
28   <eg-grid-action handler="grid_actions.show_patrons"
29     label="[% l('Retrieve Patron') %]"></eg-grid-action>
30   <eg-grid-action divider="true"></eg-grid-action>
31   <eg-grid-action handler="grid_actions.set_copy_quality"
32     label="[% l('Set Desired Copy Quality') %]"></eg-grid-action>
33   <eg-grid-action handler="grid_actions.edit_pickup_lib"
34     label="[% l('Edit Pickup Library') %]"></eg-grid-action>
35   <eg-grid-action handler="grid_actions.edit_notify_prefs"
36     label="[% l('Edit Notification Settings') %]"></eg-grid-action>
37   <eg-grid-action handler="grid_actions.edit_dates"
38     label="[% l('Edit Hold Dates') %]"></eg-grid-action>
39   <eg-grid-action handler="grid_actions.activate"
40     label="[% l('Activate') %]"></eg-grid-action>
41   <eg-grid-action handler="grid_actions.suspend"
42     label="[% l('Suspend') %]"></eg-grid-action>
43   <eg-grid-action handler="grid_actions.set_top_of_queue"
44     label="[% l('Set Top of Queue') %]"></eg-grid-action>
45   <eg-grid-action handler="grid_actions.clear_top_of_queue"
46     label="[% l('Un-Set Top of Queue') %]"></eg-grid-action>
47   <eg-grid-action handler="grid_actions.transfer_to_marked_title"
48     label="[% l('Transfer To Marked Title') %]"></eg-grid-action>
49   <eg-grid-action handler="grid_actions.mark_damaged"
50     label="[% l('Mark Item Damaged') %]"></eg-grid-action>
51   <eg-grid-action handler="grid_actions.mark_missing"
52     label="[% l('Mark Item Missing') %]"></eg-grid-action>
53   <eg-grid-action divider="true"></eg-grid-action>
54   <eg-grid-action handler="grid_actions.retarget"
55     label="[% l('Find Another Target') %]"></eg-grid-action>
56   <eg-grid-action handler="grid_actions.cancel_hold"
57     label="[% l('Cancel Hold') %]"></eg-grid-action>
58
59   <!-- Define the column using the sort-able copy location order
60        position, but display the location label in each cell -->
61   <eg-grid-field name="copy_location_order_position" required 
62     label="[% l('Shelving Location') %]">
63     <span>{{item.shelving_loc}}</span>
64   </eg-grid-field>
65   <eg-grid-field name="shelving_loc" path="current_copy.location.name" 
66     required hidden label="[% l('Shelving Location Label') %]">
67   </eg-grid-field>
68
69   <!-- Render the colum using the sort-able call number sort key, but 
70        display the call number label, complete with prefix and suffix 
71        in the cell. -->
72   <eg-grid-field name="call_number_sort_key" required
73     path="current_copy.call_number.label_sortkey" 
74     label="[% l('Call Number') %]">
75     <span>{{item.cn_prefix}} {{item.call_number_label}} {{item.cn_suffix}}</span>
76   </eg-grid-field>
77   <eg-grid-field name="call_number_label" 
78     path="call_number_label" required hidden
79     label="[% l('Call Number Label') %]"></eg-grid-field>
80   <eg-grid-field name="cn_prefix" path="current_copy.call_number.prefix.label" 
81     hidden required label="[% l('Call Number Prefix') %]"></eg-grid-field>
82   <eg-grid-field name="cn_suffix" path="current_copy.call_number.suffix.label"
83     hidden required label="[% l('Call Number Suffix') %]"></eg-grid-field>
84
85
86   <eg-grid-field name="author" 
87     path="current_copy.call_number.record.simple_record.author" 
88     label="[% l('Author') %]"></eg-grid-field>
89   <eg-grid-field name="title" 
90     path="current_copy.call_number.record.simple_record.title" 
91     label="[% l('Title') %]">
92     <a target="_self" 
93       href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.record_id}}">
94       {{item.title}}
95     </a>
96   </eg-grid-field>
97   <eg-grid-field name="record_id" label="[% l('Bib Record ID') %]" 
98     required hidden path="current_copy.call_number.record.id"></eg-grid-field>
99   <eg-grid-field name="copy_id" 
100     path="current_copy.id" hidden required></eg-grid-field>
101   <eg-grid-field name="barcode" 
102     path="current_copy.barcode" label="[% l('Current Copy') %]">
103     <a href="./cat/item/{{item.copy_id}}/summary" target="_self">
104       {{item.barcode}}
105     </a>
106   </eg-grid-field>
107   <eg-grid-field name="parts" path="current_copy.parts.label" 
108     label="[% l('Parts') %]"></eg-grid-field>
109   <eg-grid-field name="copy_status" path="current_copy.status.name" 
110     label="[% l('Copy Status') %]"></eg-grid-field>
111   <eg-grid-field name="copy_circ_lib_id" path="current_copy.circ_lib.id" 
112     required hidden label="[% l('Copy Circ Lib ID') %]"></eg-grid-field>
113   <eg-grid-field name="notes" path="notes.body" 
114     hidden label="[% l('Hold Notes') %]"></eg-grid-field>
115   <eg-grid-field name="patron_id" path="usr.id" hidden required></eg-grid-field>
116   <eg-grid-field name="patron_barcode" path="usr.card.barcode" 
117     hidden label="[% l('Patron Barcode') %]">
118     <a href="./circ/patron/{{item.patron_id}}/holds" target="_self">
119       {{item.patron_barcode}}
120     </a>
121   </eg-grid-field>
122   <eg-grid-field name="pickup_lib_name" path="pickup_lib.name" 
123     hidden label="[% l('Pickup Library') %]"></eg-grid-field>
124   <eg-grid-field name="pickup_lib_shortname" path="pickup_lib.shortname" 
125     hidden label="[% l('Pickup Library (Shortname)') %]"></eg-grid-field>
126   <eg-grid-field name="request_lib_name" path="request_lib.name" 
127     hidden label="[% l('Request Library') %]"></eg-grid-field>
128   <eg-grid-field name="request_lib_shortname" path="request_lib.shortname" 
129     hidden label="[% l('Request Library (Shortname)') %]"></eg-grid-field>
130   <eg-grid-field name="selection_ou" path="selection_ou.shortname" 
131     hidden label="[% l('Selection Locus') %]"></eg-grid-field>
132   <eg-grid-field name="sms_carrier_name" path="sms_carrier.name" 
133     hidden label="[% l('SMS Carrier') %]"></eg-grid-field>
134   <eg-grid-field label="[% l('Potential Copies') %]" 
135     path='potential_copies'></eg-grid-field>
136   <eg-grid-field label="[% l('Queue Position') %]" 
137     path='queue_position' hidden></eg-grid-field>
138   <eg-grid-field label="[% l('Hold ID') %]" path='id' required hidden>
139   </eg-grid-field>
140   <eg-grid-field label="[% l('Request Date') %]" path='request_time' hidden>
141   </eg-grid-field>
142 </eg-grid>
143