LP1924621 Staff catalog place hold screen preferred name
authorGarry Collum <gcollum@gmail.com>
Thu, 15 Apr 2021 23:39:56 +0000 (19:39 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 20 Sep 2021 15:55:36 +0000 (11:55 -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>
Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.html

index cdc864d..3941d87 100644 (file)
@@ -19,7 +19,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>