From: miker Date: Mon, 1 Nov 2010 18:37:36 +0000 (+0000) Subject: we should not restrict to the top org only, get all counts X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=28400e2e8ec5e3b582076204fab174218728b5f2;p=evergreen%2Fbjwebb.git we should not restrict to the top org only, get all counts git-svn-id: svn://svn.open-ils.org/ILS/trunk@18555 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 175a80b81..8806980c7 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm @@ -1721,15 +1721,8 @@ sub new_record_holdings { $o_search )->gather(1); - my $top_org = defined($depth) ? - $_storage->request( - 'open-ils.cstore.json_query', - { from => [ 'actor.org_unit_ancestor_at_depth', $one_org->id, $depth ] } - )->gather(1)->{id} : - $one_org->id; - - my $count_req = $_search->request('open-ils.search.biblio.record.copy_count' => $top_org => $bib); - my $staff_count_req = $_search->request('open-ils.search.biblio.record.copy_count.staff' => $top_org => $bib); + my $count_req = $_search->request('open-ils.search.biblio.record.copy_count' => $one_org->id => $bib); + my $staff_count_req = $_search->request('open-ils.search.biblio.record.copy_count.staff' => $one_org->id => $bib); my $orgs = $_storage->request( 'open-ils.cstore.json_query.atomic',