[open-ils-commits] r14990 - trunk/Open-ILS/web/opac/skin/default/js (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Nov 20 12:48:22 EST 2009
Author: erickson
Date: 2009-11-20 12:48:19 -0500 (Fri, 20 Nov 2009)
New Revision: 14990
Modified:
trunk/Open-ILS/web/opac/skin/default/js/myopac.js
Log:
take advantage of new virtual duedate field on noncat circs in opac display
Modified: trunk/Open-ILS/web/opac/skin/default/js/myopac.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/myopac.js 2009-11-20 17:12:11 UTC (rev 14989)
+++ trunk/Open-ILS/web/opac/skin/default/js/myopac.js 2009-11-20 17:48:19 UTC (rev 14990)
@@ -1389,13 +1389,13 @@
appendClear($n(row, 'circ_lib'), text(findOrgUnit(circ.circ_lib()).name()));
appendClear($n(row, 'item_type'), text(type.name()));
- var duration = interval_to_seconds(type.circ_duration());
- duration = parseInt(duration + '000');
-
- var dtf = circ.circ_time();
- var start = dojo.date.stamp.fromISOString(circ.circ_time());
- var due = new Date( start.getTime() + duration );
- appendClear($n(row, 'circ_time'), text(due.iso8601Format('YMDHM', null, true, true)));
+ appendClear(
+ $n(row, 'circ_time'),
+ text(dojo.date.locale.format(
+ dojo.date.stamp.fromISOString(circ.duedate()),
+ {format : 'short'}
+ ))
+ );
}
More information about the open-ils-commits
mailing list