2 <!-- org unit selector -->
6 <div class="input-group">
7 <div class="input-group-prepend">
8 <div class="input-group-text" i18n>Holdings Maintenance</div>
10 <eg-org-select [initialOrg]="contextOrg"
11 (onChange)="contextOrgChanged($event)">
17 <!-- Location / Barcode cell template -->
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">arrow_drop_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">arrow_right</span>
32 <span>{{row.locationLabel}}</span>
38 <!-- Holdable true/false display -->
40 <ng-template #holdableTemplate let-row="row" let-userContext="userContext">
41 <ng-container *ngIf="row.copy">
42 <eg-bool [value]="userContext.copyIsHoldable(row.copy)">
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-volcopy-dialog #deleteVolcopy></eg-delete-volcopy-dialog>
52 <eg-bucket-dialog #bucketDialog></eg-bucket-dialog>
54 <!-- holdings grid -->
55 <div class='eg-copies w-100 mt-3'>
56 <eg-grid #holdingsGrid [dataSource]="gridDataSource"
57 (onRowActivate)="onRowActivate($event)" [disablePaging]="true"
58 [rowClassCallback]="rowClassCallback"
59 [sortable]="false" persistKey="cat.holdings">
61 <!-- checkboxes / filters -->
63 <eg-grid-toolbar-checkbox i18n-label label="Show Volumes"
64 #volsCheckbox (onChange)="toggleShowVolumes($event)">
65 </eg-grid-toolbar-checkbox>
66 <eg-grid-toolbar-checkbox i18n-label label="Show Copies"
67 #copiesCheckbox (onChange)="toggleShowCopies($event)">
68 </eg-grid-toolbar-checkbox>
69 <eg-grid-toolbar-checkbox i18n-label label="Show Empty Volumes"
70 #emptyVolsCheckbox (onChange)="toggleShowEmptyVolumes($event)">
71 </eg-grid-toolbar-checkbox>
72 <eg-grid-toolbar-checkbox i18n-label label="Show Empty Libs"
73 #emptyLibsCheckbox (onChange)="toggleShowEmptyLibs($event)">
74 </eg-grid-toolbar-checkbox>
78 <!-- row actions : Ungrouped -->
80 <eg-grid-toolbar-action
81 i18n-label label="Print Labels" (onClick)="openItemPrintLabels($event)">
82 </eg-grid-toolbar-action>
84 <eg-grid-toolbar-action
85 i18n-label label="Request Items" (onClick)="requestItems($event)">
86 </eg-grid-toolbar-action>
88 <!-- row actions : Add -->
90 <eg-grid-toolbar-action
91 i18n-group group="Add" i18n-label label="Add Call Numbers"
92 (onClick)="openVolCopyEdit($event, true, false)">
93 </eg-grid-toolbar-action>
95 <eg-grid-toolbar-action
96 i18n-group group="Add" i18n-label label="Add Items"
97 (onClick)="openVolCopyEdit($event, false, true)">
98 </eg-grid-toolbar-action>
100 <eg-grid-toolbar-action
101 i18n-group group="Add" i18n-label label="Add Call Numbers and Items"
102 (onClick)="openVolCopyEdit($event, true, true)">
103 </eg-grid-toolbar-action>
105 <eg-grid-toolbar-action
106 i18n-group group="Add" i18n-label label="Add Item Alerts"
107 (onClick)="openItemNotes($event, 'create')">
108 </eg-grid-toolbar-action>
110 <eg-grid-toolbar-action
111 i18n-group group="Add" i18n-label label="Add Items To Bucket"
112 (onClick)="openBucketDialog($event)">
113 Z</eg-grid-toolbar-action>
115 <!-- row actions: Edit -->
117 <eg-grid-toolbar-action
118 i18n-group group="Edit" i18n-label label="Edit Call Numbers"
119 (onClick)="openVolCopyEdit($event, true, false)">
120 </eg-grid-toolbar-action>
122 <eg-grid-toolbar-action
123 i18n-group group="Edit" i18n-label label="Edit Call Numbers And Items"
124 (onClick)="openVolCopyEdit($event, true, true)">
125 </eg-grid-toolbar-action>
127 <eg-grid-toolbar-action
128 i18n-group group="Edit" i18n-label label="Edit Items"
129 (onClick)="openVolCopyEdit($event, false, true)">
130 </eg-grid-toolbar-action>
132 <eg-grid-toolbar-action
133 i18n-group group="Edit" i18n-label label="Edit Item Alerts"
134 (onClick)="openItemNotes($event, 'manage')">
135 </eg-grid-toolbar-action>
137 <eg-grid-toolbar-action
138 i18n-group group="Edit" i18n-label label="Replace Barcodes"
139 (onClick)="openReplaceBarcodeDialog($event)">
140 </eg-grid-toolbar-action>
142 <!-- row actions: Delete -->
144 <eg-grid-toolbar-action
145 i18n-group group="Delete" i18n-label label="Delete Empty Call Numbers"
146 (onClick)="deleteHoldings($event, 'vols')">
147 </eg-grid-toolbar-action>
149 <eg-grid-toolbar-action
150 i18n-group group="Delete" i18n-label label="Delete Items"
151 (onClick)="deleteHoldings($event, 'copies')">
152 </eg-grid-toolbar-action>
154 <eg-grid-toolbar-action
155 i18n-group group="Delete" i18n-label label="Delete Call Numbers and Items"
156 (onClick)="deleteHoldings($event, 'both')">
157 </eg-grid-toolbar-action>
159 <!-- row actions : Show -->
161 <eg-grid-toolbar-action
162 i18n-group group="Show" i18n-label label="Show Item Status (list)"
163 (onClick)="openItemStatusList($event)"></eg-grid-toolbar-action>
165 <eg-grid-toolbar-action
166 i18n-group group="Show" i18n-label label="Show Item Status (detail)"
167 (onClick)="openItemStatus($event)"></eg-grid-toolbar-action>
169 <eg-grid-toolbar-action
170 i18n-group group="Show" i18n-label label="Show Item Holds"
171 (onClick)="openItemHolds($event)"></eg-grid-toolbar-action>
173 <eg-grid-toolbar-action
174 i18n-group group="Show" i18n-label label="Show Triggered Events"
175 (onClick)="openItemTriggeredEvents($event)"></eg-grid-toolbar-action>
177 <!-- row actions : Mark -->
179 <eg-grid-toolbar-action
180 group="Mark" i18n-group i18n-label label="Mark Item Damaged"
181 (onClick)="showMarkDamagedDialog($event)"></eg-grid-toolbar-action>
183 <eg-grid-toolbar-action
184 i18n-group group="Mark" i18n-label label="Mark Item Missing"
185 (onClick)="showMarkMissingDialog($event)">
186 </eg-grid-toolbar-action>
188 <eg-grid-toolbar-action
189 i18n-group group="Mark"
190 i18n-label label="Mark Library/Call Number as Transfer Destination"
191 (onClick)="markLibCnForTransfer($event)">
192 </eg-grid-toolbar-action>
196 <!-- NOTE column names were added to match the names from the AngJS grid
197 so grid settings would propagate -->
199 <eg-grid-column path="index" [hidden]="true" [index]="true">
201 <eg-grid-column name="id" path="copy.id" [hidden]="true" label="Copy ID" i18n-label>
203 <eg-grid-column path="volume.id" [hidden]="true" label="Volume ID" i18n-label>
205 <eg-grid-column name="owner_label" [flex]="4"
206 [cellTemplate]="locationTemplate" [cellContext]="gridTemplateContext"
207 label="Location/Barcode" [disableTooltip]="true" i18n-label>
209 <eg-grid-column path="volumeCount" datatype="number" label="Volumes" i18n-label>
211 <eg-grid-column path="copyCount" datatype="number" label="Copies" i18n-label>
213 <eg-grid-column path="volume._label" name="call_number.label" label="Call Number" i18n-label>
215 <eg-grid-column path="copy.barcode" name="barcode" label="Barcode" i18n-label>
217 <eg-grid-column i18n-label label="Circ Library" path="copy.circ_lib"
218 name="circ_lib.name" datatype="org_unit"></eg-grid-column>
219 <eg-grid-column i18n-label label="Owning Library" path="volume.owning_lib"
220 datatype="org_unit"></eg-grid-column>
221 <eg-grid-column i18n-label label="Due Date" path="circ.due_date"
222 datatype="timestamp"></eg-grid-column>
223 <eg-grid-column i18n-label label="Shelving Location" path="copy.location.name" name="location.name">
225 <eg-grid-column i18n-label label="Circulation Modifier"
226 path="copy.circ_modifier" name="circ_modifier">
228 <eg-grid-column i18n-label label="Copy Number" path="copy.copy_number" name="copy_number" [hidden]="true">
231 <eg-grid-column i18n-label label="Status" path="copy.status.name" name="status_name">
233 <eg-grid-column i18n-label label="Call Number Prefix"
234 path="volume.prefix.label" name="call_number.prefix.label" [hidden]="true">
236 <eg-grid-column i18n-label label="Call Number Suffix"
237 path="volume.suffix.label" name="call_number.suffix.label" [hidden]="true">
239 <eg-grid-column i18n-label label="Active/Create Date"
240 path="copy.active_date" datatype="timestamp">
242 <eg-grid-column i18n-label label="Age Hold Protection"
243 path="copy.age_protect.name" name="age_protect.name"></eg-grid-column>
244 <eg-grid-column i18n-label label="Copy Price"
245 path="copy.price" name="price" [hidden]="true"></eg-grid-column>
247 <eg-grid-column i18n-label label="Circulate" path="copy.circulate"
248 name="circulate" datatype="bool" [hidden]="true"></eg-grid-column>
249 <eg-grid-column i18n-label label="Deposit" path="copy.deposit"
250 name="deposit" datatype="bool" [hidden]="true"></eg-grid-column>
251 <eg-grid-column i18n-label label="Deposit Amount" path="copy.deposit_amount"
252 name="deposit_amount" datatype="money" [hidden]="true"></eg-grid-column>
253 <eg-grid-column i18n-label label="Holdable?" name="holdable"
254 [cellTemplate]="holdableTemplate" [cellContext]="gridTemplateContext">
256 <eg-grid-column i18n-label label="Reference?" path="copy.ref"
257 name="ref" datatype="bool" [hidden]="true"></eg-grid-column>
258 <eg-grid-column i18n-label label="Last Inventory Date"
259 path="copy.latest_inventory.inventory_date"
260 name="latest_inventory.inventory_date" datatype="timestamp" [hidden]="true">
262 <eg-grid-column i18n-label label="Last Inventory Workstation"
263 path="copy.latest_inventory.inventory_workstation.name"
264 name="latest_inventory.inventory_workstation.name" [hidden]="true">