From d3fecc07335479abc705fb6765ec4bd8482b48db Mon Sep 17 00:00:00 2001 From: gmc Date: Mon, 13 Sep 2010 21:07:35 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.open-ils.org/ILS/trunk@17640 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js | 4 ++-- Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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); } /***********************************************************************************************************/ -- 2.43.2