From a47a7421df6883cb5ee017ba78f1e3a9906eaca9 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 11 Jun 2012 16:30:53 -0400 Subject: [PATCH] kcls / tpac 2.2 : repaired holds placement override (parts) Signed-off-by: Bill Erickson --- .../opac/parts/place_hold_result.tt2 | 40 +++++++++++++++------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/Open-ILS/src/templates_kcls/opac/parts/place_hold_result.tt2 b/Open-ILS/src/templates_kcls/opac/parts/place_hold_result.tt2 index 12b1bea8ca..cfc7dc8b30 100644 --- a/Open-ILS/src/templates_kcls/opac/parts/place_hold_result.tt2 +++ b/Open-ILS/src/templates_kcls/opac/parts/place_hold_result.tt2 @@ -35,15 +35,27 @@ [% IF override %] checked='checked' [% ELSE %] disabled='disabled' [% END %]/> -
[% attrs.title_extended | html %]
+ [% + 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; + %] + +
[% title | html %]
+ [% IF hdata.parts %] + + [% END %]
- [% IF hdata.hold_success; - any_success = 1 %] + [% IF hdata.hold_success; any_success = 1 %]
[% l("Hold was successfully placed"); %]
- [% ELSIF hdata.hold_failed; - any_failures = 1 %] + [% ELSIF hdata.hold_failed; any_failures = 1 %]
[% l("Hold was not successfully placed"); %]
[% IF hdata.hold_local_block %] @@ -57,14 +69,16 @@ 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 %] [% IF event_key == 'PERM_FAILURE' %]
[% l('Permission: "[_1]"', hdata.hold_failed_event.ilsperm) | html %]
-- 2.11.0