Lines 8-14
var sentmsg = 0;
Link Here
|
8 |
if (debug > 1) {alert("dateformat: " + dformat + "\ndebug is on (level " + debug + ")");} |
8 |
if (debug > 1) {alert("dateformat: " + dformat + "\ndebug is on (level " + debug + ")");} |
9 |
|
9 |
|
10 |
function Date_from_syspref(dstring) { |
10 |
function Date_from_syspref(dstring) { |
11 |
var dateX = dstring.split(/[-/]/); |
11 |
var dateX = dstring.split(/[-/.]/); |
12 |
if (debug > 1 && sentmsg < 1) {sentmsg++; alert("Date_from_syspref(" + dstring + ") splits to:\n" + dateX.join("\n"));} |
12 |
if (debug > 1 && sentmsg < 1) {sentmsg++; alert("Date_from_syspref(" + dstring + ") splits to:\n" + dateX.join("\n"));} |
13 |
if (dformat === "iso") { |
13 |
if (dformat === "iso") { |
14 |
return new Date(dateX[0], (dateX[1] - 1), dateX[2]); // YYYY-MM-DD to (YYYY,m(0-11),d) |
14 |
return new Date(dateX[0], (dateX[1] - 1), dateX[2]); // YYYY-MM-DD to (YYYY,m(0-11),d) |
Lines 16-21
function Date_from_syspref(dstring) {
Link Here
|
16 |
return new Date(dateX[2], (dateX[0] - 1), dateX[1]); // MM/DD/YYYY to (YYYY,m(0-11),d) |
16 |
return new Date(dateX[2], (dateX[0] - 1), dateX[1]); // MM/DD/YYYY to (YYYY,m(0-11),d) |
17 |
} else if (dformat === "metric") { |
17 |
} else if (dformat === "metric") { |
18 |
return new Date(dateX[2], (dateX[1] - 1), dateX[0]); // DD/MM/YYYY to (YYYY,m(0-11),d) |
18 |
return new Date(dateX[2], (dateX[1] - 1), dateX[0]); // DD/MM/YYYY to (YYYY,m(0-11),d) |
|
|
19 |
} else if (dformat === "dmydot") { |
20 |
return new Date(dateX[2], (dateX[1] - 1), dateX[0]); // DD.MM.YYYY to (YYYY,m(0-11),d) |
19 |
} else { |
21 |
} else { |
20 |
if (debug > 0) {alert("KOHA ERROR - Unrecognized date format: " +dformat);} |
22 |
if (debug > 0) {alert("KOHA ERROR - Unrecognized date format: " +dformat);} |
21 |
return 0; |
23 |
return 0; |
Lines 66-72
jQuery(function($){
Link Here
|
66 |
dayNamesShort: [_("Sun"), _("Mon"), _("Tue"), _("Wed"), _("Thu"), _("Fri"), _("Sat")], |
68 |
dayNamesShort: [_("Sun"), _("Mon"), _("Tue"), _("Wed"), _("Thu"), _("Fri"), _("Sat")], |
67 |
dayNamesMin: [_("Su"),_("Mo"),_("Tu"),_("We"),_("Th"),_("Fr"),_("Sa")], |
69 |
dayNamesMin: [_("Su"),_("Mo"),_("Tu"),_("We"),_("Th"),_("Fr"),_("Sa")], |
68 |
weekHeader: _("Wk"), |
70 |
weekHeader: _("Wk"), |
69 |
dateFormat: "[% IF ( dateformat == "us" ) %]mm/dd/yy[% ELSIF ( dateformat == "metric" ) %]dd/mm/yy[% ELSE %]yy-mm-dd[% END %]", |
71 |
dateFormat: "[% IF ( dateformat == "us" ) %]mm/dd/yy[% ELSIF ( dateformat == "metric" ) %]dd/mm/yy[% ELSIF ( dateformat == "dmydot" ) %]dd.mm.yy[% ELSE %]yy-mm-dd[% END %]", |
70 |
firstDay: [% Koha.Preference('CalendarFirstDayOfWeek') %], |
72 |
firstDay: [% Koha.Preference('CalendarFirstDayOfWeek') %], |
71 |
isRTL: [% IF ( bidi ) %]true[% ELSE %]false[% END %], |
73 |
isRTL: [% IF ( bidi ) %]true[% ELSE %]false[% END %], |
72 |
showMonthAfterYear: false, |
74 |
showMonthAfterYear: false, |