]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2
LP#1761222: Replace bib "quality" with item "mint_condition"
[working/Evergreen.git] / Open-ILS / src / templates / staff / cat / catalog / t_holdings.tt2
1
2 <div>
3   <div class="row">
4     <div class="col-md-3">
5       <div class="input-group">
6         <span class="input-group-addon">[% l('Show holdings at or below') %]</span>
7         <eg-org-selector selected="holdings_ou" onchange="holdings_ou_changed" sticky-setting="cat.holdings_view_ou"></eg-org-selector>
8       </div>
9     </div>
10   </div>
11
12   <div class="pad-vert"></div>
13
14   <eg-grid
15     id-field="index"
16     features="-display,-sort,-multisort"
17     items-provider="holdingsGridDataProvider"
18     grid-controls="holdingsGridControls"
19     persist-key="cat.holdings">
20
21     <eg-grid-menu-item handler="holdings_checkbox_handler"
22       label="[% l('Show empty call numbers') %]"
23       checkbox="holdings_show_empty"
24       checked="holdings_show_empty"/>
25
26     <eg-grid-menu-item handler="holdings_checkbox_handler"
27       label="[% l('Show empty libraries') %]"
28       checkbox="holdings_show_empty_org"
29       checked="holdings_show_empty_org"/>
30
31     <eg-grid-menu-item handler="holdings_checkbox_handler"
32       label="[% l('Show item detail') %]"
33       checkbox="holdings_show_copies"
34       checked="holdings_show_copies"/>
35
36     <eg-grid-menu-item handler="holdings_checkbox_handler"
37       label="[% l('Show call number detail') %]"
38       checkbox="holdings_show_vols"
39       checked="holdings_show_vols"/>
40
41     <eg-grid-action handler="add_copies_to_bucket"
42       label="[% l('Add Items to Bucket') %]"></eg-grid-action>
43     <eg-grid-action handler="make_copies_bookable"
44       label="[% l('Make Items Bookable') %]"></eg-grid-action>
45     <eg-grid-action handler="book_copies_now"
46       disabled="need_one_selected"
47       label="[% l('Book Item Now') %]"></eg-grid-action>
48     <eg-grid-action handler="manage_reservations"
49       disabled="need_one_selected"
50       label="[% l('Manage Reservations') %]"></eg-grid-action>
51     <eg-grid-action handler="requestItems"
52       label="[% l('Request Items') %]"></eg-grid-action>
53     <eg-grid-action handler="attach_to_peer_bib"
54       label="[% l('Link as Conjoined to Previously Marked Bib Record') %]"></eg-grid-action>
55     <eg-grid-action handler="selectedHoldingsItemStatus" group="[% l('Show') %]"
56       label="[% l('Item Status (list)') %]"></eg-grid-action>
57     <eg-grid-action handler="selectedHoldingsItemStatusDetail" group="[% l('Show') %]"
58       label="[% l('Item Status (detail)') %]"></eg-grid-action>
59     <eg-grid-action handler="selectedHoldingsItemStatusTgrEvt" group="[% l('Show') %]"
60       label="[% l('Triggered Events') %]"></eg-grid-action>
61     <eg-grid-action handler="selectedHoldingsItemStatusHolds" group="[% l('Show') %]"
62       label="[% l('Item Holds') %]"></eg-grid-action>
63     <eg-grid-action handler="selectedHoldingsPrintLabels" group="[% l('Show') %]"
64       label="[% l('Print Labels') %]"></eg-grid-action>
65
66     <eg-grid-action handler="selectedHoldingsDamaged" group="[% l('Mark') %]"
67       label="[% l('Item as Damaged') %]"></eg-grid-action>
68     <eg-grid-action handler="selectedHoldingsDiscard" group="[% l('Mark') %]"
69       label="[% l('Item as Discard/Weed') %]"></eg-grid-action>
70     <eg-grid-action handler="selectedHoldingsMissing" group="[% l('Mark') %]"
71       label="[% l('Item as Missing') %]"></eg-grid-action>
72     <eg-grid-action handler="markFromSelectedAsHoldingsTarget" group="[% l('Mark') %]"
73       label="[% l('Library/Call Number as Transfer Destination') %]"></eg-grid-action>
74
75     <eg-grid-action handler="selectedHoldingsVolAdd" group="[% l('Add') %]"
76       label="[% l('Add Call Numbers') %]"></eg-grid-action>
77     <eg-grid-action handler="selectedHoldingsCopyAdd" group="[% l('Add') %]" disabled="vols_not_shown"
78       label="[% l('Add Items') %]"></eg-grid-action>
79     <eg-grid-action handler="selectedHoldingsVolCopyAdd" group="[% l('Add') %]"
80       label="[% l('Add Call Numbers and Items') %]"></eg-grid-action>
81     <eg-grid-action handler="selectedHoldingsCopyAlertsAdd" group="[% l('Add') %]" disabled="vols_not_shown"
82       label="[% l('Add Item Alerts') %]"></eg-grid-action>
83
84     <eg-grid-action handler="selectedHoldingsVolEdit" group="[% l('Edit') %]"
85       label="[% l('Edit Call Numbers') %]"></eg-grid-action>
86     <eg-grid-action handler="selectedHoldingsCopyEdit" group="[% l('Edit') %]"
87       label="[% l('Edit Items') %]"></eg-grid-action>
88     <eg-grid-action handler="selectedHoldingsVolCopyEdit" group="[% l('Edit') %]"
89       label="[% l('Edit Call Numbers and Items') %]"></eg-grid-action>
90     <eg-grid-action handler="replaceBarcodes" group="[% l('Edit') %]"
91       label="[% l('Replace Barcodes') %]"></eg-grid-action>
92     <eg-grid-action handler="selectedHoldingsCopyAlertsManage" group="[% l('Edit') %]"
93       label="[% l('Manage Item Alerts') %]"></eg-grid-action>
94
95     <eg-grid-action handler="selectedHoldingsEmptyVolCopyDelete" group="[% l('Delete') %]" disabled="vols_not_shown"
96       label="[% l('Delete Empty Call Numbers') %]"></eg-grid-action>
97     <eg-grid-action handler="selectedHoldingsCopyDelete" group="[% l('Delete') %]" disabled="copies_not_shown"
98       label="[% l('Delete Items') %]"></eg-grid-action>
99     <eg-grid-action handler="selectedHoldingsVolCopyDelete" group="[% l('Delete') %]" disabled="copies_not_shown"
100       label="[% l('Delete Call Numbers and Items') %]"></eg-grid-action>
101
102     <eg-grid-action handler="transferVolumes" group="[% l('Transfer') %]"
103       label="[% l('Call Numbers to Previously Marked Destination') %]"></eg-grid-action>
104
105     <eg-grid-action handler="transferItems" group="[% l('Transfer') %]"
106       label="[% l('Items to Previously Marked Destination') %]"></eg-grid-action>
107
108     <eg-grid-field label="[% l('Owning Library') %]"  path="owner_label" flex="4" align="right" visible></eg-grid-field>
109     <eg-grid-field label="[% l('Call Number') %]"     path="call_number.label" visible></eg-grid-field>
110     <eg-grid-field label="[% l('Location') %]"        path="location.name" visible></eg-grid-field>
111     <eg-grid-field label="[% l('Item #') %]"          path="copy_number" flex="1" visible></eg-grid-field>
112     <eg-grid-field label="[% l('Barcode') %]"         path="barcode" visible></eg-grid-field>
113     <eg-grid-field label="[% l('Status') %]"          path="status.name" flex="1" visible></eg-grid-field>
114
115     <eg-grid-field label="[% l('Prefix') %]"                 path="call_number.prefix.label"></eg-grid-field>
116     <eg-grid-field label="[% l('Suffix') %]"                 path="call_number.suffix.label"></eg-grid-field>
117     <eg-grid-field label="[% l('Parts') %]"                  path="monograph_parts"></eg-grid-field>
118     <eg-grid-field label="[% l('Circulating Library') %]"    path="circ_lib.name"></eg-grid-field>
119     <eg-grid-field label="[% l('Price') %]"                  path="price"></eg-grid-field>
120     <eg-grid-field label="[% l('Circulation Modifier') %]"   path="circ_modifier"></eg-grid-field>
121     <eg-grid-field label="[% l('Item ID') %]"                path="id"></eg-grid-field>
122     <eg-grid-field label="[% l('Circulate As MARC Type') %]" path="circ_as_type"></eg-grid-field>
123     <eg-grid-field label="[% l('Circulate') %]"              datatype="bool" path="circulate"></eg-grid-field>
124     <eg-grid-field label="[% l('Deposit?') %]"               datatype="bool" path="deposit"></eg-grid-field>
125     <eg-grid-field label="[% l('Deposit amount') %]"         path="deposit_amount"></eg-grid-field>
126     <eg-grid-field label="[% l('Holdable') %]"               datatype="bool" path="holdable"></eg-grid-field>
127     <eg-grid-field label="[% l('Age-based Hold Protection') %]" path="age_protect.name"></eg-grid-field>
128     <eg-grid-field label="[% l('Reference') %]"              datatype="bool" path="ref"></eg-grid-field>
129     <eg-grid-field label="[% l('Alerts') %]" path="copy_alert_count" handlers="gridCellHandlers" visible compiled>
130       {{item['copy_alert_count']}}
131       <button ng-disabled="item['copy_alert_count'] <= 0" class="btn btn-sm btn-default" ng-click="col.handlers.copyAlertsEdit(item['id'])">[% l('Manage') %]</button>
132     </eg-grid-field>
133     <eg-grid-field label="[% l('Inventory Date') %]"          datatype="timestamp" path="latest_inventory.inventory_date"></eg-grid-field>
134     <eg-grid-field label="[% l('Inventory Workstation') %]"   path="latest_inventory.inventory_workstation.name"></eg-grid-field>
135     <eg-grid-field label="[% l('Loan Duration') %]"           path="loan_duration" hidden>
136       <span>{{item['loan_duration'] | string_pick:'[% l('Short') %]':'[% l('Normal') %]':'[% l('Extended') %]'}}</span>
137     </eg-grid-field>
138     <eg-grid-field label="[% l('Fine Level') %]"              path="fine_level" hidden>
139       <span>{{item['fine_level'] | string_pick:'[% l('Low') %]':'[% l('Normal') %]':'[% l('High') %]'}}</span>
140     </eg-grid-field>
141     <eg-grid-field label="[% l('Classification') %]"          path="call_number.label_class.name" hidden></eg-grid-field>
142     <eg-grid-field label="[% l('Due Date') %]"                path="_circ.due_date" datecontext="_circ_lib" dateonlyinterval="_duration" datatype="timestamp" visible></eg-grid-field>
143     <eg-grid-field label="[% l('OPAC Visible?') %]"           datatype="bool" path="opac_visible" hidden></eg-grid-field>
144     <eg-grid-field label="[% l('Quality') %]"                 path="mint_condition" hidden>
145       <span>{{ item['mint_condition']=='t' ? '[% l('Good') %]' : '[% l('Damaged') %]' }}</span>
146     </eg-grid-field>
147   
148   </eg-grid>
149 </div>
150