Bugzilla – Attachment 131864 Details for
Bug 29307
marc record fetched twice in detail.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29307: Remove unecessary marc record fetch on detail.pl
Bug-29307-Remove-unecessary-marc-record-fetch-on-d.patch (text/plain), 1.12 KB, created by
Jonathan Druart
on 2022-03-18 09:37:09 UTC
(
hide
)
Description:
Bug 29307: Remove unecessary marc record fetch on detail.pl
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-03-18 09:37:09 UTC
Size:
1.12 KB
patch
obsolete
>From cea4a5e0cc34afd0c8a9198c00bc4141aa450fef Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 22 Oct 2021 13:42:34 +0200 >Subject: [PATCH] Bug 29307: Remove unecessary marc record fetch on detail.pl > >We were fetching the MARC::Record twice here. > >Signed-off-by: David Nind <david@davidnind.com> >--- > catalogue/detail.pl | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/catalogue/detail.pl b/catalogue/detail.pl >index e11e8d15671..1ba419eb3ab 100755 >--- a/catalogue/detail.pl >+++ b/catalogue/detail.pl >@@ -84,10 +84,12 @@ if ( C4::Context->config('enable_plugins') ) { > > my $biblionumber = $query->param('biblionumber'); > $biblionumber = HTML::Entities::encode($biblionumber); >-my $record = GetMarcBiblio({ biblionumber => $biblionumber }); > my $biblio = Koha::Biblios->find( $biblionumber ); > $template->param( 'biblio', $biblio ); > >+my $record = eval { $biblio->metadata->record }; >+$template->param( decoding_error => $@ ); >+ > if ( not defined $record ) { > # biblionumber invalid -> report and exit > $template->param( unknownbiblionumber => 1, >-- >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 29307
:
126749
|
126791
| 131864