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

(-)a/labels/label-item-search.pl (-2 / +3 lines)
Lines 42-47 my $op = $query->param('op') || ''; Link Here
42
my $batch_id  = $query->param('batch_id');
42
my $batch_id  = $query->param('batch_id');
43
my @limits    = split(" AND ", $query->param('limits') || "");
43
my @limits    = split(" AND ", $query->param('limits') || "");
44
my $startfrom = $query->param('startfrom') || 1;
44
my $startfrom = $query->param('startfrom') || 1;
45
Koha::Logger->get->warn('$batch_id');
46
Koha::Logger->get->warn($batch_id);
45
my ($template, $loggedinuser, $cookie) = (undef, undef, undef);
47
my ($template, $loggedinuser, $cookie) = (undef, undef, undef);
46
my (
48
my (
47
    $total_hits,  $total,  $error,
49
    $total_hits,  $total,  $error,
Lines 85-91 if ( $op eq "do_search" ) { Link Here
85
        undef, undef, $query_type, undef
87
        undef, undef, $query_type, undef
86
    );
88
    );
87
89
88
    if (!defined $error && @{$results->{biblioserver}{RECORDS}} ) {
90
    if (!defined $error && defined($results) && @{$results->{biblioserver}{RECORDS}} > 0 ) {
89
        $show_results = grep { defined $_ } @{$results->{biblioserver}{RECORDS}};
91
        $show_results = grep { defined $_ } @{$results->{biblioserver}{RECORDS}};
90
        $marcresults = [ grep { defined $_ } @{$results->{biblioserver}{RECORDS}} ];
92
        $marcresults = [ grep { defined $_ } @{$results->{biblioserver}{RECORDS}} ];
91
        $total_hits = $results->{biblioserver}{hits};
93
        $total_hits = $results->{biblioserver}{hits};
92
- 

Return to bug 30745