From: miker Date: Mon, 22 Nov 2010 17:04:56 +0000 (+0000) Subject: more SuperCat XML fixup needed to support serials data -- important for opac customiz... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=52c0cc42d8066db1e0e5f6f293e143411aec8cbe;p=evergreen%2Fbjwebb.git more SuperCat XML fixup needed to support serials data -- important for opac customization though BibTemplate (as in, "do not blow up") git-svn-id: svn://svn.open-ils.org/ILS/trunk@18823 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm b/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm index 3b7eba819..f88ad6cd1 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm @@ -1839,12 +1839,14 @@ sub new_record_holdings { { record_entry => $bib, %subselect }, - { flesh => 5, + { flesh => 7, flesh_fields => { ssub => [qw/distributions issuances scaps owning_lib/], sdist => [qw/basic_summary supplement_summary index_summary streams holding_lib/], sstr => [qw/items/], sitem => [qw/notes unit/], + sunit => [qw/notes location status circ_lib stat_cat_entries call_number/], + acn => [qw/owning_lib/], }, ( $limit > -1 ? ( limit => $limit ) : () ), ( $offset ? ( offset => $offset ) : () ), @@ -3016,10 +3018,10 @@ sub as_xml { $xml .= OpenILS::Application::SuperCat::unAPI->new( $self->obj->issuance )->as_xml({ %$args, no_items=>1 }) if (!$args->{no_issuance}); $xml .= OpenILS::Application::SuperCat::unAPI->new( $self->obj->stream )->as_xml({ %$args, no_items=>1 }) if (!$args->{no_stream}); - $xml .= OpenILS::Application::SuperCat::unAPI->new( $self->obj->unit )->as_xml({ %$args, no_items=>1, no_volumes=>1 }) if (!$args->{no_unit}); - $xml .= OpenILS::Application::SuperCat::unAPI->new( $self->obj->uri )->as_xml({ %$args, no_items=>1, no_volumes=>1 }) if (!$args->{no_uri}); + $xml .= OpenILS::Application::SuperCat::unAPI->new( $self->obj->unit )->as_xml({ %$args, no_items=>1, no_volumes=>1 }) if ($self->obj->unit && !$args->{no_unit}); + $xml .= OpenILS::Application::SuperCat::unAPI->new( $self->obj->uri )->as_xml({ %$args, no_items=>1, no_volumes=>1 }) if ($self->obj->uri && !$args->{no_uri}); - $xml .= " \n"; + $xml .= " \n"; return $xml; } @@ -3031,13 +3033,13 @@ sub as_xml { my $self = shift; my $args = shift; - my $xml = '