[Koha-bugs] [Bug 12237] Remove the "horrible hack" in C4::Templates

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 13 10:40:25 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12237

--- Comment #1 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 28201
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28201&action=edit
Bug 12237: Remove the "horrible hack" in C4::Templates

Use C4::Languages::getlanguage() instead of
C4::Templates::_current_language()

Test plan:
1/ Set one of the 4 XSLT sysprefs to 'default'
2/ Go to the corresponding page
3/ Switch language and check that the right XSLT is used
4/ Set the same syspref to something with '{langcode}' in it. For
example:
"../koha-tmpl/opac-tmpl/bootstrap/{langcode}/xslt/UNIMARCslim2OPACDetail.xsl"
5/ Go back to the corresponding page
6/ Switch language and check that the right XSLT is used
7/ Change a compact.xsl for a language (for example
koha-tmpl/intranet-tmpl/prog/fr-FR/xslt/compact.xsl) to be able to see
differences
8/ Go to a biblio detail page in staff interface and click on "MARC
Preview: Show"
9/ Close the popup, switch language and click again on the same link
10/ Check that the correct XSLT is used.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list