[open-ils-commits] r1058 - conifer/branches/rel_1_6_1/web/opac/skin/uwin/js (artunit)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Nov 7 16:37:14 EST 2010
Author: artunit
Date: 2010-11-07 16:37:08 -0500 (Sun, 07 Nov 2010)
New Revision: 1058
Modified:
conifer/branches/rel_1_6_1/web/opac/skin/uwin/js/copy_details.js
conifer/branches/rel_1_6_1/web/opac/skin/uwin/js/myopac.js
Log:
add dbs due date/time support
Modified: conifer/branches/rel_1_6_1/web/opac/skin/uwin/js/copy_details.js
===================================================================
--- conifer/branches/rel_1_6_1/web/opac/skin/uwin/js/copy_details.js 2010-11-07 17:28:04 UTC (rev 1057)
+++ conifer/branches/rel_1_6_1/web/opac/skin/uwin/js/copy_details.js 2010-11-07 21:37:08 UTC (rev 1058)
@@ -3,11 +3,11 @@
var cpdNodes = {};
/* showDueDate will show the due date in the OPAC */
-var showDueDate = false;
+var showDueDate = true;
/* showDueTime will show the due time (hours and minutes) in the OPAC;
if showDueDate is false, then showDueTime has no effect
*/
-var showDueTime = false;
+var showDueTime = true;
function cpdBuild( contextTbody, contextRow, record, callnumber, orgid, depth, copy_location ) {
var i = cpdCheckExisting(contextRow);
Modified: conifer/branches/rel_1_6_1/web/opac/skin/uwin/js/myopac.js
===================================================================
--- conifer/branches/rel_1_6_1/web/opac/skin/uwin/js/myopac.js 2010-11-07 17:28:04 UTC (rev 1057)
+++ conifer/branches/rel_1_6_1/web/opac/skin/uwin/js/myopac.js 2010-11-07 21:37:08 UTC (rev 1058)
@@ -592,7 +592,8 @@
time = time.replace(/(T\d\d:\d\d:\d\d)([+-]\d\d)(\d)/, "$1$2:$3");
var d = dojo.date.stamp.fromISOString(time);
if(!d) return ""; /* date parse failed */
- return d.iso8601Format('YMD');
+ //return d.iso8601Format('YMD');
+ return dojo.date.locale.format(d, {"formatLength": "medium"});
}
function _trimSeconds(time) {
More information about the open-ils-commits
mailing list