From: Bill Erickson Date: Mon, 17 Sep 2012 13:55:07 +0000 (-0400) Subject: back-port tpac get_library macro X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7f28e7a3adaff6b482a069544e019cbe11005a15;p=working%2FEvergreen.git 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 --- 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; + %]