[% BLOCK html_head %] [% END %] [% PROCESS "default/opac/common.tt2"; WRAPPER "default/opac/base.tt2"; INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "holds" %] [% IF ctx.holds.size == 0 %] No Items On Hold [% STOP; END %]
[% FOR hold IN ctx.holds %] [% attrs = {marc_xml => hold.marc_xml}; %] [% PROCESS get_marc_attrs args=attrs; %] [% END %]
Title Author Formats Pickup Location Status Active Activate on... Expiration Date Select
[% attrs.title %] [% attrs.author %] [% key = attrs.mattype; format_desc = ctx.find_citm(key).value; icon_filename = icon_by_mattype.$key; IF icon_filename; %] [% format_desc %] [% END %] [% ctx.find_aou(hold.hold.hold.pickup_lib).name %] [% IF hold.hold.status == 4; "Available"; ELSIF hold.hold.estimated_wait; "Estimated wait (days): "; hold.hold.estimated_wait; ELSIF hold.hold.status == 3; "In Transit"; ELSIF hold.hold.status < 3; "Waiting for copy"; END; %] [% IF hold.hold.hold.frozen == 't' %] No [% ELSE %] Yes [% END %] [% IF hold.hold.hold.frozen == 't' AND hold.hold.hold.thaw_date; date.format(ctx.parse_datetime(hold.hold.hold.thaw_date),'%Y-%m-%d'); ELSE; '-'; END %] [% hold.hold.hold.expire_time ? hold.hold.hold.expire_time : '-' %]
[% END %]