@@ -, +, @@ --- koha-tmpl/intranet-tmpl/prog/js/viewlog.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) --- a/koha-tmpl/intranet-tmpl/prog/js/viewlog.js +++ a/koha-tmpl/intranet-tmpl/prog/js/viewlog.js @@ -159,9 +159,15 @@ $(document).ready(function(){ // Display card number in parentheses if it exists cardnumber = " (" + item.cardnumber + ") "; } + var itemString = "" + (item.surname ? item.surname.escapeHtml() : "") + ", " + (item.firstname ? item.firstname.escapeHtml() : "") + cardnumber.escapeHtml() + " "; + itemString += (item.address ? item.address.escapeHtml() : "") + " " + + (item.city ? item.city.escapeHtml() : "") + " " + + (item.zipcode ? item.zipcode.escapeHtml() : "") + " " + + (item.country ? item.country.escapeHtml() : "") + + ""; return $("
  • ") .data("ui-autocomplete-item", item) - .append("" + item.surname + ", " + item.firstname + cardnumber + " " + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "") + .append(itemString) .appendTo(ul); }; } --