View | Details | Raw Unified | Return to bug 9684
Collapse All | Expand All

(-)a/catalogue/showmarc.pl (-3 / +5 lines)
Lines 52-61 else { Link Here
52
}
52
}
53
53
54
if($view eq 'card') {
54
if($view eq 'card') {
55
    my $themelang = '/' . C4::Context->preference("opacthemes") .  '/' . C4::Templates::_current_language();
55
    my $themelang =  '/' . C4::Templates::_current_language();
56
    my $xmlrecord= $importid? $record->as_xml(): GetXmlBiblio($biblionumber);
56
    my $xmlrecord= $importid? $record->as_xml(): GetXmlBiblio($biblionumber);
57
    my $xslfile =
57
    my $xslfile =
58
      C4::Context->config('intrahtdocs') . $themelang . "/xslt/compact.xsl";
58
      C4::Context->config('intrahtdocs') . '/prog' . $themelang . "/xslt/compact.xsl";
59
    if ( ! -f $xslfile && $themelang ne '/en' ) {
60
        $xslfile=~s#$themelang#/en#;
61
    }
59
    my $parser       = XML::LibXML->new();
62
    my $parser       = XML::LibXML->new();
60
    my $xslt         = XML::LibXSLT->new();
63
    my $xslt         = XML::LibXSLT->new();
61
    my $source       = $parser->parse_string($xmlrecord);
64
    my $source       = $parser->parse_string($xmlrecord);
62
- 

Return to bug 9684