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 545-551 foreach my $biblioNum (@biblionumbers) { Link Here
545
543
546
        # if the items belongs to a host record, show link to host record
544
        # if the items belongs to a host record, show link to host record
547
        if ( $itemInfo->{biblionumber} ne $biblioNum ) {
545
        if ( $itemInfo->{biblionumber} ne $biblioNum ) {
548
            $biblioLoopIter{hostitemsflag}    = 1;
549
            $itemLoopIter->{hostbiblionumber} = $itemInfo->{biblionumber};
546
            $itemLoopIter->{hostbiblionumber} = $itemInfo->{biblionumber};
550
            $itemLoopIter->{hosttitle}        = Koha::Biblios->find( $itemInfo->{biblionumber} )->title;
547
            $itemLoopIter->{hosttitle}        = Koha::Biblios->find( $itemInfo->{biblionumber} )->title;
551
        }
548
        }
(-)a/reserve/request.pl (-7 lines)
Lines 395-401 foreach my $biblionumber (@biblionumbers) { Link Here
395
    my @hostitems = get_hostitemnumbers_of($biblionumber);
395
    my @hostitems = get_hostitemnumbers_of($biblionumber);
396
    my @itemnumbers;
396
    my @itemnumbers;
397
    if (@hostitems){
397
    if (@hostitems){
398
        $template->param('hostitemsflag' => 1);
399
        push(@itemnumbers, @hostitems);
398
        push(@itemnumbers, @hostitems);
400
    }
399
    }
401
400
Lines 443-452 foreach my $biblionumber (@biblionumbers) { Link Here
443
442
444
        $biblioitem->{force_hold_level} = $force_hold_level;
443
        $biblioitem->{force_hold_level} = $force_hold_level;
445
444
446
        if ( $biblioitem->{biblioitemnumber} ne $biblionumber ) {
447
            $biblioitem->{hostitemsflag} = 1;
448
        }
449
450
        $biblioloopiter{description} = $biblioitem->{description};
445
        $biblioloopiter{description} = $biblioitem->{description};
451
        $biblioloopiter{itypename}   = $biblioitem->{description};
446
        $biblioloopiter{itypename}   = $biblioitem->{description};
452
        if ( $biblioitem->{itemtype} ) {
447
        if ( $biblioitem->{itemtype} ) {
Lines 498-504 foreach my $biblionumber (@biblionumbers) { Link Here
498
            }
493
            }
499
494
500
            if($item->{biblionumber} ne $biblionumber){
495
            if($item->{biblionumber} ne $biblionumber){
501
                $item->{hostitemsflag} = 1;
502
                $item->{hosttitle} = Koha::Biblios->find( $item->{biblionumber} )->title;
496
                $item->{hosttitle} = Koha::Biblios->find( $item->{biblionumber} )->title;
503
            }
497
            }
504
498
505
- 

Return to bug 29660