]> git.koha-community.org Git - koha.git/commit
Bug 16371: Quote of the Day (QOTD) - Display in different interfaces
authorOlli-Antti Kivilahti <olli-antti.kivilahti@jns.fi>
Mon, 25 Apr 2016 08:22:04 +0000 (11:22 +0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 13 Aug 2020 08:15:33 +0000 (10:15 +0200)
commit13d9bdc74417f337106070f85332a7ef24331878
tree63d0fe1a677f0619d565b79cb0122d2b3baf950e
parenta923dccab30c2a87cd1f14b60280cf31f8c4f62e
Bug 16371: Quote of the Day (QOTD) - Display in different interfaces

Set 'QuoteOfTheDay'-syspref to 'opac intranet' to allow displaying news in the
opac and the staff client.

Add 'commandline' to allow news in the commandline (where applicable)

Accepts all values accepted by the C4::Context->interface()

Test plan:
1. Set 'QuoteOfTheDay' syspref as 'intranet' or 'opac' or both
2. Check that quote is visible on both mainpages

Prove t/db_dependent/Koha/Quotes.t

Sponsored-by: Koha-Suomi Oy
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Quote.pm
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt
mainpage.pl
opac/opac-main.pl
t/db_dependent/Koha/Quotes.t