[% PROCESS "default/opac/parts/header.tt2"; PROCESS "default/opac/parts/misc_util.tt2"; PROCESS "default/opac/parts/org_selector.tt2"; WRAPPER "default/opac/parts/base.tt2" + "default/opac/parts/myopac/base.tt2"; myopac_page = "holds"; # in this case, just for tab coloring. hold = 0; FOR h IN ctx.holds; IF h.hold.hold.id == CGI.param('id'); hold = h; ahr = hold.hold.hold; attrs = {marc_xml => hold.marc_xml}; PROCESS get_marc_attrs args=attrs; hold.human_status = PROCESS get_hold_status hold=hold; # Do this up front to avoid verbosity later expire_time = ahr.expire_time ? date.format(ctx.parse_datetime(ahr.expire_time), DATE_FORMAT) : ''; thaw_date = ahr.thaw_date ? date.format(ctx.parse_datetime(ahr.thaw_date), DATE_FORMAT) : ''; LAST; END; END; %]
[% l('Editing Hold') %]         [% l('List all holds') %]
[% IF hold %]

[% attrs.title %]

[% attrs.author %]

[% IF attrs.format_icon %]

[% l('Format:') %] [% attrs.format %]

[% END %]

[% l('Status') %]: [% hold.human_status %]

[% l('Pickup library') %] [% PROCESS build_org_selector name='pickup_lib' value=ahr.pickup_lib %]
[% l('Cancel unless filled by') %] [% l('Enter date in MM/DD/YYYY format') %]
[% l('Active?') %]
[% l('If suspended, activate on') %] [% l('Enter date in MM/DD/YYYY format') %]
[% l('Cancel') %]
[% ELSE; l('Hold not found'); END %]
[% END %]