From 205421e7a55eb02b6f49dbedc6e5797cccc84a06 Mon Sep 17 00:00:00 2001 From: pines Date: Mon, 16 Apr 2007 13:05:43 +0000 Subject: [PATCH] tweak workstation registration to look at depth of REGISTER_WORKSTATION permission for building lib list git-svn-id: svn://svn.open-ils.org/ILS/trunk@7150 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../chrome/content/main/constants.js | 3 ++ .../chrome/content/util/fm_utils.js | 2 +- .../xul/staff_client/server/main/ws_info.xul | 44 +++++++++++++++---- 3 files changed, 39 insertions(+), 10 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/main/constants.js b/Open-ILS/xul/staff_client/chrome/content/main/constants.js index 30bac2a3ed..eef079c35b 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -80,6 +80,7 @@ const api = { 'FM_ANCIHU_CREATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.non_cat_in_house_use.create' }, 'FM_AOA_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.org_unit.address.retrieve', 'secure' : false }, 'FM_AOU_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.org_tree.retrieve', 'secure' : false }, + 'FM_AOU_DESCENDANTS_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.org_tree.descendants.retrieve', 'secure' : false }, 'FM_AOU_RETRIEVE_RELATED_VIA_SESSION' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.org_unit.full_path.retrieve' }, 'FM_AOU_IDS_RETRIEVE_VIA_RECORD_ID' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.actor.org_unit.retrieve_by_title', 'secure' : false }, 'FM_AOUT_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.org_types.retrieve', 'secure' : false }, @@ -160,6 +161,7 @@ const api = { 'MODS_SLIM_RECORD_RETRIEVE_VIA_COPY' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.mods_from_copy', 'secure' : false }, 'PERM_CHECK' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.perm.check' }, 'PERM_MULTI_ORG_CHECK' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.perm.check.multi_org' }, + 'PERM_RETRIEVE_HIGHEST_ORG' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.perm.highest_org' }, 'MARC_XML_RECORD_CREATE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.xml.create' }, 'MARC_XML_RECORD_IMPORT' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.xml.import' }, 'MARC_XML_RECORD_REPLACE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.marc.replace' }, @@ -176,6 +178,7 @@ const urls = { 'opac' : '/opac/en-US/skin/default/xml/advanced.xml', 'opac_rdetail' : '/opac/en-US/skin/default/xml/rdetail.xml', 'opac_rresult' : '/opac/en-US/skin/default/xml/rresult.xml', + 'org_tree' : '/opac/common/js/OrgTree.js', 'browser' : '/opac/en-US/skin/default/xml/advanced.xml', 'fieldmapper' : '/opac/common/js/fmall.js', 'isodate_lib' : '/opac/common/js/DP_DateExtensions.js', diff --git a/Open-ILS/xul/staff_client/chrome/content/util/fm_utils.js b/Open-ILS/xul/staff_client/chrome/content/util/fm_utils.js index 1d7a850f11..1cc2a30d69 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/fm_utils.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/fm_utils.js @@ -9,7 +9,7 @@ util.fm_utils.EXPORT_TAGS = { ':all' : util.fm_utils.EXPORT_OK }; util.fm_utils.flatten_ou_branch = function(branch) { var my_array = new Array(); my_array.push( branch ); - for (var i in branch.children() ) { + if (typeof branch.children == 'function') for (var i in branch.children() ) { var child = branch.children()[i]; if (child != null) { var temp_array = util.fm_utils.flatten_ou_branch(child); diff --git a/Open-ILS/xul/staff_client/server/main/ws_info.xul b/Open-ILS/xul/staff_client/server/main/ws_info.xul index 416cf01372..c9a2e672f3 100644 --- a/Open-ILS/xul/staff_client/server/main/ws_info.xul +++ b/Open-ILS/xul/staff_client/server/main/ws_info.xul @@ -30,12 +30,18 @@