# rather than hard-coded conversions.
# Our results often come through as nested arrays, to fix this
# requires changes in catmandu.
- my $authid = $record->{ 'Local-Number' }[0][0];
+ my $authid = $record->{ 'local-number' }[0][0];
$result{authid} = $authid;
# TODO put all this info into the record at index time so we
use C4::Search::History;
use Koha::Authority::Types;
+use Koha::SearchEngine::Search;
+use Koha::SearchEngine::QueryBuilder;
my $query = new CGI;
my $dbh = C4::Context->dbh;
);
$startfrom = $startfrom // 0;
my ( $results, $total ) =
- $searcher->search_auth_compat( $search_query, $startfrom + 1,
+ $searcher->search_auth_compat( $search_query, $startfrom,
$resultsperpage );
-
#my ( $results, $total ) = SearchAuthorities(
# [$marclist], [$and_or],
# [$excluding], [$operator],