@@ -, +, @@ --- catalogue/showmarc.pl | 8 ++++++-- opac/opac-showmarc.pl | 7 +++++-- 2 files changed, 11 insertions(+), 4 deletions(-) --- a/catalogue/showmarc.pl +++ a/catalogue/showmarc.pl @@ -63,11 +63,15 @@ if($importid) { $xmlrecord = $record->as_xml(); } } - + if($view eq 'card') { + +my $themelang = $template->param('themelang'); +$themelang =~ s/^\/intranet-tmpl//; + $xmlrecord = GetXmlBiblio($biblionumber) unless $xmlrecord; -my $xslfile = C4::Context->config('intrahtdocs')."/prog/en/xslt/compact.xsl"; +my $xslfile = C4::Context->config('intrahtdocs').$themelang."/xslt/compact.xsl"; my $parser = XML::LibXML->new(); my $xslt = XML::LibXSLT->new(); my $source = $parser->parse_string($xmlrecord); --- a/opac/opac-showmarc.pl +++ a/opac/opac-showmarc.pl @@ -66,11 +66,14 @@ if ($importid) { if ($view eq 'card' || $view eq 'html') { $xmlrecord = GetXmlBiblio($biblionumber) unless $xmlrecord; my $xslfile; + my $themelang = $template->param('themelang'); + $themelang =~ s/^\/opac-tmpl//; + if ($view eq 'card'){ - $xslfile = C4::Context->config('opachtdocs')."/prog/en/xslt/compact.xsl"; + $xslfile = C4::Context->config('opachtdocs').$themelang."/xslt/compact.xsl"; } else { # must be html - $xslfile = C4::Context->config('opachtdocs')."/prog/en/xslt/MARC21slim2OPACMARCdetail.xsl"; + $xslfile = C4::Context->config('opachtdocs').$themelang."/xslt/MARC21slim2OPACMARCdetail.xsl"; } my $parser = XML::LibXML->new(); my $xslt = XML::LibXSLT->new(); --