lp1857911 allow override of IDL class label for display in the FM editor
authorJason Etheridge <jason@EquinoxOLI.org>
Wed, 14 Dec 2022 05:51:57 +0000 (00:51 -0500)
committerJane Sandberg <js7389@princeton.edu>
Tue, 2 May 2023 21:12:26 +0000 (14:12 -0700)
Signed-off-by: Jason Etheridge <jason@EquinoxOLI.org>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>

Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts

index 7328f08..4c6f801 100644 (file)
@@ -276,7 +276,7 @@ export class FmRecordEditorComponent
 
         this.listifyInputs();
         this.idlDef = this.idl.classes[this.idlClass];
-        this.recordLabel = this.idlDef.label;
+        this.recordLabel = this.recordLabel || this.idlDef.label;
 
         // Add some randomness to the generated DOM IDs to ensure against clobbering
         this.idPrefix = 'fm-editor-' + Math.floor(Math.random() * 100000);