]> git.koha-community.org Git - koha.git/commit
Bug 23795: Convert opaccredits system preference to news block
authorOwen Leonard <oleonard@myacpl.org>
Wed, 11 Dec 2019 17:03:01 +0000 (17:03 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 30 Jul 2020 17:50:04 +0000 (17:50 +0000)
commit7b547576fb1dff6ba53e2c358b15f46bfb82cc05
tree0db1cd586d01d2e4bfb9cfe567ec169cc93db4e5
parentd6128b6af130759f0a5838ec58692319c6c3fd9a
Bug 23795: Convert opaccredits system preference to news block

This patch builds on Bug 22318 to move the opaccredits system
preference into the Koha news system, making it possible to have
language- and library-specific content.

To test you should have some content in the opaccredits system
preference. Apply the patch and run the database update process.

 - Go to the OPAC and confirm that the content which was previously in
   the opaccredits system preference now displays correctly where
   it was before.
 - In the staff client, go to Tools -> News and verify that the content
   from opaccredits is now stored in news items. There should be
   one entry for each of the enabled translations in your system, for
   instance 'opaccredits_en', 'opaccredits_fr-FR',
   'opaccredits_cs-CZ'
 - Go to Administration -> System preferences and confirm that the
   opaccredits preference has been removed.

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit c9eb2be381bf9b6848b14bd374ba004f41198ed0)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Auth.pm
installer/data/mysql/atomicupdate/bug_23795-move-opaccredits-to-news.perl [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc