render patron barcode in patron search results
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 10 Sep 2010 16:35:48 +0000 (16:35 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 10 Sep 2010 16:35:48 +0000 (16:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17579 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/search_result.js

index a7d337a..4b42eec 100644 (file)
@@ -37,7 +37,13 @@ patron.search_result.prototype = {
             'au_first_given_name' : { 'hidden' : false },
             'au_second_given_name' : { 'hidden' : false },
             'au_dob' : { 'hidden' : false }
-        });
+        }).concat(
+            obj.list.fm_columns('ac',{
+                '*' : { 'remove_virtual' : true, 'expanded_label' : true, 'hidden' : true },
+                'ac_barcode' : { 'hidden' : false }
+            })
+        );
+
         obj.list.init(
             {
                 'columns' : columns,
@@ -53,6 +59,7 @@ patron.search_result.prototype = {
                                 var row = params.row;
                                 if (typeof row.my == 'undefined') row.my = {};
                                 row.my.au = req.getResultObject();
+                                row.my.ac = row.my.au.card();
                                 if (typeof params.on_retrieve == 'function') {
                                     params.on_retrieve(row);
                                 } else {