[Koha-patches] [PATCH] Bug 9970 - Add datepicker default configuration to OPAC patron entry form

Owen Leonard oleonard at myacpl.org
Tue Apr 2 15:16:43 CEST 2013


The datepicker on the OPAC patron entry/update form
(opac-memberentry.pl) doesn't show a calendar icon. This is because
although there is in-page JS to trigger the widget, the page doesn't
include the file which sets some widget defaults, including the path to
the calendar icon and the translatable strings for calendar labels.

This patch simply adds calendar.inc to the template.

To test, load the patron entry/update form (click "personal details" for
an existing patron or a start new patron registration). The date of
birth entry field should show a calendar icon.
---
 .../opac-tmpl/prog/en/modules/opac-memberentry.tt  |    1 +
 1 file changed, 1 insertion(+)

diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-memberentry.tt
index d41917c..95149b3 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-memberentry.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-memberentry.tt
@@ -4,6 +4,7 @@
     [% INCLUDE 'doc-head-open.inc' %]
         [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › [% IF action == 'edit' %]Update your personal details[% ELSE %]Register a new account[% END %]
     [% INCLUDE 'doc-head-close.inc' %]
+    [% INCLUDE 'calendar.inc' %]
 
     <script type="text/javascript">
         //<![CDATA[
-- 
1.7.9.5


More information about the Koha-patches mailing list