Skip to content

Commit dea409c

Browse files
stephanielearybmagic007
authored andcommitted
LP1945366 Preferred name as patron page title
Uses the patron's preferred name as the page title in the AngularJS patron screens. Release-note: Sets user's preferred name as AngularJS patron page title Signed-off-by: Stephanie Leary <[email protected]> Signed-off-by: Shula Link <[email protected]> Signed-off-by: Ruth Frasur Davis <[email protected]> Signed-off-by: blake <[email protected]>
1 parent c9b6961 commit dea409c

File tree

1 file changed

+6
-6
lines changed
  • Open-ILS/web/js/ui/default/staff/circ/patron

1 file changed

+6
-6
lines changed

Open-ILS/web/js/ui/default/staff/circ/patron/app.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ function($scope, $q , $location , $filter , egCore , egNet , egUser , egAlertDi
307307
egCore.strings.setPageTitle(
308308
egCore.strings.PAGE_TITLE_PATRON_NAME,
309309
egCore.strings['PAGE_TITLE_PATRON_' + tab.toUpperCase()],
310-
{ lname : patronSvc.current.family_name(),
311-
fname : patronSvc.current.first_given_name(),
312-
mname : patronSvc.current.second_given_name()
310+
{ lname : patronSvc.current.pref_family_name() || patronSvc.current.family_name(),
311+
fname : patronSvc.current.pref_first_given_name() || patronSvc.current.first_given_name(),
312+
mname : patronSvc.current.pref_second_given_name() || patronSvc.current.second_given_name()
313313
}
314314
);
315315
})
@@ -583,7 +583,7 @@ function($scope , $location , egCore , egConfirmDialog , egUser , patronSvc , $u
583583
barcode_map[match.barcode] = user.id();
584584
matches.push( {
585585
barcode: match.barcode,
586-
title: user.first_given_name() + ' ' + user.family_name(),
586+
title: (user.pref_first_given_name() || user.first_given_name()) + ' ' + (user.pref_family_name() || user.family_name()),
587587
org_name: user.home_ou().name(),
588588
org_shortname: user.home_ou().shortname()
589589
});
@@ -650,8 +650,8 @@ function($scope , $location , egCore , egConfirmDialog , egUser , patronSvc , $u
650650
egConfirmDialog.open(
651651
egCore.strings.OPT_IN_DIALOG_TITLE,
652652
egCore.strings.OPT_IN_DIALOG,
653-
{ family_name : user.family_name(),
654-
first_given_name : user.first_given_name(),
653+
{ family_name : user.pref_family_name() || user.family_name(),
654+
first_given_name : user.pref_first_given_name() || user.first_given_name(),
655655
org_name : org.name(),
656656
org_shortname : org.shortname(),
657657
ok : function() { createOptIn(user.id()) },

0 commit comments

Comments
 (0)