]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/cat/item/t_list.tt2
LP2061136 - Stamping 1405 DB upgrade script
[working/Evergreen.git] / Open-ILS / src / templates / staff / cat / item / t_list.tt2
1 <?xml version="1.0" encoding="Windows-1252"?>
2 <eg-grid
3   id-field="index"
4   idl-class="acp"
5   features="-display,clientsort,allowAll"
6   main-label="[% l('Item Status') %]"
7   items-provider="gridDataProvider"
8   grid-controls="gridControls"
9   persist-key="cat.items"
10   status-column="statusIconColumn"
11   dateformat="{{$root.egDateAndTimeFormat}}">
12
13   <eg-grid-action handler="add_copies_to_bucket"
14     label="[% l('Add to Item Bucket') %]"></eg-grid-action>
15   <eg-grid-action handler="add_records_to_bucket"
16     label="[% l('Add to Record Bucket') %]"></eg-grid-action>
17   <eg-grid-action handler="show_in_catalog"
18     label="[% l('Show in Catalog') %]"></eg-grid-action>
19   <eg-grid-action handler="make_copies_bookable"
20     label="[% l('Make Items Bookable') %]"></eg-grid-action>
21   <eg-grid-action handler="book_copies_now"
22     disabled="need_one_selected"
23     label="[% l('Book Item Now') %]"></eg-grid-action>
24   <eg-grid-action handler="manage_reservations"
25     disabled="need_one_selected"
26     label="[% l('Manage Reservations') %]"></eg-grid-action>
27   <eg-grid-action handler="create_carousel"
28     disabled="need_at_least_one_selected"
29     label="[% l('Create Carousel from Selected Items') %]"></eg-grid-action>
30   <eg-grid-action handler="requestItems"
31     label="[% l('Request Items') %]"></eg-grid-action>
32   <eg-grid-action handler="attach_to_peer_bib"
33     label="[% l('Link as Conjoined to Previously Marked Bib Record') %]"></eg-grid-action>
34   <eg-grid-action handler="selectedHoldingsCopyDelete"
35     label="[% l('Delete Items') %]"></eg-grid-action>
36   <eg-grid-action handler="checkin"
37     label="[% l('Check In Items') %]"></eg-grid-action>
38   <eg-grid-action handler="renew"
39     label="[% l('Renew Items') %]"></eg-grid-action>
40   <eg-grid-action handler="cancel_transit"
41     label="[% l('Cancel Transit') %]"></eg-grid-action>
42   <eg-grid-action handler="update_inventory"
43     label="[% l('Update Inventory') %]"></eg-grid-action>
44     
45   <eg-grid-action handler="selectedHoldingsItemStatusTgrEvt" group="[% l('Show') %]"
46     label="[% l('Triggered Events') %]"></eg-grid-action>
47   <eg-grid-action handler="selectedHoldingsItemStatusHolds" group="[% l('Show') %]"
48     label="[% l('Item Holds') %]"></eg-grid-action>
49   <eg-grid-action handler="showBibHolds" group="[% l('Show') %]"
50     label="[% l('Record Holds') %]"></eg-grid-action>
51   <eg-grid-action handler="print_labels" group="[% l('Show') %]"
52     label="[% l('Print Labels') %]"></eg-grid-action>
53   <eg-grid-action handler="locateAcquisition" group="[% l('Show') %]"
54     label="[% l('Originating Acquisition') %]"></eg-grid-action>
55
56   <eg-grid-action handler="selectedHoldingsDamaged" group="[% l('Mark') %]"
57     label="[% l('Item as Damaged') %]"></eg-grid-action>
58   <eg-grid-action handler="selectedHoldingsDiscard" group="[% l('Mark') %]"
59     label="[% l('Item as Discard/Weed') %]"></eg-grid-action>
60   <eg-grid-action handler="selectedHoldingsMissing" group="[% l('Mark') %]"
61     label="[% l('Item as Missing') %]"></eg-grid-action>
62     
63   <eg-grid-action handler="selectedHoldingsCopyAdd" group="[% l('Add') %]"
64     label="[% l('Items') %]"></eg-grid-action>
65   <eg-grid-action handler="selectedHoldingsVolCopyAdd" group="[% l('Add') %]"
66     label="[% l('Call Numbers and Items') %]"></eg-grid-action>
67   <eg-grid-action handler="selectedHoldingsCopyAlertsAdd" group="[% l('Add') %]"
68     label="[% l('Item Alerts') %]"></eg-grid-action>
69
70   <eg-grid-action handler="selectedHoldingsVolEdit" group="[% l('Edit') %]"
71     label="[% l('Call Numbers') %]"></eg-grid-action>
72   <eg-grid-action handler="selectedHoldingsCopyEdit" group="[% l('Edit') %]"
73     label="[% l('Items') %]"></eg-grid-action>
74   <eg-grid-action handler="selectedHoldingsVolCopyEdit" group="[% l('Edit') %]"
75     label="[% l('Call Numbers and Items') %]"></eg-grid-action>
76   <eg-grid-action handler="replaceBarcodes" group="[% l('Edit') %]"
77     label="[% l('Replace Barcodes') %]"></eg-grid-action>
78   <eg-grid-action handler="selectedHoldingsCopyAlertsEdit" group="[% l('Edit') %]"
79     label="[% l('Manage Item Alerts') %]"></eg-grid-action>
80
81   <eg-grid-action handler="changeItemOwningLib" group="[% l('Transfer') %]"
82     label="[% l('Items to Previously Marked Library') %]"></eg-grid-action>
83   <eg-grid-action handler="transferItems" group="[% l('Transfer') %]"
84     label="[% l('Items to Previously Marked Call Number') %]"></eg-grid-action>
85
86   <eg-grid-field label="[% l('Alert Message') %]"  path='alert_message' visible></eg-grid-field>
87   <eg-grid-field label="[% l('Barcode') %]"        path='barcode' visible></eg-grid-field>
88   <eg-grid-field label="[% l('Call Number') %]"    path="call_number.label" visible></eg-grid-field>
89   <eg-grid-field label="[% l('Due Date') %]"       path="_circ.due_date" datecontext="_circ_lib" dateonlyinterval="_duration" datatype="timestamp" visible></eg-grid-field>
90
91   <eg-grid-field label="[% l('Location') %]"       path="location.name" visible></eg-grid-field>
92   <eg-grid-field label="[% l('Item Status') %]"    path="status.name" visible></eg-grid-field>
93
94   <eg-grid-field label="[% l('Title') %]"       
95     path="call_number.record.simple_record.title" visible>
96     {{item['call_number.record.simple_record.title'] ?
97         '<a target="_blank" href="/eg2/staff/catalog/record/' + item['call_number.record.id'] + '">' + item['call_number.record.simple_record.title'] + '</a>' : item['dummy_title'] }}
98   </eg-grid-field>
99
100   <eg-grid-field label="[% l('Acquisition Cost') %]"     path="cost" hidden></eg-grid-field>
101   <eg-grid-field label="[% l('Age-Based Hold Protection') %]"  path="age_protect.name" hidden></eg-grid-field>
102   <eg-grid-field label="[% l('Author') %]"               path="call_number.record.simple_record.author"  hidden>
103     {{item['call_number.record.simple_record.author'] || item['dummy_author']}}
104   </eg-grid-field>
105   <eg-grid-field label="[% l('Checkin Date') %]"         path="_circ_summary.last_checkin_time" datatype="timestamp" hidden></eg-grid-field>
106   <eg-grid-field label="[% l('Checkin Scan Date') %]"    path="_circ_summary.last_checkin_scan_time" datatype="timestamp" hidden></eg-grid-field>
107   <eg-grid-field label="[% l('Checkin Workstation') %]"  path="_circ_summary.last_checkin_workstation" hidden></eg-grid-field>
108   <eg-grid-field label="[% l('Checkout Date') %]"  path="_circ_summary.start_time" datatype="timestamp" hidden></eg-grid-field>
109   <eg-grid-field label="[% l('Checkout Workstation') %]"  path="_circ_summary.checkout_workstation" hidden></eg-grid-field>
110   <eg-grid-field label="[% l('Checkout/Renewal Library') %]"  path="_circ_lib.shortname" hidden></eg-grid-field>
111   <eg-grid-field label="[% l('Circulation ID') %]"        path="_circ.id" hidden></eg-grid-field>
112   <eg-grid-field label="[% l('Circ or Renewal Workstation') %]"  path="_circ_ws" hidden></eg-grid-field>
113   <eg-grid-field label="[% l('Last Renewal Workstation') %]"  path="_circ_summary.last_renewal_workstation" hidden></eg-grid-field>
114   <eg-grid-field label="[% l('Classification') %]"        path="call_number.label_class.name" hidden></eg-grid-field>
115   <eg-grid-field label="[% l('CN Prefix') %]"             path="call_number.prefix.label" hidden></eg-grid-field>
116   <eg-grid-field label="[% l('CN Suffix') %]"             path="call_number.suffix.label" hidden></eg-grid-field>
117   <eg-grid-field label="[% l('Circulate as Type') %]"     path="circ_as_type.value" hidden></eg-grid-field>
118   <eg-grid-field label="[% l('Circulate?') %]"            path="circulate" hidden></eg-grid-field>
119   <eg-grid-field label="[% l('Circulation Library') %]"   path="circ_lib.shortname" hidden></eg-grid-field>
120   <eg-grid-field label="[% l('Circulation Modifier') %]"  path="circ_modifier.name" hidden></eg-grid-field>
121   <eg-grid-field label="[% l('Item ID') %]"               path="id" hidden></eg-grid-field>
122   <eg-grid-field label="[% l('Item Number') %]"           path="copy_number" hidden></eg-grid-field>
123
124   <eg-grid-field label="[% l('Created By') %]"
125     path="creator" hidden>
126     <a target="_blank" href="[% ctx.base_path %]/staff/circ/patron/{{item['creator.id']}}/checkout">
127       {{item['creator.usrname']}} <span ng-show="item['creator.id']" class="glyphicon glyphicon-new-window"></span>
128     </a>
129   </eg-grid-field>
130
131   <eg-grid-field label="[% l('Date Created') %]"          path="create_date" datatype="timestamp" hidden></eg-grid-field>
132   <eg-grid-field label="[% l('Date Last Edited') %]"      path="edit_date" datatype="timestamp" hidden></eg-grid-field>
133   <eg-grid-field label="[% l('Date Record Created') %]"   path="call_number.record.create_date" datatype="timestamp" hidden></eg-grid-field>
134   <eg-grid-field label="[% l('Date Record Last Edited') %]"    path="call_number.record.edit_date" datatype="timestamp" hidden></eg-grid-field>
135   <eg-grid-field label="[% l('Deleted?') %]"              path="deleted" hidden></eg-grid-field>
136   <eg-grid-field label="[% l('Deposit?') %]"              path="deposit" hidden></eg-grid-field>
137   <eg-grid-field label="[% l('Deposit amount') %]"        path="deposit_amount" hidden></eg-grid-field>
138   <eg-grid-field label="[% l('Document ID') %]"           path="call_number.record.id" hidden></eg-grid-field>
139   <eg-grid-field label="[% l('Edited By') %]"             path="editor.usrname" hidden></eg-grid-field>
140   <eg-grid-field label="[% l('Fine Level') %]"            path="fine_level" hidden>
141     <span>{{item['fine_level'] | string_pick:'[% l('Low') %]':'[% l('Normal') %]':'[% l('High') %]'}}</span>
142   </eg-grid-field>
143   <eg-grid-field label="[% l('Fines Stopped') %]"         path="_circ_summary.last_stop_fines" hidden></eg-grid-field>
144   <eg-grid-field label="[% l('Fines Stopped Time') %]"    path="_circ_summary.last_stop_fines_time" datatype="timestamp" hidden></eg-grid-field>
145   <eg-grid-field label="[% l('Floating Group') %]"        path="floating.name" hidden></eg-grid-field>
146   <eg-grid-field label="[% l('Holdable?') %]"             path="holdable" hidden></eg-grid-field>
147   <eg-grid-field label="[% l('Holds Count') %]"           path="holds_count" hidden></eg-grid-field>
148   <eg-grid-field label="[% l('In-House Uses') %]"         path="_inHouseUseCount" hidden></eg-grid-field>
149   <eg-grid-field label="[% l('ISBN') %]"                  path="call_number.record.simple_record.isbn" hidden>
150     {{item['call_number.record.simple_record.isbn'] || item['dummy_isbn']}}
151   </eg-grid-field>
152   <eg-grid-field label="[% l('Loan Duration') %]"         path="loan_duration" hidden>
153     <span>{{item['loan_duration'] | string_pick:'[% l('Short') %]':'[% l('Normal') %]':'[% l('Extended') %]'}}</span>
154   </eg-grid-field>
155   <eg-grid-field label="[% l('OPAC Visible?') %]"         path="opac_visible" hidden></eg-grid-field>
156   <eg-grid-field label="[% l('Owned By') %]"              path="call_number.record.owner" hidden></eg-grid-field>
157   <eg-grid-field label="[% l('Owning Library') %]"        path="call_number.owning_lib.shortname" hidden></eg-grid-field>
158   <eg-grid-field label="[% l('Parts') %]"                 path="parts.label" hidden></eg-grid-field>
159   <eg-grid-field label="[% l('Price') %]"                 path="price" hidden></eg-grid-field>
160   <eg-grid-field label="[% l('Publication Date') %]"      path="call_number.record.simple_record.pubdate" hidden></eg-grid-field>
161   <eg-grid-field label="[% l('Publisher') %]"             path="call_number.record.simple_record.publisher" hidden></eg-grid-field>
162   <eg-grid-field label="[% l('Quality') %]"               path="call_number.record.simple_record.quality" hidden></eg-grid-field>
163   <eg-grid-field label="[% l('Reference?') %]"            path="ref" hidden></eg-grid-field>
164   <eg-grid-field label="[% l('Remaining Renewals') %]"    path="_circ.renewal_remaining" hidden></eg-grid-field>
165   <eg-grid-field label="[% l('Status Changed Time') %]"   path="status_changed_time" datatype="timestamp" hidden></eg-grid-field>
166   <eg-grid-field label="[% l('TCN') %]"                   path="call_number.record.tcn_value" hidden></eg-grid-field>
167   <eg-grid-field label="[% l('TCN Source') %]"            path="call_number.record.tcn_source" hidden></eg-grid-field>
168   <eg-grid-field label="[% l('Total Circulations') %]"    path="total_circ_count.circ_count" hidden></eg-grid-field>
169   <eg-grid-field label="[% l('Transaction Complete') %]"  path="_circ.xact_finish" datatype="timestamp" hidden></eg-grid-field>
170   <eg-grid-field label="[% l('Alerts') %]" path="copy_alert_count" handlers="gridCellHandlers" visible compiled>
171     {{item['copy_alert_count']}}
172     <button ng-disabled="item['copy_alert_count'] <= 0" class="btn btn-sm btn-default" ng-click="col.handlers.copyAlertsEdit(item['id'])">[% l('Manage') %]</button>
173   </eg-grid-field>
174   <eg-grid-field label="[% l('Inventory Date') %]"        path="latest_inventory.inventory_date" datatype="timestamp"></eg-grid-field>
175   <eg-grid-field label="[% l('Inventory Workstation') %]" path="latest_inventory.inventory_workstation.name"></eg-grid-field>
176   
177 </eg-grid>
178
179 <div class="flex-row pad-vert">
180   <div class="flex-cell"></div>
181   <div class="pad-horiz">
182     <button class="btn btn-default"
183       ng-click="print_list()">[% l('Print') %]</button>
184   </div>
185 </div>