1 [% PROCESS "opac/parts/header.tt2";
2 PROCESS "opac/parts/misc_util.tt2";
3 PROCESS "opac/parts/org_selector.tt2";
4 WRAPPER "opac/parts/base.tt2" + "opac/parts/myopac/base.tt2";
5 myopac_page = "holds"; # in this case, just for tab coloring.
9 attrs = {marc_xml => hold.marc_xml};
10 PROCESS get_marc_attrs args=attrs;
11 hold.human_status = PROCESS get_hold_status hold=hold;
13 # Do this up front to avoid verbosity later
14 expire_time = ahr.expire_time ? date.format(ctx.parse_datetime(ahr.expire_time), DATE_FORMAT) : '';
15 thaw_date = ahr.thaw_date ? date.format(ctx.parse_datetime(ahr.thaw_date), DATE_FORMAT) : '';
17 <div class="pad-bottom-five">
18 <div class="header_middle">
19 <span id="acct_holds_header float-left">[% l('Editing Hold') %]</span>
20
21 <a href="[% ctx.opac_root %]/myopac/holds">[% l('List all holds') %]</a>
23 <div id="hold_editor">
25 <h1>[% attrs.title | html %]</h1>
26 <h2>[% attrs.author | html %]</h2>
27 [% IF attrs.format_icon %]<p>
28 <strong>[% l('Format:') %]</strong>
29 <img src="[% ctx.media_prefix %]/images/[% attrs.format_icon %]" alt="[% attrs.format %]" title="[% attrs.title | html %]" />
32 <strong>[% l('Status') %]</strong>: [% hold.human_status | html %]
35 <table id="hold_editor_table">
38 <input type="hidden" name="action" value="edit" />
39 <input type="hidden" name="hold_id"
40 value="[% ahr.id %]" />
41 [% l('Pickup library') %]
44 [% PROCESS build_org_selector
45 name='pickup_lib' value=ahr.pickup_lib %]
50 [% l('Cancel unless filled by') %]
53 <input type="text" name="expire_time"
54 value="[% expire_time | html %]" />
57 <em>[% l('Enter date in MM/DD/YYYY format') %]</em>
58 <!-- XXX TODO pick out a minimal, simple, reliable
59 calendar widget that's not part of some giant,
60 bloated framework and doesn't do anything at onload.
69 <select name="frozen">
70 <option value="f"[% ahr.frozen == 't' ? '' :' selected="selected"' %]>
71 [% l('Yes, this hold is active now') %]
73 <option value="t"[% ahr.frozen == 't' ? ' selected="selected"' : '' %]>
74 [% l('No, this hold is suspended') %]
81 [% l('If suspended, activate on') %]
84 <input type="text" name="thaw_date"
85 value="[% thaw_date | html %]" />
88 <em>[% l('Enter date in MM/DD/YYYY format') %]</em>
92 <td colspan="2" class="hold-editor-controls">
94 src="[% ctx.media_prefix %]/images/btnSubmit.png"
95 alt="[% l('Submit') %]"
96 title="[% l('Submit') %]" />
97 <a href="[% ctx.opac_root %]/myopac/holds"><img
98 src="[% ctx.media_prefix %]/images/btnCancel.png"
99 alt="[% l('Cancel') %]"
100 title="[% l('Cancel') %]" /></a>