Forward-port 3.5.0 upgrade script
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / cat / vandelay / queued-record-matches.component.html
1
2 <ng-template #bibIdTemplate let-row="row">
3   <a routerLink="/staff/catalog/record/{{row.eg_record}}/marc_view" i18n>
4     {{row.eg_record}}
5   </a>
6 </ng-template>
7
8 <ng-template #targetTemplate let-row="row">
9   <ng-container *ngIf="isOverlayTarget(row.id)">
10     <span i18n-title title="Selected Merge Target" 
11       class="material-icons">check_circle</span>
12   </ng-container>
13 </ng-template>
14
15 <ng-container *ngIf="queueType == 'bib'">
16   <eg-grid #bibGrid [dataSource]="bibDataSource" 
17     (onRowClick)="matchRowClick($event)"
18     [cellTextGenerator]="cellTextGenerator"
19     [disableSelect]="true" [disableMultiSelect]="true">
20     <!--
21     <eg-grid-toolbar-action i18n-label label="Mark As Overlay Target"
22       [action]="markOverlayTarget">
23     </eg-grid-toolbar-action>
24     -->
25     <eg-grid-column name="id" [index]="true" [hidden]="true" 
26       i18n-label label="Match ID">
27     </eg-grid-column>
28     <eg-grid-column name="selected" i18n-label label="Merge Target"
29       [cellTemplate]="targetTemplate">
30     </eg-grid-column>
31     <eg-grid-column name="eg_record" i18n-label label="Record ID"
32       [cellTemplate]="bibIdTemplate">
33     </eg-grid-column>
34     <eg-grid-column name="match_score" i18n-label label="Match Score">
35     </eg-grid-column>
36     <eg-grid-column name="bre_quality" i18n-label label="Matched Record Quality">
37     </eg-grid-column>
38     <eg-grid-column name="vqbr_quality" i18n-label label="Queued Record Quality">
39     </eg-grid-column>
40     <eg-grid-column path="bib_summary.display.title" i18n-label label="Title">
41     </eg-grid-column>
42     <eg-grid-column path="bib_summary.record.creator.usrname" 
43       i18n-label label="Creator">
44     </eg-grid-column>
45     <eg-grid-column path="bib_summary.record.create_date" datatype="timestamp"
46       i18n-label label="Create Date">
47     </eg-grid-column>
48     <eg-grid-column path="bib_summary.record.editor.usrname" 
49       i18n-label label="Editor">
50     </eg-grid-column>
51     <eg-grid-column path="bib_summary.record.edit_date" datatype="timestamp"
52       i18n-label label="Edit Date">
53     </eg-grid-column>
54   </eg-grid>
55 </ng-container>
56 <ng-container *ngIf="queueType == 'authority'">
57   <eg-grid #authGrid [dataSource]="authDataSource">
58     <eg-grid-column name="id" [index]="true" [hidden]="true" 
59       i18n-label label="Match ID">
60     </eg-grid-column>
61   </eg-grid>
62 </ng-container>
63
64
65 <!--
66 {
67 name: '[% l('Merge Target') %]',
68 get: vlGetOverlayTargetSelector,
69 formatter : vlFormatOverlayTargetSelector,
70 },
71 {name: '[% l('ID') %]', field:'id'},
72 {   name: '[% l('View MARC') %]',
73 get: vlGetViewMARC,
74 formatter : vlFormatViewMatchMARC
75 },
76 {name: '[% l('Match Score') %]', field:'match_score'},
77 {name: '[% l('Queued Record Quality') %]', field:'rec_quality'},
78 {name: '[% l('Matched Record Quality') %]', field:'match_quality'},
79 {name: '[% l('Creator') %]', get: vlGetCreator},
80 {name: '[% l('Create Date') %]', field:'create_date', get: vlGetDateTimeField},
81 {name: '[% l('Last Edit Date') %]', field:'edit_date', get: vlGetDateTimeField},
82 {name: '[% l('Source') %]', field:'source'},
83 ]]
84 }];
85
86 if (recordType == 'auth') {
87 vlMatchGridLayout[0].cells[0].push(
88 {name: '[% l("Heading") %]', field:'heading'}
89 );
90 } else {
91 vlMatchGridLayout[0].cells[0].push(
92 {name: '[% l('TCN Source') %]', field:'tcn_source'},
93 {name: '[% l('TCN Value') %]', field:'tcn_value'}
94 );
95 }
96 -->
97