Bugzilla – Attachment 57672 Details for
Bug 17550
Display initials in patron search autocomplete
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to implement the desired enhancement
Patch-to-implement-the-desired-enhancement.patch (text/plain), 1.98 KB, created by
Theodoros Theodoropoulos
on 2016-11-21 06:19:38 UTC
(
hide
)
Description:
Patch to implement the desired enhancement
Filename:
MIME Type:
Creator:
Theodoros Theodoropoulos
Created:
2016-11-21 06:19:38 UTC
Size:
1.98 KB
patch
obsolete
>From f63a837d14866e2f7d874fb8e04872ffe1c04975 Mon Sep 17 00:00:00 2001 >From: sbujam <sbujam@users.noreply.github.com> >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 $( "<li></li>" ) > .data( "ui-autocomplete-item", item ) >- .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" ) >+ .append( "<a><b>" + item.surname + ", " + item.firstname + "</b> <i>" + item.initials + "</i>" + " (" + item.cardnumber + ") <small>" + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" ) > .appendTo( ul ); > }; > >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17550
:
57179
|
57180
|
57181
|
57663
|
57672
|
57780
|
57781