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