Change the field order in asset.call_number_class if you want to sort these
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 9 Sep 2010 20:35:47 +0000 (20:35 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 9 Sep 2010 20:35:47 +0000 (20:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17550 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js

index d48b3ca..d09febe 100644 (file)
@@ -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');