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

(-)a/Koha/SearchEngine/Elasticsearch/Search.pm (+1 lines)
Lines 93-98 sub search { Link Here
93
        $page = (!defined($page) || ($page <= 0)) ? 0 : $page - 1;
93
        $page = (!defined($page) || ($page <= 0)) ? 0 : $page - 1;
94
        $query->{from} = $page * $query->{size};
94
        $query->{from} = $page * $query->{size};
95
    }
95
    }
96
    warn Data::Dumper::Dumper( $query );
96
    my $elasticsearch = $self->get_elasticsearch();
97
    my $elasticsearch = $self->get_elasticsearch();
97
    my $results = eval {
98
    my $results = eval {
98
        $elasticsearch->search(
99
        $elasticsearch->search(
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (+1 lines)
Lines 904-909 Note that permanent location is a code, and location may be an authval. Link Here
904
                if (itemnumbers.length > 0) {
904
                if (itemnumbers.length > 0) {
905
                    var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
905
                    var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
906
                    url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
906
                    url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
907
                    url += '&biblionumber=[% biblionumber | uri %]';
907
                    url += '&src=CATALOGUING';
908
                    url += '&src=CATALOGUING';
908
                    $('a.itemselection_action_modify').attr('href', url);
909
                    $('a.itemselection_action_modify').attr('href', url);
909
                } else {
910
                } else {
(-)a/tools/batchMod.pl (-2 / +1 lines)
Lines 318-324 if ($op eq "show"){ Link Here
318
            @notfounditemnumbers = grep { !exists $itemdata{$_} } @contentlist;
318
            @notfounditemnumbers = grep { !exists $itemdata{$_} } @contentlist;
319
        }
319
        }
320
    } else {
320
    } else {
321
        if (defined $biblionumber){
321
        if (defined $biblionumber && !@itemnumbers){
322
            my @all_items = GetItemsInfo( $biblionumber );
322
            my @all_items = GetItemsInfo( $biblionumber );
323
            foreach my $itm (@all_items) {
323
            foreach my $itm (@all_items) {
324
                push @itemnumbers, $itm->{itemnumber};
324
                push @itemnumbers, $itm->{itemnumber};
325
- 

Return to bug 24423