From e96ddeeeb3448a4c05670feeebfd13481ec0d2bf Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 6 Oct 2010 14:59:43 +0000 Subject: [PATCH] hold/transit slips may want to use stat cats as well git-svn-id: svn://svn.open-ils.org/ILS/trunk@18203 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/util.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 7388d493c2..76cb2d8e4e 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -2900,6 +2900,26 @@ circ.util.checkin_via_barcode2 = function(session,params,backdate,auto_print,che JSAN.use('patron.util'); var au_obj = patron.util.retrieve_fleshed_au_via_id( session, check.payload.hold.usr() ); print_data.user = au_obj; + print_data.user_stat_cat_entries = []; + var entries = au_obj.stat_cat_entries(); + for (var i = 0; i < entries.length; i++) { + var stat_cat = data.hash.my_actsc[ entries[i].stat_cat() ]; + if (!stat_cat) { + stat_cat = data.lookup('actsc', entries[i].stat_cat()); + } + print_data.user_stat_cat_entries.push( { + 'id' : entries[i].id(), + 'stat_cat' : { + 'id' : stat_cat.id(), + 'name' : stat_cat.name(), + 'opac_visible' : stat_cat.opac_visible(), + 'owner' : stat_cat.owner(), + 'usr_summary' : stat_cat.usr_summary() + }, + 'stat_cat_entry' : entries[i].stat_cat_entry(), + 'target_usr' : entries[i].target_usr() + } ); + } msg += '\n'; if (au_obj.alias()) { print_data.hold_for_msg = document.getElementById('circStrings').getFormattedString('staff.circ.utils.payload.hold.patron_alias', [au_obj.alias()]); -- 2.11.0