From a34f5d62c12ba570b4c053c2642d7737707c4628 Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 8 Jul 2008 19:32:09 +0000 Subject: [PATCH 1/1] add status as a public note in exporter git-svn-id: svn://svn.open-ils.org/ILS/trunk@9995 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/WWW/Exporter.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/Exporter.pm b/Open-ILS/src/perlmods/OpenILS/WWW/Exporter.pm index 4e42171c37..fba5fe6d85 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/Exporter.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/Exporter.pm @@ -154,6 +154,7 @@ sub handler { my %orgs; my %shelves; + my %statuses; my $flesh = {}; if ($holdings) { @@ -178,6 +179,16 @@ sub handler { } $req->finish; + $req = $ses->request( 'open-ils.cstore.direct.config.copy_status.search', { id => { '!=' => undef } } ); + + while (my $s = $req->recv) { + next if ($req->failed); + $s = $s->content; + last unless ($s); + $statuses{$s->id} = $s; + } + $req->finish; + $flesh = { flesh => 2, flesh_fields => { bre => [ 'call_numbers' ], acn => [ 'copies' ] } }; } @@ -246,6 +257,7 @@ sub handler { ($cp->holdable eq 'f' ? ( x => 'unholdable' ) : ()), ($cp->circulate eq 'f' ? ( x => 'noncirculating' ) : ()), ($cp->opac_visible eq 'f' ? ( x => 'hidden' ) : ()), + z => $statuses{$cp->status}->name, ) ); -- 2.43.2