Koha/installer/data/mysql
Owen Leonard d6e1c6ffe6 Bug 22318: Example implementation: OpacNavRight system preference
This patch implements a Koha news system replacement of the OpacNavRight
system preference. The changes to koha-news.tt enable the selection of
"OpacNavRight" as a location for the content. opac-main.pl is modified
to ensure that the user's selected language is passed to the template
for use by the KohaNews plugin.

The database update process takes the contents of Koha's OpacNavRight
system preference and adds it to the Koha news system. The OpacNavRight
system preference is then removed from the database.

When the new entry is added to Koha news, the language is set based on
the top selected language in the "opaclanguages" preference. The entry
is added to "All libraries" without an author, title, or expiration
date.

Note that this patch doesn't change the way OPAC news is displayed. I
think it's best to keep existing markup and code for that since it
handles details like branch selection and RSS.

To test, apply the patch and run the database update.

 - In the staff client go to Tools -> News and confirm that there is now
   an entry with the location "OpacNavRight_en" (assuming an "en"
   English interface).
 - Confirm that the previous contents of OpacNavRight were added
   correctly.
 - Go to Administration -> System preferences -> OPAC and verify that
   the OpacNavRight preference has been removed.
 - In the OPAC, confirm that the correct content is displayed in the
   region previously defined in the OpacNavRight system preference.
 - Test that the language and library-specific nature of news items is
   reflected in the behavior of this content area:
   - Define different text based on language and location. Confirm that
     switching translations and logging in to the OPAC both trigger the
     correct display of different content.

Signed-off-by: Michal Denar <black23@gmail.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-04-18 10:47:03 +00:00
..
atomicupdate Bug 22318: Example implementation: OpacNavRight system preference 2019-04-18 10:47:03 +00:00
de-DE Bug 22095: Replaced dead links with working links 2019-01-17 02:23:27 +00:00
en Bug 21899: Update MARC21 frameworks to Update 27 (November 2018) 2019-04-17 12:25:25 +00:00
es-ES Bug 22095: Replaced dead links with working links 2019-01-17 02:23:27 +00:00
fr-CA Bug 22095: Replaced dead links with working links 2019-01-17 02:23:27 +00:00
fr-FR Bug 20491: Updating the MARC subfield desciption of 952q 2019-01-25 16:11:09 +00:00
it-IT Bug 22095: Replaced dead links with working links 2019-01-17 02:23:27 +00:00
mandatory Bug 20581: Modifications to database schema 2019-02-22 14:31:31 +00:00
nb-NO Bug 21710: Fix typo in atributes in installer 2019-02-15 18:42:48 +00:00
pl-PL Bug 20491: Updating the MARC subfield desciption of 952q 2019-01-25 16:11:09 +00:00
ru-RU Bug 22024: Update translated web installer files with new class splitting rules 2018-12-19 16:32:02 +00:00
uk-UA Bug 21710: Fix typo in atributes in installer 2019-02-15 18:42:48 +00:00
account_offset_types.sql Bug 22521: (QA follow-up) Corrections to tests 2019-04-17 16:49:36 +00:00
audio_alerts.sql
backfill_statistics.pl Bug 13795: Remove occurences of unused columns in code 2019-04-18 10:05:51 +00:00
fix_unclosed_nonaccruing_fines_bug17135.pl
kohastructure.sql Bug 13795: Delete unused columns from statistics table 2019-04-18 10:05:51 +00:00
labels_upgrade.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
patroncards_upgrade.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
sysprefs.sql Bug 22318: Example implementation: OpacNavRight system preference 2019-04-18 10:47:03 +00:00
update22to30.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
updatedatabase.pl Bug 8701: DBRev 18.12.00.056 2019-04-18 10:00:48 +00:00
userflags.sql
userpermissions.sql Bug 20128: Add new permission for new installations 2019-04-17 12:25:26 +00:00