1 [% PROCESS "default/opac/parts/header.tt2";
2 PROCESS "default/opac/parts/misc_util.tt2";
3 PROCESS "default/opac/parts/org_selector.tt2";
4 WRAPPER "default/opac/parts/base.tt2" +
5 "default/opac/parts/myopac/base.tt2";
6 myopac_page = "holds"; # in this case, just for tab coloring.
10 IF h.hold.hold.id == CGI.param('id');
13 attrs = {marc_xml => hold.marc_xml};
14 PROCESS get_marc_attrs args=attrs;
15 hold.human_status = PROCESS get_hold_status hold=hold;
17 # Do this up front to avoid verbosity later
18 expire_time = ahr.expire_time ? date.format(ctx.parse_datetime(ahr.expire_time), DATE_FORMAT) : '';
19 thaw_date = ahr.thaw_date ? date.format(ctx.parse_datetime(ahr.thaw_date), DATE_FORMAT) : '';
24 <div class="pad-bottom-five">
25 <div class="header_middle">
26 <span id="acct_holds_header float-left">[% l('Editing Hold') %]</span>
27
28 <a href="[% ctx.opac_root %]/myopac/holds">[% l('List all holds') %]</a>
30 <div id="hold_editor">
32 <h1>[% attrs.title %]</h1>
33 <h2>[% attrs.author %]</h2>
34 [% IF attrs.format_icon %]<p>
35 <strong>[% l('Format:') %]</strong>
36 <img src="[% ctx.media_prefix %]/images/[% attrs.format_icon %]" alt="[% attrs.format %]" title="[% attrs.title %]" />
39 <strong>[% l('Status') %]</strong>: [% hold.human_status %]
42 <table id="hold_editor_table">
45 <input type="hidden" name="action" value="edit" />
46 <input type="hidden" name="hold_id"
47 value="[% ahr.id %]" />
48 [% l('Pickup library') %]
51 [% PROCESS build_org_selector
52 name='pickup_lib' value=ahr.pickup_lib %]
57 [% l('Cancel unless filled by') %]
60 <input type="text" name="expire_time"
61 value="[% expire_time | html %]" />
64 <em>[% l('Enter date in MM/DD/YYYY format') %]</em>
65 <!-- XXX TODO pick out a minimal, simple, reliable
66 calendar widget that's not part of some giant,
67 bloated framework and doesn't do anything at onload.
76 <select name="frozen">
77 <option value="f"[% ahr.frozen == 't' ? '' :' selected="selected"' %]>
78 [% l('Yes, this hold is active now') %]
80 <option value="t"[% ahr.frozen == 't' ? ' selected="selected"' : '' %]>
81 [% l('No, this hold is suspended') %]
88 [% l('If suspended, activate on') %]
91 <input type="text" name="thaw_date"
92 value="[% thaw_date | html %]" />
95 <em>[% l('Enter date in MM/DD/YYYY format') %]</em>
99 <td colspan="2" class="hold-editor-controls">
101 src="[% ctx.media_prefix %]/images/btnSubmit.png"
102 alt="[% l('Submit') %]"
103 title="[% l('Submit') %]" />
104 <a href="[% ctx.opac_root %]/myopac/holds"><img
105 src="[% ctx.media_prefix %]/images/btnCancel.png"
106 alt="[% l('Cancel') %]"
107 title="[% l('Cancel') %]" /></a>