From: senator Date: Sun, 12 Sep 2010 20:19:18 +0000 (+0000) Subject: Serials: little bugfixin on this OPAC-oriented method X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ae1e3a9696f1914e77ebc0f2367e49c890438c3d;p=evergreen%2Fbjwebb.git Serials: little bugfixin on this OPAC-oriented method git-svn-id: svn://svn.open-ils.org/ILS/trunk@17620 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Serial.pm b/Open-ILS/src/perlmods/OpenILS/Application/Serial.pm index 0ac0a4414..e09035879 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Serial.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Serial.pm @@ -360,7 +360,7 @@ sub received_siss_by_bib { my $e = new_editor(); my $issuances = $e->json_query({ - select => { 'siss' => [ 'id' ] }, + select => {'siss' => [{"transform" => "distinct", "column" => "id"}, "date_published"]}, from => { siss => { ssub => { @@ -395,19 +395,13 @@ sub received_siss_by_bib { }, $$args{ou} ? ( '+sdist' => { holding_lib => { - 'in' => { - from => [ - 'actor.org_unit_descendants', - defined($$args{depth}) ? ( $$args{ou}, $$args{depth} ) : ( $$args{ou} ) - ] - } + 'in' => $U->get_org_descendants($$args{ou}, $$args{depth}) } }) : () }, $$args{limit} ? ( limit => $$args{limit} ) : (), $$args{offset} ? ( offset => $$args{offset} ) : (), - order_by => [{ class => 'siss', field => 'date_published', direction => $$args{order} }], - distinct => 1 + order_by => [{ class => 'siss', field => 'date_published', direction => $$args{order} }] }); $client->respond($e->retrieve_serial_issuance($_->{id})) for @$issuances;