Bug 30578: Restore highlighting of patrons from the logged-in library

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-06-13 20:37:44 +02:00 committed by Tomas Cohen Arazi
parent 9309dedb53
commit d2b16aaacc
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -68,7 +68,7 @@ function patron_autocomplete(node, options) {
// Display card number in parentheses if it exists
cardnumber = " (" + item.cardnumber + ") ";
}
if( item.branchcode == loggedInLibrary ){
if( item.library_id == loggedInLibrary ){
loggedInClass = "ac-currentlibrary";
} else {
loggedInClass = "";