|
Lines 789-799
function patron_autocomplete(node, options) {
Link Here
|
| 789 |
item.link = null; |
789 |
item.link = null; |
| 790 |
} |
790 |
} |
| 791 |
|
791 |
|
| 792 |
var cardnumber = ""; |
|
|
| 793 |
if (item.cardnumber != "") { |
| 794 |
// Display card number in parentheses if it exists |
| 795 |
cardnumber = " (" + item.cardnumber + ") "; |
| 796 |
} |
| 797 |
if (item.library_id == loggedInLibrary) { |
792 |
if (item.library_id == loggedInLibrary) { |
| 798 |
loggedInClass = "ac-currentlibrary"; |
793 |
loggedInClass = "ac-currentlibrary"; |
| 799 |
} else { |
794 |
} else { |
|
Lines 805-824
function patron_autocomplete(node, options) {
Link Here
|
| 805 |
.append( |
800 |
.append( |
| 806 |
"" + |
801 |
"" + |
| 807 |
(item.link ? '<a href="' + item.link + '">' : "<a>") + |
802 |
(item.link ? '<a href="' + item.link + '">' : "<a>") + |
| 808 |
(item.surname ? item.surname.escapeHtml() : "") + |
803 |
$patron_to_html(item, { display_cardnumber: true }) + |
| 809 |
", " + |
|
|
| 810 |
(item.preferred_name |
| 811 |
? item.preferred_name.escapeHtml() |
| 812 |
: item.firstname |
| 813 |
? item.firstname.escapeHtml() |
| 814 |
: "") + |
| 815 |
" " + |
| 816 |
(item.middle_name ? item.middle_name.escapeHtml() : "") + |
| 817 |
" " + |
| 818 |
(item.other_name |
| 819 |
? "(" + item.other_name.escapeHtml() + ")" |
| 820 |
: "") + |
| 821 |
cardnumber.escapeHtml() + |
| 822 |
" " + |
804 |
" " + |
| 823 |
(item.date_of_birth |
805 |
(item.date_of_birth |
| 824 |
? $date(item.date_of_birth) + |
806 |
? $date(item.date_of_birth) + |
| 825 |
- |
|
|