1 [% PROCESS "opac/parts/misc_util.tt2";
2 PROCESS "opac/parts/hold_error_messages.tt2";
6 <!-- TODO: CSS for big/strong-->
8 <div id='holds_box' class='canvas' style='margin-top: 6px;'>
9 <h1>[% l('Place Hold') %]</h1>
12 <input type="hidden" type="name" name="override" value="1" />
13 [% FOR k IN ctx.orig_params.keys %]
14 <input type="hidden" name="[% k %]" value="[% ctx.orig_params.$k | html %]" />
17 <table id='hold-items-list'>
19 [% FOR hdata IN ctx.hold_data;
20 attrs = {marc_xml => hdata.marc_xml};
21 PROCESS get_marc_attrs args=attrs %]
26 IF hdata.could_override || hdata.hold_local_alert;
27 override_possible = 1;
32 type="checkbox" name="hold_target" value="[% hdata.target.id | html %]"
33 [% IF override %] checked='checked' [% ELSE %] disabled='disabled' [% END %]/>
36 <div class='hold-items-list-title'>[% attrs.title_extended | html %]</div>
38 [% IF hdata.hold_success %]
40 <div>[% l("Hold was successfully placed"); %]</div>
42 [% ELSIF hdata.hold_failed %]
44 <div><big><strong>[% l("Hold was not successfully placed"); %]</strong></big></div>
45 [% IF hdata.hold_local_block %]
46 <div>[% l("There is already a copy available at your local library.") %]</div>
47 [% ELSIF hdata.hold_failed_event || hdata.hold_local_alert %]
49 <span class='hold-items-list-problem'>[% l('Problem:') %]</span>
50 <span title="[% hdata.hold_failed_event.textcode | html %]">
52 fail_part_key = hdata.hold_failed_event.payload.fail_part;
53 event_key = hdata.hold_failed_event.textcode;
56 l(FAIL_PART_MSG_MAP.$fail_part_key) ||
57 l(EVENT_MSG_MAP.$event_key) ||
58 l(hdata.hold_failed_event.desc) ||
59 hdata.hold_failed_event.payload.fail_part ||
60 hdata.hold_failed_event.textcode ||
61 (hdata.hold_local_alert ?
62 l("There is already a copy available at your local library.") :
63 l("Unknown problem")) | html
65 [% IF event_key == 'PERM_FAILURE' %]
66 <div>[% l('Permission: "[_1]"', hdata.hold_failed_event.ilsperm) | html %]</div>
69 [% IF hdata.hold_copy_available %]
70 <p>[% l('Find a copy in the shelving location, "[_1]."', locname) | html %]</p>
80 [% IF override_possible %]
83 <div class='big-strong'>
84 [% |l %]You have permission to override some of the failed holds.<br/> Click Submit to override and place your hold on the selected items.[% END %]
86 <span style='padding-right: 10px;'>
87 <input type="submit" name="submit" value="[% l('Submit') %]"
88 title="[% l('Submit') %]" alt="[% l('Submit') %]"
89 class="opac-button" />
93 <input type="reset" onclick="javascript:history.go(-1);"
94 id="holds_cancel" value="[% l('Cancel') %]" class="opac-button" />