From fe95ab10a6a18d0e08a61a71a106db413b904a98 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 21 Nov 2008 20:46:20 +0000 Subject: [PATCH] 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_3@11299 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm index f17de949fe..7b5e525f80 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 ... -- 2.11.0