From: phasefx Date: Fri, 10 Sep 2010 16:35:48 +0000 (+0000) Subject: render patron barcode in patron search results X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e4ea5cf6eba35a60f6a530616b2d93bfcbfcc206;p=evergreen%2Fbjwebb.git render patron barcode in patron search results git-svn-id: svn://svn.open-ils.org/ILS/trunk@17579 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/search_result.js b/Open-ILS/xul/staff_client/server/patron/search_result.js index a7d337aba..4b42eecd7 100644 --- a/Open-ILS/xul/staff_client/server/patron/search_result.js +++ b/Open-ILS/xul/staff_client/server/patron/search_result.js @@ -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 {