[% PROCESS "opac/parts/header.tt2"; PROCESS "opac/parts/misc_util.tt2"; PROCESS "opac/parts/org_selector.tt2"; WRAPPER "opac/parts/base.tt2" + "opac/parts/myopac/base.tt2"; myopac_page = "holds"; # in this case, just for tab coloring. hold = ctx.holds.0; 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) : ''; %]
[% l('Editing Hold') %]         [% l('List all holds') %]
[% IF hold %]

[% attrs.title | html %]

[% attrs.author | html %]

[% IF attrs.format_icon %]

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

[% END %]

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

[% 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 %]