1 [% PROCESS "opac/parts/header.tt2";
2 PROCESS "opac/parts/misc_util.tt2";
3 PROCESS "opac/parts/hold_status.tt2";
4 PROCESS "opac/parts/org_selector.tt2";
5 WRAPPER "opac/parts/myopac/base.tt2";
6 myopac_page = "holds"; # in this case, just for tab coloring.
10 attrs = {marc_xml => hold.marc_xml};
11 PROCESS get_marc_attrs args=attrs;
12 hold.human_status = PROCESS get_hold_status hold=hold;
14 # Do this up front to avoid verbosity later
15 expire_time = ahr.expire_time ? date.format(ctx.parse_datetime(ahr.expire_time), DATE_FORMAT) : '';
16 thaw_date = ahr.thaw_date ? date.format(ctx.parse_datetime(ahr.thaw_date), DATE_FORMAT) : '';
18 <div class="pad-bottom-five">
19 <div class="header_middle">
20 <span id="acct_holds_header float-left">[% l('Editing Hold') %]</span>
21
22 <a href="[% ctx.opac_root %]/myopac/holds">[% l('List all holds') %]</a>
24 <div id="hold_editor">
27 IF ahr.hold_type == 'P';
28 title = l('[_1] ([_2])', title, hold.hold.part.label);
31 <h1>[% title | html %]</h1>
32 <h2>[% attrs.author | html %]</h2>
33 [% IF attrs.format_icon %]<p>
34 <strong>[% l('Format:') %]</strong>
35 <img src="[% attrs.format_icon %]" alt="[% attrs.format_label | html %]" title="[% attrs.format_label | html %]" />
38 <strong>[% l('Status') %]</strong>: [% hold.human_status %]
41 <table id="hold_editor_table">
44 <input type="hidden" name="action" value="edit" />
45 <input type="hidden" name="hold_id"
46 value="[% ahr.id %]" />
47 [% l('Pickup library') %]
50 [% INCLUDE build_org_selector
51 name='pickup_lib' value=ahr.pickup_lib
52 can_have_vols_only=1 hold_pickup_lib=1 %]
55 [% IF hold.hold.status < 3 OR hold.hold.status == 7 %]
56 [%# The following actions cannot be performed on holds that
57 have already been captured... %]
60 [% l('Cancel unless filled by') %]
63 <input type="text" name="expire_time"
64 value="[% expire_time | html %]" />
67 <em>[% l('Enter date in MM/DD/YYYY format') %]</em>
68 <!-- XXX TODO pick out a minimal, simple, reliable
69 calendar widget that's not part of some giant,
70 bloated framework and doesn't do anything at onload.
79 <select name="frozen">
80 <option value="f"[% ahr.frozen == 't' ? '' :' selected="selected"' %]>
81 [% l('Yes, this hold is active now') %]
83 <option value="t"[% ahr.frozen == 't' ? ' selected="selected"' : '' %]>
84 [% l('No, this hold is suspended') %]
91 [% l('If suspended, activate on') %]
94 <input type="text" name="thaw_date"
95 value="[% thaw_date | html %]" />
98 <em>[% l('Enter date in MM/DD/YYYY format') %]</em>
103 <td colspan="2" class="hold-editor-controls">
104 <a href="[% ctx.opac_root %]/myopac/holds"><button
105 class="opac-button">[% l('Go Back') %]</button></a>
106 <input type="submit" value="[% l('Submit') %]" class="opac-button" />