View | Details | Raw Unified | Return to bug 25870
Collapse All | Expand All

(-)a/Koha/REST/V1/Biblios.pm (-6 lines)
Lines 28-35 use List::MoreUtils qw( any ); Link Here
28
use MARC::Record::MiJ;
28
use MARC::Record::MiJ;
29
29
30
use Try::Tiny qw( catch try );
30
use Try::Tiny qw( catch try );
31
use JSON;
32
use Data::Dumper;
33
31
34
=head1 API
32
=head1 API
35
33
Lines 159-166 sub get_biblios_public { Link Here
159
    my $searcher = Koha::SearchEngine::Search->new( { index => 'biblios' } );
157
    my $searcher = Koha::SearchEngine::Search->new( { index => 'biblios' } );
160
    my $query    = $c->validation->param('q_ccl');
158
    my $query    = $c->validation->param('q_ccl');
161
159
162
    warn Dumper($query);
163
164
    my ( $error, $results, $total_hits ) = $searcher->simple_search_compat( $query, 0, undef );
160
    my ( $error, $results, $total_hits ) = $searcher->simple_search_compat( $query, 0, undef );
165
161
166
    if ( !$total_hits ) {
162
    if ( !$total_hits ) {
Lines 200-206 sub get_biblios_public { Link Here
200
    };
196
    };
201
}
197
}
202
198
203
204
=head3 get_public
199
=head3 get_public
205
200
206
Controller function that handles retrieving a single biblio object
201
Controller function that handles retrieving a single biblio object
207
- 

Return to bug 25870