Expose sort values from lists
authorThomas Berezansky <tsbere@mvlc.org>
Tue, 23 Aug 2011 16:06:55 +0000 (12:06 -0400)
committerJason Etheridge <jason@esilibrary.com>
Fri, 26 Aug 2011 19:57:49 +0000 (15:57 -0400)
Specifically useful for things like receipt templates.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/xul/staff_client/chrome/content/util/list.js

index 85a34d0..4013eff 100644 (file)
@@ -1195,6 +1195,10 @@ util.list.prototype = {
                         debugger;
                     } else {
                         row[ obj.columns[j].id ] = treerow.childNodes[j].getAttribute('label');
+                        var sort = treerow.childNodes[j].getAttribute('sort_value');
+                        if(sort) {
+                            row[ obj.columns[j].id + '_sort_value' ] = sort;
+                        }
                     }
                 }
                 dump.push( row );