[open-ils-commits] r17641 - branches/rel_2_0/Open-ILS/xul/staff_client/server/cat (gmc)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Sep 13 17:09:30 EDT 2010


Author: gmc
Date: 2010-09-13 17:09:24 -0400 (Mon, 13 Sep 2010)
New Revision: 17641

Modified:
   branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js
   branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js
Log:
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 at esilibrary.com>


Modified: branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js	2010-09-13 21:07:35 UTC (rev 17640)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js	2010-09-13 21:09:24 UTC (rev 17641)
@@ -87,9 +87,9 @@
         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++) {

Modified: branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js	2010-09-13 21:07:35 UTC (rev 17640)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js	2010-09-13 21:09:24 UTC (rev 17641)
@@ -51,7 +51,7 @@
 
         // Assign a default value if none was returned 
         if (!label_class) {
-            label_class = { "value": 1 };
+            label_class = 1;
         }
 
         /***********************************************************************************************************/
@@ -98,7 +98,7 @@
         /* 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);
         }
 
         /***********************************************************************************************************/



More information about the open-ils-commits mailing list