LP1924621 Staff catalog place hold screen preferred name
authorGarry Collum <gcollum@gmail.com>
Thu, 15 Apr 2021 23:39:56 +0000 (19:39 -0400)
committerJason Boyer <JBoyer@equinoxOLI.org>
Thu, 23 Sep 2021 18:52:33 +0000 (14:52 -0400)
Displays the preferred first or last name on the place holds screen,
if a patron barcode is entered.

To test.
1. Set up a borrower with a preferred first name, and one with a
preferred last name, and one with both.
2. Use the catalog place hold screen to search for these borrowers
and notice that the preferred names, if available, are displayed.

* note newline added by Bill to break up wide column.

Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Mary Llewellyn <mllewell@biblio.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Gina Monti <gmonti@biblio.org>
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>

Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.html

index a5fcb52..2b733af 100644 (file)
@@ -26,7 +26,8 @@
     <ng-container *ngIf="!badBarcode">
       <h3 i18n>Place Hold
         <small *ngIf="user">
-        ({{user.family_name()}}, {{user.first_given_name()}})
+        ({{user.pref_family_name() ? user.pref_family_name() : user.family_name()}}, 
+        {{user.pref_first_given_name() ? user.pref_first_given_name() :user.first_given_name()}})
         </small>
       </h3>
     </ng-container>