From f63a837d14866e2f7d874fb8e04872ffe1c04975 Mon Sep 17 00:00:00 2001 From: sbujam Date: Mon, 21 Nov 2016 08:18:24 +0200 Subject: [PATCH] Patch to implement the desired enhancement https://bugs.koha-community.org/show_bug.cgi?id=17550 --- circ/ysearch.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/circ/ysearch.pl b/circ/ysearch.pl index 37eaed4..2cc0be0 100755 --- a/circ/ysearch.pl +++ b/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 // '', diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc index 1980318..101eacf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc +++ b/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 ); }; -- 1.9.1