display copy counts correctly in staff search results
authorgmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 23 Aug 2010 15:09:13 +0000 (15:09 +0000)
committergmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 23 Aug 2010 15:09:13 +0000 (15:09 +0000)
Also fixes following warning:

Useless use of a constant in void context at .../OpenILS/Application/Search/Biblio.pm line 263.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17309 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm

index 2ec58be..3d33837 100644 (file)
@@ -260,7 +260,7 @@ sub record_id_to_copy_count {
     return [] unless $record_id;
 
     my $key = $self->api_name =~ /metarecord/ ? 'metarecord' : 'record';
-    my $staff =~ $self->api_name =~ /staff/ ? 't' : 'f';
+    my $staff = $self->api_name =~ /staff/ ? 't' : 'f';
 
     my $data = $U->cstorereq(
         "open-ils.cstore.json_query.atomic",