[open-ils-commits] r17579 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Sep 10 12:35:51 EDT 2010
Author: phasefx
Date: 2010-09-10 12:35:48 -0400 (Fri, 10 Sep 2010)
New Revision: 17579
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/search_result.js
Log:
render patron barcode in patron search results
Modified: trunk/Open-ILS/xul/staff_client/server/patron/search_result.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/search_result.js 2010-09-10 16:35:45 UTC (rev 17578)
+++ trunk/Open-ILS/xul/staff_client/server/patron/search_result.js 2010-09-10 16:35:48 UTC (rev 17579)
@@ -37,7 +37,13 @@
'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 @@
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 {
More information about the open-ils-commits
mailing list