|
Lines 765-775
function patron_autocomplete(node, options) {
Link Here
|
| 765 |
item.link = null; |
765 |
item.link = null; |
| 766 |
} |
766 |
} |
| 767 |
|
767 |
|
| 768 |
var cardnumber = ""; |
|
|
| 769 |
if (item.cardnumber != "") { |
| 770 |
// Display card number in parentheses if it exists |
| 771 |
cardnumber = " (" + item.cardnumber + ") "; |
| 772 |
} |
| 773 |
if (item.library_id == loggedInLibrary) { |
768 |
if (item.library_id == loggedInLibrary) { |
| 774 |
loggedInClass = "ac-currentlibrary"; |
769 |
loggedInClass = "ac-currentlibrary"; |
| 775 |
} else { |
770 |
} else { |
|
Lines 781-800
function patron_autocomplete(node, options) {
Link Here
|
| 781 |
.append( |
776 |
.append( |
| 782 |
"" + |
777 |
"" + |
| 783 |
(item.link ? '<a href="' + item.link + '">' : "<a>") + |
778 |
(item.link ? '<a href="' + item.link + '">' : "<a>") + |
| 784 |
(item.surname ? item.surname.escapeHtml() : "") + |
779 |
$patron_to_html(item, { display_cardnumber: true }) + |
| 785 |
", " + |
|
|
| 786 |
(item.preferred_name |
| 787 |
? item.preferred_name.escapeHtml() |
| 788 |
: item.firstname |
| 789 |
? item.firstname.escapeHtml() |
| 790 |
: "") + |
| 791 |
" " + |
| 792 |
(item.middle_name ? item.middle_name.escapeHtml() : "") + |
| 793 |
" " + |
| 794 |
(item.other_name |
| 795 |
? "(" + item.other_name.escapeHtml() + ")" |
| 796 |
: "") + |
| 797 |
cardnumber.escapeHtml() + |
| 798 |
" " + |
780 |
" " + |
| 799 |
(item.date_of_birth |
781 |
(item.date_of_birth |
| 800 |
? $date(item.date_of_birth) + |
782 |
? $date(item.date_of_birth) + |
| 801 |
- |
|
|