Bugzilla – Attachment 106135 Details for
Bug 15400
Display patron age in useful places in the staff interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15400: (follow-up) Adding age to check out search dropdown
Bug-15400-follow-up-Adding-age-to-check-out-search.patch (text/plain), 2.53 KB, created by
Katrin Fischer
on 2020-06-21 16:42:44 UTC
(
hide
)
Description:
Bug 15400: (follow-up) Adding age to check out search dropdown
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-06-21 16:42:44 UTC
Size:
2.53 KB
patch
obsolete
>From 40e1f13ce88dd7a56c7e3abd4c09de490a2ac0c6 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Thu, 21 Feb 2019 20:44:20 +0000 >Subject: [PATCH] Bug 15400: (follow-up) Adding age to check out search > dropdown >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Confirm age shows in the suggestions dropdown when using the checkout >search in header (if user set DOB). >Confirm 'Age unknown' shows if no DOB set. > >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: Michal Denar <black23@gmail.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > circ/ysearch.pl | 1 + > koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > >diff --git a/circ/ysearch.pl b/circ/ysearch.pl >index 5db55ff4e1..ee16d10b7e 100755 >--- a/circ/ysearch.pl >+++ b/circ/ysearch.pl >@@ -85,6 +85,7 @@ while ( my $b = $borrowers_rs->next ) { > firstname => $b->firstname // '', > cardnumber => $b->cardnumber // '', > dateofbirth => format_sqldatetime($b->dateofbirth, undef, undef, 1) // '', >+ age => $b->get_age // 'Age unknown', > address => $b->address // '', > city => $b->city // '', > zipcode => $b->zipcode // '', >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc >index bd833a4e76..6676ea4cb7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc >@@ -109,7 +109,7 @@ > } > return $( "<li></li>" ) > .data( "ui-autocomplete-item", item ) >- .append( "<a href=\"" + item.link + "\">" + item.surname + ", " + item.firstname + cardnumber + " <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" ) >+ .append( "<a href=\"" + item.link + "\">" + item.surname + ", " + item.firstname + cardnumber + " <small>" + item.dateofbirth + " (" + item.age + ") " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" ) > .appendTo( ul ); > }; > } >-- >2.11.0
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 15400
:
45882
|
46935
|
81892
|
82714
|
85432
|
85479
|
85494
|
85495
|
85496
|
85497
|
86457
|
86458
|
86459
|
86460
|
88274
|
88275
|
88276
|
88277
|
88278
|
88845
|
88846
|
88977
|
88978
|
88979
|
88980
|
88981
|
100047
|
100048
|
100049
|
100050
|
100051
|
100065
|
100066
|
100067
|
100068
|
100069
|
100118
|
103373
|
106133
|
106134
| 106135 |
106136
|
106137
|
106138
|
106139
|
106140
|
106307