};
if (this.vandelay.importSelection) {
- options.overlay_map = this.vandelay.importSelection.overlayMap;
+ options.overlay_map = {};
+ for (let recId in this.vandelay.importSelection.overlayMap) {
+ options.overlay_map[recId] =
+ this.vandelay.importSelection.overlayMap[recId].eg_record();
+ }
}
return options;
export class QueuedRecordMatchesComponent implements OnInit {
@Input() queueType: string;
- @Input() recordId: number;
+ @Input() recordId: number; // queued record ID
@ViewChild('bibGrid', { static: false }) bibGrid: GridComponent;
@ViewChild('authGrid', { static: false }) authGrid: GridComponent;
this.vandelay.importSelection = selection;
}
const match = this.matchMap[matchId];
- selection.overlayMap[this.recordId] = match.eg_record();
+ selection.overlayMap[this.recordId] = match;
}
}
isOverlayTarget(matchId: number): boolean {
const selection = this.vandelay.importSelection;
if (selection) {
- const match = this.matchMap[matchId];
- return selection.overlayMap[this.recordId] === match.eg_record();
+ const forRec: IdlObject = selection.overlayMap[this.recordId];
+ if (forRec) {
+ const match = this.matchMap[matchId];
+ return forRec.id() === match.id();
+ }
}
return false;
}