[% IF override %] checked='checked' [% ELSE %] disabled='disabled' [% END %]/>
</td>
<td>
- <div class='hold-items-list-title'>[% attrs.title_extended | html %]</div>
+ [%
+ title = attrs.title_extended;
+ IF hdata.selected_part AND hdata.parts AND hdata.parts.size > 0;
+ FOREACH part IN hdata.parts;
+ IF hdata.selected_part == part.id;
+ title = l('[_1] ([_2])', title, part.label);
+ END;
+ END;
+ END;
+ %]
+
+ <div class='hold-items-list-title'>[% title | html %]</div>
+ [% IF hdata.parts %]
+ <input type='hidden' name='part' value='[% hdata.selected_part || '' %]'/>
+ [% END %]
<div>
- [% IF hdata.hold_success;
- any_success = 1 %]
+ [% IF hdata.hold_success; any_success = 1 %]
<div class='success'>[% l("Hold was successfully placed"); %]</div>
- [% ELSIF hdata.hold_failed;
- any_failures = 1 %]
+ [% ELSIF hdata.hold_failed; any_failures = 1 %]
<div><big><strong>[% l("Hold was not successfully placed"); %]</strong></big></div>
[% IF hdata.hold_local_block %]
event_key = hdata.hold_failed_event.textcode;
# display:
- FAIL_PART_MSG_MAP.$fail_part_key ||
- EVENT_MSG_MAP.$event_key ||
- l(hdata.hold_failed_event.desc) ||
- hdata.hold_failed_event.payload.fail_part ||
- hdata.hold_failed_event.textcode ||
- (hdata.hold_local_alert ?
- l("There is already a copy available at your local library.") :
- l("Unknown problem")) | html
+ (hdata.age_protect ?
+ l("All available copies are temporarily unavailable at your pickup library. Placing this hold could result in longer wait times.") :
+ FAIL_PART_MSG_MAP.$fail_part_key ||
+ EVENT_MSG_MAP.$event_key ||
+ l(hdata.hold_failed_event.desc) ||
+ hdata.hold_failed_event.payload.fail_part ||
+ hdata.hold_failed_event.textcode ||
+ (hdata.hold_local_alert ?
+ l("There is already a copy available at your local library.") :
+ l("Unknown problem"))) | html
%]</em>
[% IF event_key == 'PERM_FAILURE' %]
<div>[% l('Permission: "[_1]"', hdata.hold_failed_event.ilsperm) | html %]</div>