Bugzilla – Attachment 37809 Details for
Bug 13931
Date of birth in patron search result and in autocomplete
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13931 - Implemented patron's dateofbirth autocompletion into newest version of circ/ysearch.pl
Bug-13931---Implemented-patrons-dateofbirth-autoco.patch (text/plain), 2.13 KB, created by
Jiri Kozlovsky
on 2015-04-14 10:36:06 UTC
(
hide
)
Description:
Bug 13931 - Implemented patron's dateofbirth autocompletion into newest version of circ/ysearch.pl
Filename:
MIME Type:
Creator:
Jiri Kozlovsky
Created:
2015-04-14 10:36:06 UTC
Size:
2.13 KB
patch
obsolete
>From 49f6f393d2a1c66daebb1e13f45a45c6856d8dff Mon Sep 17 00:00:00 2001 >From: jirislav <mail@jkozlovsky.cz> >Date: Tue, 14 Apr 2015 12:33:37 +0200 >Subject: [PATCH] Bug 13931 - Implemented patron's dateofbirth autocompletion > into newest version of circ/ysearch.pl > >--- > circ/ysearch.pl | 2 ++ > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc | 2 +- > 2 files changed, 3 insertions(+), 1 deletion(-) > >diff --git a/circ/ysearch.pl b/circ/ysearch.pl >index ae4ae42..0175bb7 100755 >--- a/circ/ysearch.pl >+++ b/circ/ysearch.pl >@@ -29,6 +29,7 @@ use CGI qw ( -utf8 ); > use C4::Context; > use C4::Auth qw/check_cookie_auth/; > use Koha::Borrowers; >+use Koha::DateUtils qw/format_sqldatetime/; > > use JSON qw( to_json ); > >@@ -74,6 +75,7 @@ while ( my $b = $borrowers_rs->next ) { > surname => $b->surname // '', > firstname => $b->firstname // '', > cardnumber => $b->cardnumber // '', >+ dateofbirth => format_sqldatetime($b->dateofbirth, undef, undef, 1) // '', > address => $b->address // '', > city => $b->city // '', > zipcode => $b->zipcode // '', >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 87f1969..87555a5 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 >@@ -14,7 +14,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.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" ) >+ .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" ) > .appendTo( ul ); > }; > >-- >1.7.10.4
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 13931
:
37801
|
37807
|
37809
|
37811
|
38045
|
38126
|
44691
|
44692
|
44693
|
44817
|
44818
|
44821
|
45062
|
45065