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

(-)a/opac/opac-reserve.pl (-3 lines)
Lines 153-163 foreach my $biblioNumber (@biblionumbers) { Link Here
153
    my $marcrecord= GetMarcBiblio({ biblionumber => $biblioNumber });
153
    my $marcrecord= GetMarcBiblio({ biblionumber => $biblioNumber });
154
154
155
    # flag indicating existence of at least one item linked via a host record
155
    # flag indicating existence of at least one item linked via a host record
156
    my $hostitemsflag;
157
    # adding items linked via host biblios
156
    # adding items linked via host biblios
158
    my @hostitemInfos = GetHostItemsInfo($marcrecord);
157
    my @hostitemInfos = GetHostItemsInfo($marcrecord);
159
    if (@hostitemInfos){
158
    if (@hostitemInfos){
160
        $hostitemsflag =1;
161
        push (@itemInfos,@hostitemInfos);
159
        push (@itemInfos,@hostitemInfos);
162
    }
160
    }
163
161
Lines 554-560 foreach my $biblioNum (@biblionumbers) { Link Here
554
552
555
        # if the items belongs to a host record, show link to host record
553
        # if the items belongs to a host record, show link to host record
556
        if ( $itemInfo->{biblionumber} ne $biblioNum ) {
554
        if ( $itemInfo->{biblionumber} ne $biblioNum ) {
557
            $biblioLoopIter{hostitemsflag}    = 1;
558
            $itemLoopIter->{hostbiblionumber} = $itemInfo->{biblionumber};
555
            $itemLoopIter->{hostbiblionumber} = $itemInfo->{biblionumber};
559
            $itemLoopIter->{hosttitle}        = Koha::Biblios->find( $itemInfo->{biblionumber} )->title;
556
            $itemLoopIter->{hosttitle}        = Koha::Biblios->find( $itemInfo->{biblionumber} )->title;
560
        }
557
        }
(-)a/reserve/request.pl (-7 lines)
Lines 401-407 if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold ) Link Here
401
        my @hostitems = get_hostitemnumbers_of($biblionumber);
401
        my @hostitems = get_hostitemnumbers_of($biblionumber);
402
        my @itemnumbers;
402
        my @itemnumbers;
403
        if (@hostitems){
403
        if (@hostitems){
404
            $template->param('hostitemsflag' => 1);
405
            push(@itemnumbers, @hostitems);
404
            push(@itemnumbers, @hostitems);
406
        }
405
        }
407
406
Lines 450-459 if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold ) Link Here
450
449
451
                $biblioitem->{force_hold_level} = $force_hold_level;
450
                $biblioitem->{force_hold_level} = $force_hold_level;
452
451
453
                if ( $biblioitem->{biblioitemnumber} ne $biblionumber ) {
454
                    $biblioitem->{hostitemsflag} = 1;
455
                }
456
457
                $biblioloopiter{description} = $biblioitem->{description};
452
                $biblioloopiter{description} = $biblioitem->{description};
458
                $biblioloopiter{itypename}   = $biblioitem->{description};
453
                $biblioloopiter{itypename}   = $biblioitem->{description};
459
                if ( $biblioitem->{itemtype} ) {
454
                if ( $biblioitem->{itemtype} ) {
Lines 505-511 if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold ) Link Here
505
                    }
500
                    }
506
501
507
                    if($item->{biblionumber} ne $biblionumber){
502
                    if($item->{biblionumber} ne $biblionumber){
508
                        $item->{hostitemsflag} = 1;
509
                        $item->{hosttitle} = Koha::Biblios->find( $item->{biblionumber} )->title;
503
                        $item->{hosttitle} = Koha::Biblios->find( $item->{biblionumber} )->title;
510
                    }
504
                    }
511
505
512
- 

Return to bug 29660