]> git.koha-community.org Git - koha.git/commit
Bug 9166 [Revised] OPAC needs configuration file for datepicker
authorOwen Leonard <oleonard@myacpl.org>
Thu, 29 Nov 2012 13:58:24 +0000 (08:58 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Sat, 20 Apr 2013 11:07:41 +0000 (23:07 +1200)
commitaac9199afbf4b8d8f4130fd61124f3f491bb8996
tree30c55cea71534145275b94444176e65ac5c03526
parentb4fc298a0979b4d3874910c2f4de0d2634bf1188
Bug 9166 [Revised] 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: Chris Cormack <chrisc@catalyst.net.nz>
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