@@ -, +, @@ suggestion form Surname, Firstname (CardNumber) Address City Zipcode Country. an existing patron (last)name in the "Checkout" textarea. WITHOUT the patron Initials being displayed. and the the Initials displayed in italics. --- circ/ysearch.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) --- a/circ/ysearch.pl +++ a/circ/ysearch.pl @@ -83,6 +83,7 @@ while ( my $b = $borrowers_rs->next ) { { borrowernumber => $b->borrowernumber, surname => $b->surname // '', firstname => $b->firstname // '', + initials => $b->initials // '', cardnumber => $b->cardnumber // '', dateofbirth => format_sqldatetime($b->dateofbirth, undef, undef, 1) // '', address => $b->address // '', --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc @@ -13,7 +13,7 @@ $(document).ready(function(){ .data( "ui-autocomplete" )._renderItem = function( ul, item ) { return $( "
  • " ) .data( "ui-autocomplete-item", item ) - .append( "" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") " + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "" ) + .append( "" + item.surname + ", " + item.firstname + " " + item.initials + "" + " (" + item.cardnumber + ") " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "" ) .appendTo( ul ); }; --