lp1182605 Add sort value for holds interfaces
authorKathy Lussier <klussier@masslnc.org>
Tue, 19 Aug 2014 18:29:56 +0000 (14:29 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 27 Aug 2014 01:45:15 +0000 (21:45 -0400)
Holds interfaces were still sorting incorrectly, so let's add a sort value
there.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/xul/staff_client/server/circ/util.js

index 93a065d..d4c48b0 100644 (file)
@@ -2452,10 +2452,14 @@ circ.util.hold_columns = function(modify,params) {
             'flex' : 1,
             'primary' : false,
             'hidden' : true,
+           'sort_value' : function(my,scratch_data) {
+                               var result_label = "label_sortkey";
+                               return sort_call_numbers_by_label_sortkey(my,scratch_data, result_label);
+                      },
             'editable' : false, 'render' : function(my,scratch_data) {
                                var result_label = "render_label";
                                return sort_call_numbers_by_label_sortkey(my, scratch_data, result_label);
-                          
+                       } 
         },
         {
             'id' : 'prefix',