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:
parent
2fceb4da7a
commit
2403255d0b
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue