8ba41a8489fbab74b6c205c2aaad65a6bcd266c5
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / catalog / record / holdings.component.html
1
2 <!-- org unit selector -->
3
4 <div class="row mt-3">
5   <div class="col-lg-4">
6     <div class="input-group">
7       <div class="input-group-prepend">
8         <div class="input-group-text" i18n>Holdings Maintenance</div>
9       </div>
10       <eg-org-select [initialOrg]="contextOrg" 
11         (onChange)="contextOrgChanged($event)">
12       </eg-org-select>
13     </div>
14   </div>
15 </div>
16
17 <!-- Location / Barcode cell template -->
18
19 <ng-template #locationTemplate let-row="row" let-userContext="userContext">
20   <!-- pl-* is doubled for added impact -->
21   <div class="pl-{{row.locationDepth}}">
22     <span class="pl-{{row.locationDepth}}">
23       <a class="label-with-material-icon" (click)="userContext.toggleExpandRow(row)">
24         <!--  leave the icons in place for all node types, but make them
25               invisible when they are not needed. -->
26         <span *ngIf="row.treeNode.expanded"
27           [ngClass]="{invisible: row.copy || row.treeNode.children.length == 0}"
28           class="material-icons p-0 m-0">keyboard_arrow_down</span>
29         <span *ngIf="!row.treeNode.expanded"
30           [ngClass]="{invisible: row.copy || row.treeNode.children.length == 0}"
31           class="material-icons p-0 m-0">keyboard_arrow_right</span>
32         <span>{{row.locationLabel}}</span>
33       </a>
34     </span>
35   </div>
36 </ng-template>
37
38 <!-- Holdable true/false display -->
39
40 <ng-template #holdableTemplate let-row="row" let-userContext="userContext">
41   <ng-container *ngIf="row.copy">
42     <eg-bool [value]="userContext.copyIsHoldable(row.copy)">
43     </eg-bool>
44   </ng-container>
45 </ng-template>
46
47 <eg-mark-damaged-dialog #markDamagedDialog></eg-mark-damaged-dialog>
48 <eg-mark-missing-dialog #markMissingDialog></eg-mark-missing-dialog>
49 <eg-copy-alerts-dialog #copyAlertsDialog></eg-copy-alerts-dialog>
50 <eg-replace-barcode-dialog #replaceBarcode></eg-replace-barcode-dialog>
51 <eg-delete-holding-dialog #deleteHolding></eg-delete-holding-dialog>
52 <eg-bucket-dialog #bucketDialog></eg-bucket-dialog>
53 <eg-conjoined-items-dialog #conjoinedDialog></eg-conjoined-items-dialog>
54 <eg-make-bookable-dialog #makeBookableDialog></eg-make-bookable-dialog>
55 <eg-transfer-items #transferItems></eg-transfer-items>
56 <eg-transfer-holdings #transferHoldings></eg-transfer-holdings>
57 <eg-alert-dialog #transferAlert
58   i18n-dialogTitle i18n-dialogBody
59   dialogTitle="No Target Selected"
60   dialogBody="Please select a suitable transfer target"></eg-alert-dialog>
61
62 <!-- holdings grid -->
63 <div class='eg-copies w-100 mt-3'>
64   <eg-grid #holdingsGrid [dataSource]="gridDataSource"
65     (onRowActivate)="onRowActivate($event)" [disablePaging]="true"
66     [rowClassCallback]="rowClassCallback" [cellTextGenerator]="cellTextGenerator"
67     [sortable]="false" persistKey="cat.holdings">
68
69     <!-- checkboxes / filters -->
70
71     <eg-grid-toolbar-checkbox i18n-label label="Show Call Numbers"
72       #callNumsCheckbox (onChange)="toggleShowCallNums($event)">
73     </eg-grid-toolbar-checkbox> 
74     <eg-grid-toolbar-checkbox i18n-label label="Show Copies" 
75       #copiesCheckbox (onChange)="toggleShowCopies($event)">
76     </eg-grid-toolbar-checkbox> 
77     <eg-grid-toolbar-checkbox i18n-label label="Show Empty Call Numbers"
78       #emptyCallNumsCheckbox (onChange)="toggleShowEmptyCallNums($event)">
79     </eg-grid-toolbar-checkbox> 
80     <eg-grid-toolbar-checkbox i18n-label label="Show Empty Libs"            
81       #emptyLibsCheckbox (onChange)="toggleShowEmptyLibs($event)">
82     </eg-grid-toolbar-checkbox> 
83
84     <!-- row actions -->
85
86     <!-- row actions : Ungrouped -->
87
88     <eg-grid-toolbar-action
89       i18n-label label="Print Labels" (onClick)="openItemPrintLabels($event)">
90     </eg-grid-toolbar-action>
91
92     <eg-grid-toolbar-action
93       i18n-label label="Request Items" (onClick)="requestItems($event)">
94     </eg-grid-toolbar-action>
95
96     <eg-grid-toolbar-action
97       i18n-label label="Link as Conjoined to Marked Bib Record"
98       (onClick)="openConjoinedDialog($event)">
99     </eg-grid-toolbar-action>
100
101     <!-- row actions : Add -->
102
103     <eg-grid-toolbar-action
104       i18n-group group="Add" i18n-label label="Add Call Numbers"
105       (onClick)="openHoldingAdd($event, true, false)">
106     </eg-grid-toolbar-action>
107
108     <eg-grid-toolbar-action
109       i18n-group group="Add" i18n-label label="Add Items"
110       (onClick)="openHoldingAdd($event, false, true)">
111     </eg-grid-toolbar-action>
112
113     <eg-grid-toolbar-action
114       i18n-group group="Add" i18n-label label="Add Call Numbers and Items"
115       (onClick)="openHoldingAdd($event, true, true)">
116     </eg-grid-toolbar-action>
117
118     <eg-grid-toolbar-action
119       i18n-group group="Add" i18n-label label="Add Item Alerts"
120       (onClick)="openItemNotes($event, 'create')">
121     </eg-grid-toolbar-action>
122
123     <eg-grid-toolbar-action
124       i18n-group group="Add" i18n-label label="Add Items To Bucket"
125       (onClick)="openBucketDialog($event)">
126     </eg-grid-toolbar-action>
127
128     <!-- row actions: Booking -->
129
130     <eg-grid-toolbar-action
131       i18n-group group="Booking" i18n-label label="Book Item Now"
132       (onClick)="bookItems($event)">
133     </eg-grid-toolbar-action>
134
135     <eg-grid-toolbar-action
136       i18n-group group="Booking" i18n-label label="Make Items Bookable"
137       (onClick)="makeBookable($event)">
138     </eg-grid-toolbar-action>
139
140     <eg-grid-toolbar-action
141       i18n-group group="Booking" i18n-label label="Manage Reservations"
142       (onClick)="manageReservations($event)">
143     </eg-grid-toolbar-action>
144     
145     <!-- row actions: Edit -->
146
147     <eg-grid-toolbar-action
148       i18n-group group="Edit" i18n-label label="Edit Call Numbers"
149       (onClick)="openHoldingEdit($event, false, true)">
150     </eg-grid-toolbar-action>
151
152     <eg-grid-toolbar-action
153       i18n-group group="Edit" i18n-label label="Edit Call Numbers And Items"
154       (onClick)="openHoldingEdit($event, false, false)">
155     </eg-grid-toolbar-action>
156
157     <eg-grid-toolbar-action
158       i18n-group group="Edit" i18n-label label="Edit Items"
159       (onClick)="openHoldingEdit($event, true, false)">
160     </eg-grid-toolbar-action>
161     
162     <eg-grid-toolbar-action
163       i18n-group group="Edit" i18n-label label="Edit Item Alerts"
164       (onClick)="openItemNotes($event, 'manage')">
165     </eg-grid-toolbar-action>
166
167     <eg-grid-toolbar-action
168       i18n-group group="Edit" i18n-label label="Replace Barcodes"
169       (onClick)="openReplaceBarcodeDialog($event)">
170     </eg-grid-toolbar-action>
171
172     <!-- row actions: Delete -->
173
174     <eg-grid-toolbar-action
175       i18n-group group="Delete" i18n-label label="Delete Empty Call Numbers"
176       (onClick)="deleteHoldings($event, 'callNums')">
177     </eg-grid-toolbar-action>
178
179     <eg-grid-toolbar-action
180      i18n-group group="Delete" i18n-label label="Delete Items"
181      (onClick)="deleteHoldings($event, 'copies')">
182     </eg-grid-toolbar-action>
183
184     <eg-grid-toolbar-action
185       i18n-group group="Delete" i18n-label label="Delete Call Numbers and Items"
186       (onClick)="deleteHoldings($event, 'both')">
187     </eg-grid-toolbar-action>
188     
189     <!-- row actions : Show -->
190
191     <eg-grid-toolbar-action
192       i18n-group group="Show" i18n-label label="Show Item Status (list)"
193       (onClick)="openItemStatusList($event)"></eg-grid-toolbar-action>
194
195     <eg-grid-toolbar-action
196       i18n-group group="Show" i18n-label label="Show Item Status (detail)"
197       (onClick)="openItemStatus($event)"></eg-grid-toolbar-action>
198
199     <eg-grid-toolbar-action
200       i18n-group group="Show" i18n-label label="Show Item Holds"
201       (onClick)="openItemHolds($event)"></eg-grid-toolbar-action>
202
203     <eg-grid-toolbar-action
204       i18n-group group="Show" i18n-label label="Show Triggered Events"
205       (onClick)="openItemTriggeredEvents($event)"></eg-grid-toolbar-action>
206
207     <!-- row actions : Mark -->
208
209     <eg-grid-toolbar-action
210       group="Mark" i18n-group i18n-label label="Mark Item Damaged"
211       (onClick)="showMarkDamagedDialog($event)"></eg-grid-toolbar-action>
212
213     <eg-grid-toolbar-action
214       i18n-group group="Mark" i18n-label label="Mark Item Missing"
215       (onClick)="showMarkMissingDialog($event)">
216     </eg-grid-toolbar-action>
217
218     <eg-grid-toolbar-action
219       i18n-group group="Mark" 
220       i18n-label label="Mark Library/Call Number as Transfer Destination"
221       (onClick)="markLibCnForTransfer($event)">
222     </eg-grid-toolbar-action>
223
224     <eg-grid-toolbar-action
225       i18n-group group="Transfer" 
226       i18n-label label="Transfer Items to Marked Destination"
227       (onClick)="transferSelectedItems($event)">
228     </eg-grid-toolbar-action>
229
230     <eg-grid-toolbar-action
231       i18n-group group="Transfer" 
232       i18n-label label="Transfer Holdings to Marked Destination"
233       (onClick)="transferSelectedHoldings($event)">
234     </eg-grid-toolbar-action>
235
236     <!-- fields -->
237     <!-- NOTE column names were added to match the names from the AngJS grid
238         so grid settings would propagate -->
239
240     <eg-grid-column path="index" [hidden]="true" [index]="true">
241     </eg-grid-column>
242     <eg-grid-column name="id" path="copy.id" [hidden]="true" label="Item ID" i18n-label>
243     </eg-grid-column>
244     <eg-grid-column path="callNum.id" [hidden]="true" label="Call Number ID" i18n-label>
245     </eg-grid-column>
246     <eg-grid-column name="owner_label" [flex]="4"
247       [cellTemplate]="locationTemplate" [cellContext]="gridTemplateContext" 
248       label="Location/Barcode" [disableTooltip]="true" i18n-label>
249     </eg-grid-column>
250     <eg-grid-column path="callNumCount" datatype="number" label="Call Numbers" i18n-label>
251     </eg-grid-column>
252     <eg-grid-column path="copyCount" datatype="number" label="Copies" i18n-label>
253     </eg-grid-column>
254     <eg-grid-column path="callNum._label" name="call_number.label" 
255       label="Call Number" i18n-label>
256     </eg-grid-column>
257     <eg-grid-column path="copy.barcode" name="barcode" label="Barcode" i18n-label>
258     </eg-grid-column>
259     <eg-grid-column i18n-label label="Circ Library" path="copy.circ_lib" 
260       name="circ_lib.name" datatype="org_unit"></eg-grid-column>
261     <eg-grid-column i18n-label label="Owning Library" path="callNum.owning_lib" 
262       datatype="org_unit"></eg-grid-column>
263     <eg-grid-column i18n-label label="Due Date" path="circ.due_date" 
264       datatype="timestamp"></eg-grid-column>
265     <eg-grid-column i18n-label label="Shelving Location" 
266       path="copy.location.name" name="location.name">
267     </eg-grid-column>
268     <eg-grid-column i18n-label label="Circulation Modifier" 
269       path="copy.circ_modifier" name="circ_modifier">
270     </eg-grid-column>
271     <eg-grid-column i18n-label label="Item Number" path="copy.copy_number" 
272       name="copy_number" [hidden]="true">
273     </eg-grid-column>
274
275     <eg-grid-column i18n-label label="Status" 
276       path="copy.status.name" name="status_name">
277     </eg-grid-column>
278     <eg-grid-column i18n-label label="Call Number Prefix" 
279       path="callNum.prefix.label" name="call_number.prefix.label" [hidden]="true">
280     </eg-grid-column>
281     <eg-grid-column i18n-label label="Call Number Suffix" 
282       path="callNum.suffix.label" name="call_number.suffix.label" [hidden]="true">
283     </eg-grid-column>
284     <eg-grid-column i18n-label label="Parts" path="copy._monograph_parts"
285       name="monograph_parts" [hidden]="true">
286     </eg-grid-column>
287     <eg-grid-column i18n-label label="Notes" path="copy.notes.length"
288       name="note_count" [hidden]="true">
289     </eg-grid-column>
290     <eg-grid-column i18n-label label="Tags" path="copy.tags.length"
291       name="tag_count" [hidden]="true">
292     </eg-grid-column>
293     <eg-grid-column i18n-label label="Alerts" path="copy.copy_alerts.length"
294       name="alert_count" [hidden]="true">
295     </eg-grid-column>
296     <eg-grid-column i18n-label label="Circulate As MARC Type"
297       path="copy.circ_as_type" [hidden]="true">
298     </eg-grid-column>
299     <eg-grid-column i18n-label label="Active/Create Date" 
300       path="copy.active_date" datatype="timestamp">
301     </eg-grid-column>
302     <eg-grid-column i18n-label label="Age Hold Protection" 
303       path="copy.age_protect.name" name="age_protect.name"></eg-grid-column>
304     <eg-grid-column i18n-label label="Item Price" 
305       path="copy.price" name="price" [hidden]="true"></eg-grid-column>
306
307     <eg-grid-column i18n-label label="Circulate" path="copy.circulate" 
308       name="circulate" datatype="bool" [hidden]="true"></eg-grid-column>
309     <eg-grid-column i18n-label label="Deposit" path="copy.deposit" 
310       name="deposit" datatype="bool" [hidden]="true"></eg-grid-column>
311     <eg-grid-column i18n-label label="Deposit Amount" path="copy.deposit_amount" 
312       name="deposit_amount" datatype="money" [hidden]="true"></eg-grid-column>
313     <eg-grid-column i18n-label label="Holdable?" name="holdable" 
314       [cellTemplate]="holdableTemplate" [cellContext]="gridTemplateContext">
315     </eg-grid-column>
316     <eg-grid-column i18n-label label="Reference?" path="copy.ref" 
317       name="ref" datatype="bool" [hidden]="true"></eg-grid-column>
318     <eg-grid-column i18n-label label="Last Inventory Date" 
319       path="copy.latest_inventory.inventory_date" 
320       name="latest_inventory.inventory_date" datatype="timestamp" [hidden]="true">
321     </eg-grid-column>
322     <eg-grid-column i18n-label label="Last Inventory Workstation" 
323       path="copy.latest_inventory.inventory_workstation.name" 
324       name="latest_inventory.inventory_workstation.name" [hidden]="true">
325     </eg-grid-column>
326   </eg-grid>
327 </div>
328