[% IF hdata.hold_success %]
[% l("Hold was successfully placed"); %]
[% ELSIF hdata.hold_failed %]
[% 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:
l(FAIL_PART_MSG_MAP.$fail_part_key) ||
l(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 %]