From fc00263d5b96c04af4b9e5bc5e167019427854b5 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 17 Sep 2012 09:55:07 -0400 Subject: [PATCH] back-port tpac get_library macro Code which uses this macro was back-ported without defining the macro. Back-ported here for great justice. Signed-off-by: Bill Erickson Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/src/templates/opac/parts/misc_util.tt2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Open-ILS/src/templates/opac/parts/misc_util.tt2 b/Open-ILS/src/templates/opac/parts/misc_util.tt2 index d7e93d0901..2150d5bab2 100644 --- a/Open-ILS/src/templates/opac/parts/misc_util.tt2 +++ b/Open-ILS/src/templates/opac/parts/misc_util.tt2 @@ -267,4 +267,20 @@ END; END; + + # Get the library or location group + # get_library() + BLOCK get_library; + IF !loc_name; + loc_name = 'loc'; + IF show_loc_groups; loc_name = 'locg'; END; + END; + IF !loc_value; + loc_value = CGI.param('loc') || ctx.search_ou; + IF show_loc_groups; + loc_value = CGI.param('locg') || ctx.search_ou; + END; + END; + END; + %] -- 2.11.0