@@ -, +, @@ --- C4/XSLT.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/C4/XSLT.pm +++ a/C4/XSLT.pm @@ -75,7 +75,7 @@ sub transformMARCXML4XSLT { my $marcflavour = C4::Context->preference('marcflavour'); # FIXME: This should properly use the cache in the future, but is here to save on performance where possible - $av = getAuthorisedValues4MARCSubfields("") unless $av; + $av = getAuthorisedValues4MARCSubfields($frameworkcode) unless $av; $branches = { map { $_->branchcode => $_->branchname } Koha::Libraries->search({}, { order_by => 'branchname' })->as_list } unless $branches; $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } } unless $itemtypes; @@ -289,8 +289,7 @@ sub XSLTParse4Display { my $xslfilename = get_xsl_filename( $xslsyspref); # grab the XML, run it through our stylesheet, push it out to the browser - my $authorised_values = getAuthorisedValues4MARCSubfields(""); - my $record = transformMARCXML4XSLT($biblionumber, $orig_record, undef, $branches, $itemtypes, $authorised_values ); + my $record = transformMARCXML4XSLT($biblionumber, $orig_record, undef, $branches, $itemtypes); my $itemsxml; if ( $xslsyspref eq "OPACXSLTDetailsDisplay" || $xslsyspref eq "XSLTDetailsDisplay" || $xslsyspref eq "XSLTResultsDisplay" ) { $itemsxml = ""; #We don't use XSLT for items display on these pages --