1 <ng-template #cnTemplate let-copy="row">
2 {{copy.call_number_prefix_label}}
3 {{copy.call_number_label}}
4 {{copy.call_number_suffix_label}}
7 <ng-template #barcodeTemplate let-copy="row">
8 <div>{{copy.barcode}}</div>
10 <a class="pl-1" target="_blank"
11 href="/eg/staff/cat/item/{{copy.id}}" i18n>View</a>
13 <a class="pl-1" target="_blank"
14 href="/eg/staff/cat/item/{{copy.id}}/edit" i18n>Edit</a>
18 <ng-template #holdableTemplate let-copy="row" let-context="userContext">
19 <span *ngIf="context.holdable(copy)">
20 <div class="border-bottom">
21 <a routerLink="/staff/catalog/hold/C"
22 [queryParams]="{target: copy.id}"
23 queryParamsHandling="merge" i18n>
28 <a routerLink="/staff/catalog/hold/V"
29 [queryParams]="{target: copy.call_number}"
30 queryParamsHandling="merge" i18n>
35 <span *ngIf="!context.holdable(copy)" i18n>No</span>
38 <div class='eg-copies w-100 mt-3'>
39 <eg-grid #copyGrid [dataSource]="gridDataSource"
40 [disableSelect]="true" [cellTextGenerator]="cellTextGenerator"
41 [sortable]="false" persistKey="catalog.record.copies">
42 <eg-grid-column i18n-label label="Item ID" path="id"
43 [hidden]="true" [index]="true">
45 <eg-grid-column i18n-label label="Location" path="circ_lib" datatype="org_unit">
47 <eg-grid-column i18n-label label="Call Number / Item Notes" name="callnumber"
48 [cellTemplate]="cnTemplate">
50 <eg-grid-column i18n-label label="Barcode" name="barcode"
51 [cellTemplate]="barcodeTemplate">
53 <eg-grid-column i18n-label label="Shelving Location" path="copy_location">
55 <eg-grid-column i18n-label label="Circulation Modifier" path="circ_modifier">
57 <eg-grid-column i18n-label label="Age Hold Protection" path="age_protect">
59 <eg-grid-column i18n-label label="Active/Create Date"
60 path="active_date" datatype="timestamp">
62 <eg-grid-column i18n-label label="Holdable?" name="holdable"
63 [cellTemplate]="holdableTemplate" [cellContext]="copyContext">
65 <eg-grid-column i18n-label label="Status" path="copy_status">
67 <eg-grid-column i18n-label label="Due Date" path="due_date" datatype="timestamp">