From 1cf268a157b03a03d552556f2bb68c95a852d932 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 8 Dec 2021 15:10:57 +0100 Subject: [PATCH] Bug 29660: Remove hostitemsflag Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize Signed-off-by: Fridolin Somers --- opac/opac-reserve.pl | 3 --- reserve/request.pl | 6 ------ 2 files changed, 9 deletions(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index a998a5bb65..a339200561 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -153,11 +153,9 @@ foreach my $biblioNumber (@biblionumbers) { my $marcrecord= GetMarcBiblio({ biblionumber => $biblioNumber }); # flag indicating existence of at least one item linked via a host record - my $hostitemsflag; # adding items linked via host biblios my @hostitemInfos = GetHostItemsInfo($marcrecord); if (@hostitemInfos){ - $hostitemsflag =1; push (@itemInfos,@hostitemInfos); } @@ -554,7 +552,6 @@ foreach my $biblioNum (@biblionumbers) { # if the items belongs to a host record, show link to host record if ( $itemInfo->{biblionumber} ne $biblioNum ) { - $biblioLoopIter{hostitemsflag} = 1; $itemLoopIter->{hostbiblionumber} = $itemInfo->{biblionumber}; $itemLoopIter->{hosttitle} = Koha::Biblios->find( $itemInfo->{biblionumber} )->title; } diff --git a/reserve/request.pl b/reserve/request.pl index b78faa9955..11ce5d839c 100755 --- a/reserve/request.pl +++ b/reserve/request.pl @@ -401,7 +401,6 @@ if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold ) my @hostitems = get_hostitemnumbers_of($biblionumber); my @itemnumbers; if (@hostitems){ - $template->param('hostitemsflag' => 1); push(@itemnumbers, @hostitems); } @@ -450,10 +449,6 @@ if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold ) $biblioitem->{force_hold_level} = $force_hold_level; - if ( $biblioitem->{biblioitemnumber} ne $biblionumber ) { - $biblioitem->{hostitemsflag} = 1; - } - $biblioloopiter{description} = $biblioitem->{description}; $biblioloopiter{itypename} = $biblioitem->{description}; if ( $biblioitem->{itemtype} ) { @@ -505,7 +500,6 @@ if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold ) } if($item->{biblionumber} ne $biblionumber){ - $item->{hostitemsflag} = 1; $item->{hosttitle} = Koha::Biblios->find( $item->{biblionumber} )->title; } -- 2.39.5