From fdf9bb7621d9568e47ec46e964bb66defaa4e475 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 25 May 2022 14:33:26 +0000 Subject: [PATCH] Bug 30847: Avoid fetching biblio object MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Here the items biblionumber is either equal to the biblionumber passed in or it is not and should be - we can just assign directly from the item in all cases Signed-off-by: Owen Leonard Rebased-by: Victor Grousset/tuxayo Signed-off-by: Joonas Kylmälä --- opac/opac-reserve.pl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index df0582df54..bf7525f2f8 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -237,12 +237,9 @@ if ( $query->param('place_reserve') ) { } } -#item may belong to a host biblio, if yes change biblioNum to hosts bilbionumber + # if we have an item, we are placing the hold on the item's bib, in case of analytics if ( $item ) { - my $hostbiblioNum = $item->biblio->biblionumber; - if ( $hostbiblioNum ne $biblioNum ) { - $biblioNum = $hostbiblioNum; - } + $biblioNum = $item->biblionumber; } my $biblioData = $biblioDataHash{$biblioNum}; -- 2.30.2