Bug 3213 - UNIMARC/MARC21 selection

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>
This commit is contained in:
Frédéric Demians 2009-05-11 13:41:49 +02:00 committed by Henri-Damien LAURENT
parent 2fceb4da7a
commit 2403255d0b
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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