Bugzilla – Attachment 137672 Details for
Bug 30847
Cleanup opac-reserve.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30847: Avoid fetching biblio object
Bug-30847-Avoid-fetching-biblio-object.patch (text/plain), 1.17 KB, created by
Jonathan Druart
on 2022-07-13 06:41:11 UTC
(
hide
)
Description:
Bug 30847: Avoid fetching biblio object
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-07-13 06:41:11 UTC
Size:
1.17 KB
patch
obsolete
>From 6c7970d3278370d4dfeace2fe12e25b7ac3a4a8e Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >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 >--- > 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 37929e18038..23da777b3cf 100755 >--- a/opac/opac-reserve.pl >+++ b/opac/opac-reserve.pl >@@ -240,12 +240,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.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30847
:
135340
|
135341
|
135342
|
135343
|
135344
|
135345
|
135346
|
135347
|
135348
|
137668
|
137669
|
137670
|
137671
|
137672
|
137673
|
137674
|
137675
|
138654
|
138655
|
138934
|
138935
|
138936
|
138937
|
138938
|
138939
|
138940
|
138941
|
139628
|
139629
|
139630
|
139631
|
139632
|
139633
|
139634
|
139635
|
139915
|
139916
|
139917
|
139918
|
139919
|
139920
|
139921
|
139922
|
139923