From: pines Date: Thu, 5 Oct 2006 01:32:29 +0000 (+0000) Subject: handle shelving locations properly for new volumes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bece2b4c007b0ff0fea94cabbe4e3d7c5d9ad30f;p=Evergreen.git handle shelving locations properly for new volumes git-svn-id: svn://svn.open-ils.org/ILS/trunk@6390 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/cat/copy_editor.js b/Open-ILS/xul/staff_client/server/cat/copy_editor.js index e503e0250f..b09157dff5 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_editor.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.js @@ -427,6 +427,11 @@ g.get_acpl_list = function() { } } } + if (g.callnumbers) { + for (var i in g.callnumbers) { + if ( ( libs.indexOf( g.callnumbers[i].owning_lib ) > -1 ) || ( libs.indexOf( String( g.callnumbers[i].owning_lib ) ) > -1 ) ) { /* already in list */ } else { libs.push( g.callnumbers[i].owning_lib ); } + } + } JSAN.use('util.fm_utils'); var ancestor = util.fm_utils.find_common_aou_ancestor( libs ); if (typeof ancestor == 'object' && ancestor != null) ancestor = ancestor.id();