Staff may have valid reasons to use a non-opac-visible org unit.
So before bailing on a hidden org unit, check if we are in the staff client.
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
function holdsBuildOrgSelector(node) {
if(!node) node = globalOrgTree;
- if(!isTrue(node.opac_visible())) return;
+ if(!isTrue(node.opac_visible()) && !isXUL()) return;
var render_this_org = true;
var orgHiding = checkOrgHiding(); // value here is cached so not too painful with the recursion