add dbs due date/time support
authorartunit <artunit@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Sun, 7 Nov 2010 21:37:08 +0000 (21:37 +0000)
committerartunit <artunit@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Sun, 7 Nov 2010 21:37:08 +0000 (21:37 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/branches/rel_1_6_1@1058 6d9bc8c9-1ec2-4278-b937-99fde70a366f

web/opac/skin/uwin/js/copy_details.js
web/opac/skin/uwin/js/myopac.js

index 9d3b407..b04c660 100644 (file)
@@ -3,11 +3,11 @@ var cpdCounter = 0;
 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);
index 0c3624a..4372d2d 100644 (file)
@@ -592,7 +592,8 @@ function _trimTime(time) {
     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) {