After following advice from bug 8597 and bug 8633 ("perl translate create nb-NO; perl translate install nb-NO") I managed to get the CCSR theme working. Then I switched from English to Norwegian and initially things were looking good. Until I did a search and got this error: Software error: Could not create file parser context for file "/home/magnus/kohahead/koha-tmpl/opac-tmpl/ccsr/nb-NO/xslt/NORMARCslim2OPACResults.xsl": No such file or directory at /home/magnus/kohahead/C4/XSLT.pm line 218 Looks like the XSLT was not copied correctly?
Created attachment 12937 [details] [review] Bug 8947: XSLT fallback logic backwards The logic for the XSLT fallback was backwards, which meant that non-English installations of the CCSR theme were unable to use XSLT stylesheets. This patch corrects the logic. To test: 1) Switch to the ccsr OPAC theme. 2) Switch to a language other than English for the OPAC. 3) Turn on the default XSLT stylesheets for the OPAC. 4) Do a search or view a record that would result in something being displayed with XSLT. This will work after the patch, but not before.
Created attachment 12938 [details] [review] Bug 8947: [SIGNED-OFF] XSLT fallback logic backwards The logic for the XSLT fallback was backwards, which meant that non-English installations of the CCSR theme were unable to use XSLT stylesheets. This patch corrects the logic. To test: 1) Switch to the ccsr OPAC theme. 2) Switch to a language other than English for the OPAC. 3) Turn on the default XSLT stylesheets for the OPAC. 4) Do a search or view a record that would result in something being displayed with XSLT. This will work after the patch, but not before. Signed-off-by: Magnus Enger <magnus@enger.priv.no> Works as advertised!
QA comment: * tiny patch (just 3 ! differences !) * fixes a bug nothing to add, passed QA
Patch pushed to master. It's probably usefull for 3.8, even if the symptom is visible only with CCSR theme and 3.10
Released in 3.10.0