[% IF hdata.hold_success %]
[% l("Hold was successfully placed"); %]
[% IF ctx.is_staff %]
[% END %]
[% ELSIF hdata.hold_failed; any_failures = 1 %]
[% l("Hold was not successfully placed"); %]
[% IF hdata.hold_local_block %]
[% l("There is already a copy available at your local library.") %]
[% ELSIF hdata.hold_failed_event || hdata.hold_local_alert %]
[% l('Problem:') %]
[%
fail_part_key = hdata.hold_failed_event.payload.fail_part;
event_key = hdata.hold_failed_event.textcode;
# display:
(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
%]
[% IF event_key == 'PERM_FAILURE' %]
[% l('Permission: "[_1]"', hdata.hold_failed_event.ilsperm) | html %]
[% END %]
[% IF hdata.hold_copy_available %]
[% l('Find a copy in the shelving location, "[_1]."', locname) | html %]
[% END %]
[% END;
END %]