From: phasefx Date: Thu, 9 Sep 2010 20:35:47 +0000 (+0000) Subject: Change the field order in asset.call_number_class if you want to sort these X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=031917680ce0430b69cab036fe358a0154545fcc;p=evergreen%2Fbjwebb.git Change the field order in asset.call_number_class if you want to sort these git-svn-id: svn://svn.open-ils.org/ILS/trunk@17550 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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 d48b3ca16..d09febefd 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 @@ -47,7 +47,7 @@ function my_init() { // Get the default callnumber classification scheme from OU settings dojo.require('fieldmapper.OrgUtils'); - var label_class = fieldmapper.aou.fetchOrgSettingDefault(ses('ws_ou'), 'cat.default_classification_scheme'); + var label_class = g.data.hash.aous['cat.default_classification_scheme']; //fieldmapper.aou.fetchOrgSettingDefault(ses('ws_ou'), 'cat.default_classification_scheme'); // Assign a default value if none was returned if (!label_class) { @@ -574,17 +574,6 @@ g.list_callnumbers = function(doc_id, label_class) { return [ o[i], i ]; } } - ).sort( - function(a,b) { - a = a[1]; b = b[1]; - if (a == '082') return -1; - if (b == '082') return 1; - if (a == '092') return -1; - if (b == '092') return 1; - if (a < b) return -1; - if (a > b) return 1; - return 0; - } ) ); hbox.appendChild(ml); ml.setAttribute('editable','true');