Hello all,
For a few days I've been
trying to make a few cosmetical changes to the datepicker widget in Orbeon
3.7.1.
While doing so I've noticed
a few things (probably bugs):
- no matter what datepicker
is configured in the properties-xforms.xml configuration file, it's always YUI
that's being used
- upon enabling
oxf.xforms.datepicker.navigator, the two-monts feature is enabled
automatically, even when set to false
Amongst others, I am trying
to change the names of the days. I've found these are stored in calendar.js
(and calendar-min.js) in the orbeon-resources-public.jar file. No matter what I
do (modify the source code and repackage the jar file or override the default
js
files (as mentioned in
chapter 4.1.2 on https://mdtoolkit-dev.stanford.edu/ops/doc/reference-xforms-guide),
none of my changes are picked up. Making changes to xforms.js yields the same
result.
So I guess my question
basically is.. how to make these changes? Suppose I want the change the names
of days and months?
Here's an example of the
code I'd like to modify:
Calendar._DEFAULT_CONFIG = {
// Default values for
pagedate and selected are not class
level constants - they are
set during instance creation
....snip....
MONTHS_SHORT :
{key:"months_short", value:["Jan", "Feb", "Mar",
"Apr", "May", "Jun", "Jul",
"Aug", "Sep", "Oct", "Nov", "Dec"]},
MONTHS_LONG:
{key:"months_long", value:["January", "February",
"March", "April", "May", "June",
"July", "August", "September", "October",
"November", "December"]},
....snip....
Any help is greatly
appreciated.
Best, Robin