//rnlink.setAttribute('href', 'javascript:myOPACRenewCirc("'+circ.id()+'");');
circsCache.push(circ);
- if( circ.renewal_remaining() < 1 ) {
+ if( circ.renewal_remaining() < 1 ) {
$n(row, 'selectme').disabled = true;
if(!__can_renew_one)
$('mo_renew_button').disabled = true;
var exp_date;
if(h.expire_time()) {
- exp_date = dojo.date.stamp.fromISOString(h.expire_time());
+ exp_date = dojo.date.stamp.fromISOString(h.expire_time().replace(/(T\d\d:\d\d:\d\d)([+-]\d\d)(\d)/, "$1$2:$3"));
$n(row, 'myopac_hold_expire_time').appendChild(
text(dojo.date.locale.format(exp_date, {selector:'date'})));
}
//function _trimTime(time) { if(!time) return ""; return time.replace(/\ .*/,""); }
function _trimTime(time) {
if(!time) return "";
+ 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');
function _trimSeconds(time) {
if(!time) return "";
- var d = dojo.date.stamp.fromISOString(time);
+ var d = dojo.date.stamp.fromISOString(time.replace(/(T\d\d:\d\d:\d\d)([+-]\d\d)(\d)/, "$1$2:$3"));
if(!d) return ""; /* date parse failed */
return d.iso8601Format('YMDHM',null,true,true);
}
$n(row,'myopac_circ_trans_start').
appendChild(text(_trimTime(trans.xact_start())));
-
- var due = _trimTime(circ.due_date());
+ var due = _trimTime(circ.due_date());
var checkin = _trimTime(circ.stop_fines_time());
$n(row,'myopac_circ_trans_due').appendChild(text(due))