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" href="/eg/staff/cat/item/{{copy.id}}" i18n>View</a>
12 <a class="pl-1" href="/eg/staff/cat/item/{{copy.id}}/edit" i18n>Edit</a>
16 <ng-template #holdableTemplate let-copy="row" let-context="userContext">
17 <span *ngIf="context.holdable(copy)" i18n>Yes</span>
18 <span *ngIf="!context.holdable(copy)" i18n>No</span>
21 <div class='eg-copies w-100 mt-3'>
22 <eg-grid #copyGrid [dataSource]="gridDataSource"
23 [sortable]="false" persistKey="catalog.record.copies">
24 <eg-grid-column i18n-label label="Copy ID" path="id"
25 [hidden]="true" [index]="true">
27 <eg-grid-column i18n-label label="Location" path="circ_lib" datatype="org_unit">
29 <eg-grid-column i18n-label label="Call Number / Copy Notes"
30 name="callnumber" [cellTemplate]="cnTemplate">
32 <eg-grid-column i18n-label label="Barcode" name="barcode"
33 [cellTemplate]="barcodeTemplate">
35 <eg-grid-column i18n-label label="Shelving Location" path="copy_location">
37 <eg-grid-column i18n-label label="Circulation Modifier" path="circ_modifier">
39 <eg-grid-column i18n-label label="Age Hold Protection" path="age_protect">
41 <eg-grid-column i18n-label label="Active/Create Date"
42 path="active_date" datatype="timestamp">
44 <eg-grid-column i18n-label label="Holdable?" name="holdable"
45 [cellTemplate]="holdableTemplate" [cellContext]="copyContext">
47 <eg-grid-column i18n-label label="Status" path="copy_status">
49 <eg-grid-column i18n-label label="Due Date" path="due_date" datatype="timestamp">