From: gmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Mon, 13 Sep 2010 21:07:35 +0000 (+0000)
Subject: fix retrieval of cat.default_classification_scheme
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d3fecc07335479abc705fb6765ec4bd8482b48db;p=evergreen%2Fmasslnc.git

fix retrieval of cat.default_classification_scheme

Fixes bug where the cat.default_classification_scheme OU
setting was effectively ignored in bib call # display
in bib overlay and list of default call numbers during volume
creation.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>


git-svn-id: svn://svn.open-ils.org/ILS/trunk@17640 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js b/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js
index 7a547325ed..d55ea1e08d 100644
--- a/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js
+++ b/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js
@@ -87,9 +87,9 @@ function bib_brief_overlay(params) {
         var data = new OpenILS.data();
         var label_class = data.hash.aous['cat.default_classification_scheme'];
         if (!label_class) {
-            label_class = { "value": 1 };
+            label_class = 1;
         }
-        var cn_blob_array = net.simple_request('BLOB_MARC_CALLNUMBERS_RETRIEVE',[params.mvr_id, label_class.value]);
+        var cn_blob_array = net.simple_request('BLOB_MARC_CALLNUMBERS_RETRIEVE',[params.mvr_id, label_class]);
         if (! cn_blob_array) { cn_blob_array = []; }
         var tooltip_text = '';
         for (var i = 0; i < cn_blob_array.length; i++) {
diff --git a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js
index d09febefdf..2575025adc 100644
--- a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js
+++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js
@@ -51,7 +51,7 @@ function my_init() {
 
         // Assign a default value if none was returned 
         if (!label_class) {
-            label_class = { "value": 1 };
+            label_class = 1;
         }
 
         /***********************************************************************************************************/
@@ -98,7 +98,7 @@ function my_init() {
         /* For the call number drop down */
 
         if (!g.copy_shortcut) {
-            g.list_callnumbers(g.doc_id, label_class.value);
+            g.list_callnumbers(g.doc_id, label_class);
         }
 
         /***********************************************************************************************************/