@@ -, +, @@
---
C4/XSLT.pm | 6 ++++++
.../prog/en/modules/admin/preferences/opac.pref | 4 ++--
.../en/modules/admin/preferences/staff_client.pref | 4 ++--
3 files changed, 10 insertions(+), 4 deletions(-)
--- a/C4/XSLT.pm
+++ a/C4/XSLT.pm
@@ -170,6 +170,12 @@ sub XSLTParse4Display {
"slim2OPACResults.xsl";
}
}
+
+ if ( $xslfilename =~ m/{langcode}/ ) {
+ my $lang = C4::Templates::_current_language;
+ $xslfilename =~ s/{langcode}/$lang/;
+ }
+
# grab the XML, run it through our stylesheet, push it out to the browser
my $record = transformMARCXML4XSLT($biblionumber, $orig_record);
#return $record->as_formatted();
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
@@ -51,12 +51,12 @@ OPAC:
- 'Display OPAC results using XSLT stylesheet at: '
- pref: OPACXSLTResultsDisplay
class: file
- - '
Options:
- leave empty for "no xslt"
- enter "default" for the default one
- put a path to define a xslt file
- put an URL for an external specific stylesheet.'
+ - '
Options:
- leave empty for "no xslt"
- enter "default" for the default one
- put a path to define a xslt file
- put an URL for an external specific stylesheet.
{langcode} will be replaced with current interface language'
-
- 'Display OPAC details using XSLT stylesheet at: '
- pref: OPACXSLTDetailsDisplay
class: file
- - '
Options:
- leave empty for "no xslt"
- enter "default" for the default one
- put a path to define a xslt file
- put an URL for an external specific stylesheet.'
+ - '
Options:
- leave empty for "no xslt"
- enter "default" for the default one
- put a path to define a xslt file
- put an URL for an external specific stylesheet.
{langcode} will be replaced with current interface language'
-
- On pages displayed with XSLT stylesheets on the OPAC,
- pref: DisplayOPACiconsXSLT
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref
@@ -54,12 +54,12 @@ Staff Client:
- 'Display results in the staff client using XSLT stylesheet at: '
- pref: XSLTResultsDisplay
class: file
- - '
Options:
- leave empty for "no xslt"
- enter "default" for the default one
- put a path to define a xslt file
- put an URL for an external specific stylesheet.'
+ - '
Options:
- leave empty for "no xslt"
- enter "default" for the default one
- put a path to define a xslt file
- put an URL for an external specific stylesheet.
{langcode} will be replaced with current interface language'
-
- 'Display details in the staff client using XSLT stylesheet at: '
- pref: XSLTDetailsDisplay
class: file
- - '
Options:
- leave empty for "no xslt"
- enter "default" for the default one
- put a path to define a xslt file
- put an URL for an external specific stylesheet.'
+ - '
Options:
- leave empty for "no xslt"
- enter "default" for the default one
- put a path to define a xslt file
- put an URL for an external specific stylesheet.
{langcode} will be replaced with current interface language'
-
- Use the Yahoo UI libraries
- pref: yuipath
--