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
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++) {
// Assign a default value if none was returned
if (!label_class) {
- label_class = { "value": 1 };
+ label_class = 1;
}
/***********************************************************************************************************/
/* 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);
}
/***********************************************************************************************************/