From d0750f2e247f60e1c49f0ccafa612fb5484fdd53 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Tue, 1 Sep 2020 11:46:17 -0700 Subject: [PATCH] LP1849212: more simplified editor Signed-off-by: Jane Sandberg --- .../marc-edit/simplified-editor/simplified-editor.component.html | 4 ++-- .../share/marc-edit/simplified-editor/simplified-editor.component.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/simplified-editor/simplified-editor.component.html b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/simplified-editor/simplified-editor.component.html index 52acfc0480..c6bbf23017 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/simplified-editor/simplified-editor.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/simplified-editor/simplified-editor.component.html @@ -1,11 +1,11 @@ - +
diff --git a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/simplified-editor/simplified-editor.component.ts b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/simplified-editor/simplified-editor.component.ts index 8ac4dd4dd6..9cb39a42b9 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/simplified-editor/simplified-editor.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/simplified-editor/simplified-editor.component.ts @@ -24,7 +24,7 @@ export class MarcSimplifiedEditorComponent implements AfterViewInit, OnInit { idPrefix: string; fieldIndex = 0; - subfieldLabels: {[tag: string]: {[subfield: string]: string}}; + subfieldLabels = {}; addField: (field: MarcField) => void; @@ -51,7 +51,7 @@ export class MarcSimplifiedEditorComponent implements AfterViewInit, OnInit { this.tagTable.loadTags({marcRecordType: 'biblio', ffType: 'BKS'}).then(table => { this.fields.forEach((field) => { field.subfields.forEach((subfield) => { - this.subfieldLabels[field.tag][subfield[0]] = table.getSubfieldLabel(field.tag, subfield[0]); + this.subfieldLabels[field.tag + subfield[0]] = table.getSubfieldLabel(field.tag, subfield[0]); }) }); }); -- 2.11.0