]> git.koha-community.org Git - koha.git/commit
Bug 9166: OPAC needs configuration file for datepicker
authorOwen Leonard <oleonard@myacpl.org>
Thu, 29 Nov 2012 13:58:24 +0000 (08:58 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 20 Dec 2012 00:38:27 +0000 (19:38 -0500)
commit0c08501e9da61c0444c60d0116ccc696f03d8f66
tree3ef9c9ce140cba844870e72495195d379da79361
parent7ecf358ee3de0617ef53fc54f30d3f4a34e08b3c
Bug 9166: OPAC needs configuration file for datepicker

This patch adds a configuration include file for the datepicker.
This file makes redundant the datepicker initialization in
js/script.js, so that section is removed.

This change should enable two things: the CalendarFirstDayOfWeek
preference should now work in the OPAC, and the calendar should
now use the current selected language.

To test, try the calendar widget when placing a hold in the OPAC.
The CalendarFirstDayOfWeek preference should be respected for
Monday and Sunday. Switch languages. The calendar interface labels
should reflect the current chosen language.

Revision adds the configuration include to opac-user as well
(required by the suspend holds feature).

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
the datepicker plugin works for opac-reserve and opac-user

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/opac-tmpl/prog/en/includes/calendar.inc [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/en/js/script.js
koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt