Modify how XSLT stylesheet are choosen
depending on 'marcflavour' syspref.
DOCUMENTATION: XSLTResultsDisplay and XSLTDetailsDisplay
sysprefs aren't MARC21-only anymore.
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
=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;
$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