LP1806087 Ang catalog pending tabs offer manual redirect
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / catalog / record / copies.component.html
1 <ng-template #cnTemplate let-copy="row">
2   {{copy.call_number_prefix_label}}
3   {{copy.call_number_label}}
4   {{copy.call_number_suffix_label}}
5 </ng-template>
6
7 <ng-template #barcodeTemplate let-copy="row">
8   <div>{{copy.barcode}}</div>
9   <div>
10   <a class="pl-1" target="_blank" 
11     href="/eg/staff/cat/item/{{copy.id}}" i18n>View</a>
12   | 
13   <a class="pl-1" target="_blank"
14     href="/eg/staff/cat/item/{{copy.id}}/edit" i18n>Edit</a>
15   </div>
16 </ng-template>
17
18 <ng-template #holdableTemplate let-copy="row" let-context="userContext">
19   <span *ngIf="context.holdable(copy)" i18n>Yes</span>
20   <span *ngIf="!context.holdable(copy)" i18n>No</span>
21 </ng-template>
22
23 <div class='eg-copies w-100 mt-3'>
24   <eg-grid #copyGrid [dataSource]="gridDataSource" 
25     [disableSelect]="true"
26     [sortable]="false" persistKey="catalog.record.copies">
27     <eg-grid-column i18n-label label="Copy ID" path="id" 
28       [hidden]="true" [index]="true">
29     </eg-grid-column>
30     <eg-grid-column i18n-label label="Location" path="circ_lib" datatype="org_unit">
31     </eg-grid-column>
32     <eg-grid-column i18n-label label="Call Number / Copy Notes" 
33       name="callnumber" [cellTemplate]="cnTemplate">
34     </eg-grid-column>
35     <eg-grid-column i18n-label label="Barcode" name="barcode"
36       [cellTemplate]="barcodeTemplate">
37     </eg-grid-column>
38     <eg-grid-column i18n-label label="Shelving Location" path="copy_location">
39     </eg-grid-column>
40     <eg-grid-column i18n-label label="Circulation Modifier" path="circ_modifier">
41     </eg-grid-column>
42     <eg-grid-column i18n-label label="Age Hold Protection" path="age_protect">
43     </eg-grid-column>
44     <eg-grid-column i18n-label label="Active/Create Date" 
45       path="active_date" datatype="timestamp">
46     </eg-grid-column>
47     <eg-grid-column i18n-label label="Holdable?" name="holdable" 
48       [cellTemplate]="holdableTemplate" [cellContext]="copyContext">
49     </eg-grid-column>
50     <eg-grid-column i18n-label label="Status" path="copy_status">
51     </eg-grid-column>
52     <eg-grid-column i18n-label label="Due Date" path="due_date" datatype="timestamp">
53     </eg-grid-column>
54   </eg-grid>
55 </div>
56