From: erickson Date: Fri, 21 Nov 2008 20:46:43 +0000 (+0000) Subject: use storage instead of cstore for searching callnumbers by label to prevent c-json... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=85b7dd4dd9ee3b6dc48797de2316e9bc35903d18;p=Evergreen.git use storage instead of cstore for searching callnumbers by label to prevent c-json from treating labels that look like numbers asdoubles git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2_4@11300 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm index 54209d99b0..0b56ab0958 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm @@ -8,6 +8,7 @@ use OpenILS::Utils::Fieldmapper; use OpenILS::Utils::ModsParser; use OpenSRF::Utils::SettingsClient; use OpenILS::Utils::CStoreEditor q/:funcs/; +use OpenILS::Utils::Editor; use OpenSRF::Utils::Cache; use Encode; @@ -1651,7 +1652,7 @@ __PACKAGE__->register_method( sub copies_by_cn_label { my( $self, $conn, $record, $label, $circ_lib ) = @_; my $e = new_editor(); - my $cns = $e->search_asset_call_number({record => $record, label => $label, deleted => 'f'}, {idlist=>1}); + my $cns = OpenILS::Utils::Editor->new->search_asset_call_number({record => $record, label => $label, deleted => 'f'}, {idlist=>1}); return [] unless @$cns; # show all non-deleted copies in the staff client ...