From 383f222c31244cc82d3dd3d3f20ac5c628d87803 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 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 --- 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 67060dd1b1..cab6d9eadd 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.37.2