Revert "Bug 6875 de-nesting C4::Heading"

This reverts commit 0e61cfb3a5.
-Unstable code
This commit is contained in:
Chris Nighswonger 2012-02-22 14:42:56 -05:00
parent 207416fa43
commit 94b1ca0fb1
1 changed files with 3 additions and 4 deletions

View File

@ -23,6 +23,7 @@ use MARC::Record;
use MARC::Field;
use C4::Context;
use C4::Heading::MARC21;
use C4::Search;
use Carp;
our $VERSION = 3.00;
@ -108,8 +109,7 @@ sub authorities {
my $self = shift;
my $query = qq(Match-heading,do-not-truncate,ext="$self->{'search_form'}");
$query .= $self->_query_limiters();
require C4::Search;
my ($error, $results, $total_hits) = C4::Search::SimpleSearch( $query, undef, undef, [ "authorityserver" ] );
my ($error, $results, $total_hits) = SimpleSearch( $query, undef, undef, [ "authorityserver" ] );
if (defined $error) {
carp "Error:$error from search $query";
}
@ -129,8 +129,7 @@ sub preferred_authorities {
my $self = shift;
my $query = "Match-heading-see-from,do-not-truncate,ext='$self->{'search_form'}'";
$query .= $self->_query_limiters();
require C4::Search;
my ($error, $results, $total_hits) = C4::Search::SimpleSearch( $query, undef, undef, [ "authorityserver" ] );
my ($error, $results, $total_hits) = SimpleSearch( $query, undef, undef, [ "authorityserver" ] );
if (defined $error) {
carp "Error:$error from search $query";
}