Bug 8622: Fix theme fallback
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Sun, 12 Aug 2012 23:32:18 +0000 (19:32 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 5 Sep 2012 09:39:14 +0000 (11:39 +0200)
commit33113e69c0eb2faccceb917ce19e26225259df8d
tree5ae282a183fd2185b9e9f22dca11ebc8e6dd619b
parent01309211e9563b48dcd2944d90d277493bd912dd
Bug 8622: Fix theme fallback

This patch does the following:
1) Enables fallback for includes between different themes and different
   languages (with the exact same precedence as for .tt files)
2) Enable fallback for XSLT files between different themes and different
   languages (again, same precedence)
3) Change the semantics of the TT [% themelang %] variable so that it always
   refers to the preferred theme and language, rather than the fallback
   theme/language. As a result, all themes must include all javascript,
   css and image resources they use.

Note that these changes actually have no impact whatsoever on an
installation where the default (prog) themes are in use.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Output.pm
C4/Reports/Guided.pm
C4/Templates.pm
C4/XSLT.pm
catalogue/moredetail.pl
edithelp.pl
opac/opac-main.pl