From: Jane Sandberg Date: Tue, 1 Sep 2020 18:46:17 +0000 (-0700) Subject: LP1849212: more simplified editor X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d0750f2e247f60e1c49f0ccafa612fb5484fdd53;p=working%2FEvergreen.git LP1849212: more simplified editor Signed-off-by: Jane Sandberg --- 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]); }) }); });