diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 29d026eb9c..1073a2d62d 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -53,7 +53,8 @@ C4::XSLT - Functions for displaying XSLT-generated content =cut sub transformMARCXML4XSLT { - my ($biblionumber, $record) = @_; + my ($biblionumber, $orig_record) = @_; + my $record = $orig_record->clone(); # not updating original record; this may be unnecessarily paranoid my $frameworkcode = GetFrameworkCode($biblionumber); my $tagslib = &GetMarcStructure(1,$frameworkcode); my @fields; diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index c29853f96a..e697d3b1b3 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -62,8 +62,8 @@ my $record = GetMarcBiblio($biblionumber); $template->param( biblionumber => $biblionumber ); # XSLT processing of some stuff if (C4::Context->preference("XSLTDetailsDisplay") ) { - my $newxmlrecord = XSLTParse4Display($biblionumber,$record,'Detail'); - $template->param('XSLTBloc' => $newxmlrecord); + $template->param( + 'XSLTBloc' => XSLTParse4Display($biblionumber, $record, 'Detail') ); } # change back when ive fixed request.pl