From 1002a52083ffc7401f59676104d11876484ce61d Mon Sep 17 00:00:00 2001 From: berick Date: Thu, 17 Mar 2011 16:03:48 -0400 Subject: [PATCH] if there, show shelf expire date for available holds; minor var cleanup --- .../web/templates/default/opac/myopac/holds.tt2 | 23 ++++++++++++------- 1 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Open-ILS/web/templates/default/opac/myopac/holds.tt2 b/Open-ILS/web/templates/default/opac/myopac/holds.tt2 index d0dd325..cd4ce31 100644 --- a/Open-ILS/web/templates/default/opac/myopac/holds.tt2 +++ b/Open-ILS/web/templates/default/opac/myopac/holds.tt2 @@ -133,11 +133,12 @@ [% FOR hold IN ctx.holds; attrs = {marc_xml => hold.marc_xml}; - PROCESS get_marc_attrs args=attrs %] + PROCESS get_marc_attrs args=attrs; + ahr = hold.hold.hold %] - +
@@ -160,24 +161,24 @@
- [% ctx.find_aou(hold.hold.hold.pickup_lib).name %] + [% ctx.find_aou(ahr.pickup_lib).name %] - [% IF hold.hold.hold.frozen == 't' AND - hold.hold.hold.thaw_date; - date.format(ctx.parse_datetime(hold.hold.hold.thaw_date), DATE_FORMAT); + [% IF ahr.frozen == 't' AND + ahr.thaw_date; + date.format(ctx.parse_datetime(ahr.thaw_date), DATE_FORMAT); END %] - [% IF hold.hold.hold.expire_time; - date.format(ctx.parse_datetime(hold.hold.hold.expire_time), DATE_FORMAT); + [% IF ahr.expire_time; + date.format(ctx.parse_datetime(ahr.expire_time), DATE_FORMAT); END %] @@ -186,7 +187,7 @@ --> - [% l(hold.hold.hold.frozen == 'f' ? 'Active' : 'Suspended') %] + [% l(ahr.frozen == 'f' ? 'Active' : 'Suspended') %]
Expires [_1]', + date.format(ctx.parse_datetime(ahr.shelf_expire_time), DATE_FORMAT)); + END; ELSIF hold.hold.estimated_wait AND hold.hold.estimated_wait > 0; # estimated wait is delivered as seconds. SET hwait = POSIX.ceil(hold.hold.estimated_wait / 86400); -- 1.7.2.5