Merge branch 'bug_9684' into 3.14-master
This commit is contained in:
commit
3d589018e7
1 changed files with 5 additions and 2 deletions
|
@ -52,10 +52,13 @@ else {
|
||||||
}
|
}
|
||||||
|
|
||||||
if($view eq 'card') {
|
if($view eq 'card') {
|
||||||
my $themelang = '/' . C4::Context->preference("opacthemes") . '/' . C4::Templates::_current_language();
|
my $themelang = '/' . C4::Templates::_current_language();
|
||||||
my $xmlrecord= $importid? $record->as_xml(): GetXmlBiblio($biblionumber);
|
my $xmlrecord= $importid? $record->as_xml(): GetXmlBiblio($biblionumber);
|
||||||
my $xslfile =
|
my $xslfile =
|
||||||
C4::Context->config('intrahtdocs') . $themelang . "/xslt/compact.xsl";
|
C4::Context->config('intrahtdocs') . '/prog' . $themelang . "/xslt/compact.xsl";
|
||||||
|
if ( ! -f $xslfile && $themelang ne '/en' ) {
|
||||||
|
$xslfile=~s#$themelang#/en#;
|
||||||
|
}
|
||||||
my $parser = XML::LibXML->new();
|
my $parser = XML::LibXML->new();
|
||||||
my $xslt = XML::LibXSLT->new();
|
my $xslt = XML::LibXSLT->new();
|
||||||
my $source = $parser->parse_string($xmlrecord);
|
my $source = $parser->parse_string($xmlrecord);
|
||||||
|
|
Loading…
Reference in a new issue