LP1835990: remove i18n inside i18n element
[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)">
20     <div class="border-bottom">
21       <a routerLink="/staff/catalog/hold/C"
22         [queryParams]="{target: copy.id}"
23         queryParamsHandling="merge" i18n>
24         Copy Hold
25       </a>
26     </div>
27     <div>
28       <a routerLink="/staff/catalog/hold/V"
29         [queryParams]="{target: copy.call_number}"
30         queryParamsHandling="merge" i18n>
31         Volume Hold
32       </a>
33     </div>
34   </span>
35   <span *ngIf="!context.holdable(copy)" i18n>No</span>
36 </ng-template>
37
38 <div class='eg-copies w-100 mt-3'>
39   <eg-grid #copyGrid [dataSource]="gridDataSource" 
40     [disableSelect]="true"
41     [sortable]="false" persistKey="catalog.record.copies">
42     <eg-grid-column i18n-label label="Copy ID" path="id" 
43       [hidden]="true" [index]="true">
44     </eg-grid-column>
45     <eg-grid-column i18n-label label="Location" path="circ_lib" datatype="org_unit">
46     </eg-grid-column>
47     <eg-grid-column i18n-label label="Call Number / Copy Notes" 
48       name="callnumber" [cellTemplate]="cnTemplate">
49     </eg-grid-column>
50     <eg-grid-column i18n-label label="Barcode" name="barcode"
51       [cellTemplate]="barcodeTemplate">
52     </eg-grid-column>
53     <eg-grid-column i18n-label label="Shelving Location" path="copy_location">
54     </eg-grid-column>
55     <eg-grid-column i18n-label label="Circulation Modifier" path="circ_modifier">
56     </eg-grid-column>
57     <eg-grid-column i18n-label label="Age Hold Protection" path="age_protect">
58     </eg-grid-column>
59     <eg-grid-column i18n-label label="Active/Create Date" 
60       path="active_date" datatype="timestamp">
61     </eg-grid-column>
62     <eg-grid-column i18n-label label="Holdable?" name="holdable" 
63       [cellTemplate]="holdableTemplate" [cellContext]="copyContext">
64     </eg-grid-column>
65     <eg-grid-column i18n-label label="Status" path="copy_status">
66     </eg-grid-column>
67     <eg-grid-column i18n-label label="Due Date" path="due_date" datatype="timestamp">
68     </eg-grid-column>
69   </eg-grid>
70 </div>
71