From 552c8bb885312d875c09a4d71d02735444d4fc2e Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 25 Aug 2005 20:53:08 +0000 Subject: [PATCH] bug fixing git-svn-id: svn://svn.open-ils.org/ILS/trunk@1743 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../OpenILS/Application/Storage/Publisher/biblio.pm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/biblio.pm index e46e4eaa63..20ffdd54f6 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/biblio.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/biblio.pm @@ -252,9 +252,6 @@ sub record_copy_status_count { my $cl_table = asset::copy_location->table; my $cs_table = config::copy_status->table; - my $copies_visible = 'AND cp.opac_visible IS TRUE AND cs.holdable IS TRUE AND cl.opac_visible IS TRUE'; - $copies_visible = '' if ($self->api_name =~ /staff/o); - my $sql = <<" SQL"; SELECT cp.circ_lib, cn.label, cp.status, count(cp.id) @@ -270,11 +267,11 @@ sub record_copy_status_count { AND cp.opac_visible IS TRUE AND cs.holdable GROUP BY 1,2,3 - ORDER BY 1,2,3 + ORDER BY 1,2,3; SQL my $sth = biblio::record_entry->db_Main->prepare_cached($sql); - $sth->execute("$rec", "$rec"); + $sth->execute("$rec"); my ($ou,$cn) = (0,''); my @data = (); @@ -291,7 +288,7 @@ sub record_copy_status_count { } __PACKAGE__->register_method( api_name => 'open-ils.storage.biblio.record_entry.status_copy_count', - method => 'global_record_copy_count', + method => 'record_copy_status_count', api_level => 1, stream => 1, cachable => 1, -- 2.43.2