Bugzilla – Attachment 68158 Details for
Bug 19439
Some error responses from opac/unapi get lost in eval
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19439: (Follow-up) Remove four spaces from lines 133-149
Bug-19439-Follow-up-Remove-four-spaces-from-lines-.patch (text/plain), 2.09 KB, created by
Katrin Fischer
on 2017-10-15 08:29:44 UTC
(
hide
)
Description:
Bug 19439: (Follow-up) Remove four spaces from lines 133-149
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2017-10-15 08:29:44 UTC
Size:
2.09 KB
patch
obsolete
>From 686dcfe21167c9ff7cd76ec2c8a5c6a6bf1e7ad0 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 10 Oct 2017 15:50:24 +0200 >Subject: [PATCH] Bug 19439: (Follow-up) Remove four spaces from lines 133-149 > >Speaks for itself. No test plan. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > opac/unapi | 34 +++++++++++++++++----------------- > 1 file changed, 17 insertions(+), 17 deletions(-) > >diff --git a/opac/unapi b/opac/unapi >index b608210..9202683 100755 >--- a/opac/unapi >+++ b/opac/unapi >@@ -130,23 +130,23 @@ if (not defined $format) { > > my $content; > >- my $marcxml = GetXmlBiblio($biblionumber); >- unless (defined $marcxml) { >- # no bib, so 404 >- print $cgi->header( -status => '404 record not found'); >- exit 0; >- } >- >- my $xslt_file = get_xslt_file( $format, $format_to_stylesheet_map, $format_info ); >- unless( defined $xslt_file ) { >- print $cgi->header( -status => '406 invalid format requested' ); >- exit 0; >- } >- my $xslt_engine = Koha::XSLT_Handler->new; >- $content = $xslt_engine->transform({ >- xml => $marcxml, >- file => $xslt_file, >- }); >+ my $marcxml = GetXmlBiblio($biblionumber); >+ unless (defined $marcxml) { >+ # no bib, so 404 >+ print $cgi->header( -status => '404 record not found'); >+ exit 0; >+ } >+ >+ my $xslt_file = get_xslt_file( $format, $format_to_stylesheet_map, $format_info ); >+ unless( defined $xslt_file ) { >+ print $cgi->header( -status => '406 invalid format requested' ); >+ exit 0; >+ } >+ my $xslt_engine = Koha::XSLT_Handler->new; >+ $content = $xslt_engine->transform({ >+ xml => $marcxml, >+ file => $xslt_file, >+ }); > > if( !defined $content || $xslt_engine->err ) { > print $cgi->header( -status => '500 internal error' ); >-- >2.1.4
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 19439
:
67872
|
67873
|
68157
|
68158
|
69623
|
69624
|
69625