Hello We've been looking around Koha 1.9.2 to add our own template. In the system preferences tab there is a template field. Surprisingly, changing its value doesn't change anything. We had copied the whole 'default' directory to a 'test' directory then changed the 'default' value to 'test' in Koha. The template name seems to be returned by the Koha C4 perl module so we took a look at it. It ends to a $theme variable which seems to get the name of the template from the database (Output.pm file line 91). $theme is generated by a 'pathtotemplate' function (located in Output.pm line 206) but this function seems to be bugged. To get $theme it calls Context::preference with a "theme" parameter (line 221). Preference executes the following SQL statement : "SELECT value FROM systempreferences WHERE variable='themes' LIMIT 1;" Our "systempreferences" table doesn't have a themes variable but a template one. Changing the parameter from "theme" to "template" doesn't change anything. Is there another place where the template parameter is re-defined or is it a bug ? Thank you Jerome
Hey Jerome, The problem with the is that the gettemplate subroutine in C4/Output.pm is only set up to work with the OPAC themes, and the intranet always ends up getting the default-en theme. I will have it fixed in CVS sometime today. Mike -- Mike Hansen <mwhansen@hmc.edu>
Hello all, The theme/language templating for the intranet is now fixed in CVS. Mike -- Mike Hansen <mwhansen@hmc.edu>
participants (2)
-
Jerome Vizcaino -
Mike Hansen