@@ -, +, @@
---
installer/data/mysql/updatedatabase.pl | 6 ++++--
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
--- a/installer/data/mysql/updatedatabase.pl
+++ a/installer/data/mysql/updatedatabase.pl
@@ -22576,15 +22576,17 @@ if( CheckVersion( $DBversion ) ) {
$DBversion = '20.06.00.023';
if( CheckVersion( $DBversion ) ) {
+ my $QuoteOfTheDay = C4::Context->preference('QuoteOfTheDay');
$dbh->do( q|
UPDATE systempreferences
- SET value = '',
- options = 'intranet,opac',
+ SET options = 'intranet,opac',
explanation = 'Enable or disable display of Quote of the Day on the OPAC and staff interface home page',
type = 'multiple'
WHERE variable = 'QuoteOfTheDay'
| );
+ C4::Context->set_preference('QuoteOfTheDay', $QuoteOfTheDay ? 'opac' : '');
+
NewVersion( $DBversion, 16371, "Quote of the Day (QOTD) for the staff interface " );
}
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt
@@ -257,7 +257,7 @@
[% END %]
[% IF at_least_one_library_not_available_for_pickup %]
-
Note: Library policy does not allow hold/pickup of an item available locally. Please come to the library to retrieve these items
+
Note: Library policy does not allow hold/pickup of an item available locally. Please come to the library to retrieve these items
[% END %]
[% END # / UNLESS bibitemloo.holdable %]
--