Bugzilla – Attachment 18510 Details for
Bug 8845
Add ability search patrons by date of birth
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8845 - Add ability search patrons by date of birth - Add tooltip
Bug-8845---Add-ability-search-patrons-by-date-of-b.patch (text/plain), 3.58 KB, created by
Jonathan Druart
on 2013-05-30 10:16:34 UTC
(
hide
)
Description:
Bug 8845 - Add ability search patrons by date of birth - Add tooltip
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-05-30 10:16:34 UTC
Size:
3.58 KB
patch
obsolete
>From 5edd2f70c2800569c06148930ea6e3374b1d0112 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 2 Oct 2012 10:01:11 -0400 >Subject: [PATCH] Bug 8845 - Add ability search patrons by date of birth - Add > tooltip > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >Works with all date formats > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > .../prog/en/includes/doc-head-close.inc | 1 + > .../prog/en/includes/patron-search.inc | 27 +++++++++++++++++++- > 2 files changed, 27 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc >index 8db3b2a..14394e6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc >@@ -13,6 +13,7 @@ > <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.hotkeys.min.js"></script> > <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.cookie.min.js"></script> > <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.highlight-3.js"></script> >+<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.qtip.js"></script> > <script type="text/javascript" src="[% interface %]/lib/bootstrap/bootstrap.min.js"></script> > <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.validate.min.js"></script> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >index fc809ba..be49b95 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -1,3 +1,4 @@ >+[% USE Koha %] > <div class="gradient"> > <h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Patrons Resident Search Box --> > <div id="header_search"> >@@ -19,7 +20,31 @@ > <option value='phone,phonepro,B_phone,altcontactphone,mobile'>Phone number</option> > <option value='streettype,address,address2,city,state,zipcode,country'>Street Address</option> > <option value='dateofbirth'>Date of birth</option> >- </select></p> >+ </select> >+ <script type="text/javascript"> >+ [% SET dateformat = Koha.Preference('dateformat') %] >+ $("#searchfields").change(function() { >+ if ( $(this).val() == 'dateofbirth' ) { >+ [% IF dateformat == 'us' %] >+ [% SET format = 'MM/DD/YYYY' %] >+ [% ELSIF dateformat == 'iso' %] >+ [% SET format = 'YYYY-MM-DD' %] >+ [% ELSIF dateformat == 'metric' %] >+ [% SET format = 'DD/MM/YYYY' %] >+ [% END %] >+ >+ $('#searchmember').qtip({ >+ content: 'Dates of birth should be entered in the format "[% format %]"', >+ style: { >+ tip: 'topLeft' >+ } >+ }) >+ } else { >+ $('#searchmember').qtip('destroy'); >+ } >+ }); >+ </script> >+ </p> > <p><label for="searchtype">Search type:</label> > <select name="searchtype" id="searchtype"> > <option selected="selected" value=''>Starts with</option> >-- >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 8845
:
12601
|
12608
|
12639
|
14293
|
14367
|
14368
|
14392
|
14393
|
15556
|
15557
|
15558
|
18437
|
18438
|
18439
|
18508
|
18509
| 18510 |
18511