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

(-)a/catalogue/showmarc.pl (-2 / +6 lines)
Lines 63-73 if($importid) { Link Here
63
		$xmlrecord = $record->as_xml();
63
		$xmlrecord = $record->as_xml();
64
	} 
64
	} 
65
}
65
}
66
		
66
67
if($view eq 'card') {
67
if($view eq 'card') {
68
69
my $themelang = $template->param('themelang');
70
$themelang =~ s/^\/intranet-tmpl//;
71
68
$xmlrecord = GetXmlBiblio($biblionumber) unless $xmlrecord;
72
$xmlrecord = GetXmlBiblio($biblionumber) unless $xmlrecord;
69
73
70
my $xslfile = C4::Context->config('intrahtdocs')."/prog/en/xslt/compact.xsl";
74
my $xslfile = C4::Context->config('intrahtdocs').$themelang."/xslt/compact.xsl";
71
my $parser = XML::LibXML->new();
75
my $parser = XML::LibXML->new();
72
my $xslt = XML::LibXSLT->new();
76
my $xslt = XML::LibXSLT->new();
73
my $source = $parser->parse_string($xmlrecord);
77
my $source = $parser->parse_string($xmlrecord);
(-)a/opac/opac-showmarc.pl (-3 / +5 lines)
Lines 66-76 if ($importid) { Link Here
66
if ($view eq 'card' || $view eq 'html') {
66
if ($view eq 'card' || $view eq 'html') {
67
    $xmlrecord = GetXmlBiblio($biblionumber) unless $xmlrecord;
67
    $xmlrecord = GetXmlBiblio($biblionumber) unless $xmlrecord;
68
    my $xslfile;
68
    my $xslfile;
69
    my $themelang = $template->param('themelang');
70
    $themelang =~ s/^\/opac-tmpl//;
71
69
    if ($view eq 'card'){
72
    if ($view eq 'card'){
70
	$xslfile = C4::Context->config('opachtdocs')."/prog/en/xslt/compact.xsl";
73
	$xslfile = C4::Context->config('opachtdocs').$themelang."/xslt/compact.xsl";
71
    }
74
    }
72
    else { # must be html
75
    else { # must be html
73
	$xslfile = C4::Context->config('opachtdocs')."/prog/en/xslt/MARC21slim2OPACMARCdetail.xsl";	
76
	$xslfile = C4::Context->config('opachtdocs').$themelang."/xslt/MARC21slim2OPACMARCdetail.xsl";
74
    }
77
    }
75
    my $parser = XML::LibXML->new();
78
    my $parser = XML::LibXML->new();
76
    my $xslt   = XML::LibXSLT->new();
79
    my $xslt   = XML::LibXSLT->new();
77
- 

Return to bug 6972