Check if in staff client when placing holds
authorThomas Berezansky <tsbere@mvlc.org>
Thu, 16 Jun 2011 11:15:27 +0000 (07:15 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 16 Jun 2011 15:46:18 +0000 (11:46 -0400)
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>
Open-ILS/web/opac/skin/default/js/holds.js

index aaf7a2e..9e95da9 100644 (file)
@@ -878,7 +878,7 @@ function holdsCheckPossibility(pickuplib, hold, recurse) {
 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