LP#1842763: Vandelay: disable grid row select on queued record matches
[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     [disableSelect]="true" [disableMultiSelect]="true">
19     <!--
20     <eg-grid-toolbar-action i18n-label label="Mark As Overlay Target"
21       [action]="markOverlayTarget">
22     </eg-grid-toolbar-action>
23     -->
24     <eg-grid-column name="id" [index]="true" [hidden]="true" 
25       i18n-label label="Match ID">
26     </eg-grid-column>
27     <eg-grid-column name="selected" i18n-label label="Merge Target"
28       [cellTemplate]="targetTemplate">
29     </eg-grid-column>
30     <eg-grid-column name="eg_record" i18n-label label="Record ID"
31       [cellTemplate]="bibIdTemplate">
32     </eg-grid-column>
33     <eg-grid-column name="match_score" i18n-label label="Match Score">
34     </eg-grid-column>
35     <eg-grid-column name="bre_quality" i18n-label label="Matched Record Quality">
36     </eg-grid-column>
37     <eg-grid-column name="vqbr_quality" i18n-label label="Queued Record Quality">
38     </eg-grid-column>
39     <eg-grid-column path="bib_summary.display.title" i18n-label label="Title">
40     </eg-grid-column>
41     <eg-grid-column path="bib_summary.record.creator.usrname" 
42       i18n-label label="Creator">
43     </eg-grid-column>
44     <eg-grid-column path="bib_summary.record.create_date" datatype="timestamp"
45       i18n-label label="Create Date">
46     </eg-grid-column>
47     <eg-grid-column path="bib_summary.record.editor.usrname" 
48       i18n-label label="Editor">
49     </eg-grid-column>
50     <eg-grid-column path="bib_summary.record.edit_date" datatype="timestamp"
51       i18n-label label="Edit Date">
52     </eg-grid-column>
53   </eg-grid>
54 </ng-container>
55 <ng-container *ngIf="queueType == 'authority'">
56   <eg-grid #authGrid [dataSource]="authDataSource">
57     <eg-grid-column name="id" [index]="true" [hidden]="true" 
58       i18n-label label="Match ID">
59     </eg-grid-column>
60   </eg-grid>
61 </ng-container>
62
63
64 <!--
65 {
66 name: '[% l('Merge Target') %]',
67 get: vlGetOverlayTargetSelector,
68 formatter : vlFormatOverlayTargetSelector,
69 },
70 {name: '[% l('ID') %]', field:'id'},
71 {   name: '[% l('View MARC') %]',
72 get: vlGetViewMARC,
73 formatter : vlFormatViewMatchMARC
74 },
75 {name: '[% l('Match Score') %]', field:'match_score'},
76 {name: '[% l('Queued Record Quality') %]', field:'rec_quality'},
77 {name: '[% l('Matched Record Quality') %]', field:'match_quality'},
78 {name: '[% l('Creator') %]', get: vlGetCreator},
79 {name: '[% l('Create Date') %]', field:'create_date', get: vlGetDateTimeField},
80 {name: '[% l('Last Edit Date') %]', field:'edit_date', get: vlGetDateTimeField},
81 {name: '[% l('Source') %]', field:'source'},
82 ]]
83 }];
84
85 if (recordType == 'auth') {
86 vlMatchGridLayout[0].cells[0].push(
87 {name: '[% l("Heading") %]', field:'heading'}
88 );
89 } else {
90 vlMatchGridLayout[0].cells[0].push(
91 {name: '[% l('TCN Source') %]', field:'tcn_source'},
92 {name: '[% l('TCN Value') %]', field:'tcn_value'}
93 );
94 }
95 -->
96