LP#1929749: combobox: improve idlIncludeLibraryInLabel
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 13 Jan 2022 15:29:47 +0000 (10:29 -0500)
committerJane Sandberg <js7389@princeton.edu>
Sun, 2 Oct 2022 15:02:50 +0000 (08:02 -0700)
This option no longer requires that the OU field be
fleshed.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Ruth Frasur <rfrasur@library.in.gov>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts

index c9885bf..390e6bc 100644 (file)
@@ -251,7 +251,7 @@ export class ComboboxComponent implements ControlValueAccessor, OnInit, AfterVie
                 default:
                     const field = this.idlField;
                     if (this.idlIncludeLibraryInLabel) {
-                        return fm[field]() + ' (' + fm[this.idlIncludeLibraryInLabel]().shortname() + ')';
+                        return fm[field]() + ' (' + this.getOrgShortname(fm[this.idlIncludeLibraryInLabel]()) + ')';
                     } else {
                         return fm[field]();
                     }