From af4ec1c037b482a60ec902890fc06015a127cc88 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 4 Dec 2019 17:34:45 -0500 Subject: [PATCH] LP#1830923: add support for editing queued authority records Signed-off-by: Galen Charlton Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- .../eg2/src/app/staff/cat/vandelay/queued-record.component.html | 9 +++++++-- .../eg2/src/app/staff/cat/vandelay/queued-record.component.ts | 6 ++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/cat/vandelay/queued-record.component.html b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/queued-record.component.html index ebb51b4081..b8fcdec714 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/vandelay/queued-record.component.html +++ b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/queued-record.component.html @@ -21,10 +21,15 @@ - + (recordSaved)="handleMarcRecordSaved($event)" + *ngIf="queueType === 'bib'"> + diff --git a/Open-ILS/src/eg2/src/app/staff/cat/vandelay/queued-record.component.ts b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/queued-record.component.ts index 3b5ba4caf9..87ef08045d 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/vandelay/queued-record.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/queued-record.component.ts @@ -53,13 +53,15 @@ export class QueuedRecordComponent { loadRecord() { this.queuedRecord = null; - this.pcrud.retrieve('vqbr', this.recordId) + this.pcrud.retrieve((this.queueType === 'bib' ? 'vqbr' : 'vqar'), this.recordId) .subscribe(rec => this.queuedRecord = rec); } handleMarcRecordSaved(saveEvent: any) { this.queuedRecord.marc(saveEvent.marcXml); - this.queuedRecord.bib_source(saveEvent.bibSource); + if (this.queueType === 'bib') { + this.queuedRecord.bib_source(saveEvent.bibSource); + } this.pcrud.update(this.queuedRecord).subscribe( response => this.toast.success(this.updateSuccess.text), error => { -- 2.11.0