From 336db67b9570d6113f4bbb5dde6060b2e2c4b7ec Mon Sep 17 00:00:00 2001 From: Marcel de Rooy 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 Signed-off-by: Katrin Fischer Signed-off-by: Josef Moravec --- 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