From b56c7173b3df954a351c51df27ed3870c235588b Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Mon, 26 Sep 2011 10:04:35 -0400 Subject: [PATCH] TPac: Respect OU opac_visible flags Unless we appear to be in staff mode. Then continue to ignore them. Signed-off-by: Thomas Berezansky Signed-off-by: Dan Scott --- .../src/templates/opac/parts/org_selector.tt2 | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/org_selector.tt2 b/Open-ILS/src/templates/opac/parts/org_selector.tt2 index 1485679510..96bdcbf9ca 100644 --- a/Open-ILS/src/templates/opac/parts/org_selector.tt2 +++ b/Open-ILS/src/templates/opac/parts/org_selector.tt2 @@ -7,16 +7,18 @@ ELSIF walker.id == value; selected = 'selected="selected"'; END; + IF ctx.is_staff || walker.opac_visible == 't'; %] - - [% FOR child IN walker.children; - PROCESS build_org_selector_options walker=child value=value; + + [% FOR child IN walker.children; + PROCESS build_org_selector_options walker=child value=value; + END; END; END; -- 2.43.2