@@ -, +, @@ --- C4/XSLT.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) --- a/C4/XSLT.pm +++ a/C4/XSLT.pm @@ -38,7 +38,7 @@ use Encode; use vars qw(@ISA @EXPORT); -my $engine; #XSLT Handler object +my $xslth; #XSLT Handler object my %authval_per_framework; # Cache for tagfield-tagsubfield to decode per framework. # Should be preferably be placed in Koha-core... @@ -48,8 +48,9 @@ BEGIN { @ISA = qw(Exporter); @EXPORT = qw( &XSLTParse4Display + &engine ); - $engine=Koha::XSLT_Handler->new( { do_not_return_source => 1 } ); + $xslth=Koha::XSLT_Handler->new( { do_not_return_source => 1 } ); } =head1 NAME @@ -255,7 +256,7 @@ sub XSLTParse4Display { #If the xslt should fail, we will return undef (old behavior was #raw MARC) #Note that we did set do_not_return_source at object construction - return $engine->transform($xmlrecord, $xslfilename ); #file or URL + return engine()->transform($xmlrecord, $xslfilename ); #file or URL } =head2 buildKohaItemsNamespace @@ -349,7 +350,7 @@ Returns reference to XSLT handler object. =cut sub engine { - return $engine; + return $xslth; } 1; --