Bugzilla – Attachment 5053 Details for
Bug 6747
Additional check in opac-export
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
patch.txt (text/plain), 1.17 KB, created by
Marcel de Rooy
on 2011-08-18 10:44:31 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2011-08-18 10:44:31 UTC
Size:
1.17 KB
patch
obsolete
>From d8277dcb78b81f753adbb84531d22e65f776dbae Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 18 Aug 2011 12:32:34 +0200 >Subject: [PATCH] 6747 Additional check in opac-export >Content-Type: text/plain; charset="utf-8" > >If GetMarcBiblio function returns undef, the opac-export script does not handle >it properly. >Also typo corrected. >--- > opac/opac-export.pl | 8 +++++--- > 1 files changed, 5 insertions(+), 3 deletions(-) > >diff --git a/opac/opac-export.pl b/opac/opac-export.pl >index e8f7ede..849300c 100755 >--- a/opac/opac-export.pl >+++ b/opac/opac-export.pl >@@ -40,8 +40,10 @@ if ($op eq "export") { > if ($biblionumber){ > > my $marc = GetMarcBiblio($biblionumber, 1); >- >- if ($format =~ /endnote/) { >+ if(!$marc) { >+ $error="Record could not be found!"; >+ } >+ elsif ($format =~ /endnote/) { > $marc = marc2endnote($marc); > $format = 'endnote'; > } >@@ -75,7 +77,7 @@ if ($op eq "export") { > if ($error){ > print $query->header(); > print $query->start_html(); >- print "<h1>An error occured </h1>"; >+ print "<h1>An error occurred </h1>"; > print $error; > print $query->end_html(); > } >-- >1.6.0.6 >
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 6747
:
5053
|
5083
|
5120