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

--- Comment #4 from Jonathan Druart <[email protected]> 
---
Comment on attachment 45712
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=45712
Bug 15311 - Let libraries set text to display when OpacMaintenance = on

Review of attachment 45712:
 --> 
(http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=15311&attachment=45712)
-----------------------------------------------------------------

It would have been great to use the new table localization and create a new
area in the admin module to let libraries define several values for this text,
depending on the language used.

::: installer/data/mysql/updatedatabase.pl
@@ +11393,5 @@
> +$DBversion = "3.23.00.XXX";
> +if(CheckVersion($DBversion)) {
> +    $dbh->do(q{
> +        INSERT IGNORE INTO systempreferences 
> (variable,value,explanation,options,type)
> +        VALUES ('OpacMaintenanceNotice','','70|10','A user-defined block of 
> HTML to appear on screen when OpacMaintenace is enabled','Textarea')

what is 70|10?
explanation and options don't seem in the correct order.

::: opac/maintenance.pl
@@ +33,5 @@
>  $koha_db_version =~ s/\.//g if defined $koha_db_version;
> +my $maintenance_notice = C4::Context->preference('OpacMaintenanceNotice');
> +
> +$template->param(
> +    maintenance_notice => $maintenance_notice

Don't pass it to the template, use the Koha template plugin to access syspref
values (Koha.Preference)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to