patron data for checkin rows
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Sep 2009 20:26:58 +0000 (20:26 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Sep 2009 20:26:58 +0000 (20:26 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14238 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/checkin.js

index cc0957c..6c528b7 100644 (file)
@@ -35,7 +35,7 @@ circ.checkin.prototype = {
                                'except_these' : [ 'uses', 'checkin_time_full' ]
                        }
                ).concat(
-            patron.util.columns( {} )
+            patron.util.columns( { 'family_name' : { 'hidden' : 'false' } } )
 
         ).concat(
             patron.util.mbts_columns( {}, { 'except_these' : [ 'total_paid', 'total_owed', 'xact_start', 'xact_finish', 'xact_type' ] } )
@@ -318,6 +318,14 @@ circ.checkin.prototype = {
                             document.getElementById('fine_tally').setAttribute('hidden','false');
                         }
                     });
+
+                    if (row.my.circ) {
+                        obj.network.simple_request('FM_AU_FLESHED_RETRIEVE_VIA_ID.authoritative', [ses(),row.my.circ.usr()], function(req) {
+                            var au_obj = req.getResultObject();
+                            row.my.au = au_obj;
+                            if (typeof params.on_retrieve == 'function') params.on_retrieve(row);
+                        } );
+                    }
                 }
             } catch(E) {
                 alert('Error in checkin.js, list_retrieve_row(): ' + E);