From 28400e2e8ec5e3b582076204fab174218728b5f2 Mon Sep 17 00:00:00 2001 From: miker Date: Mon, 1 Nov 2010 18:37:36 +0000 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm b/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm index 175a80b812..8806980c73 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', -- 2.43.2