Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences
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
..
acquisitions.pref Bug 18736: Add OrderPriceRounding syspref 2019-03-21 16:27:09 +00:00
admin.pref Bug 19893: Remove serialization format setting 2018-11-16 11:04:57 +00:00
authorities.pref Bug 12258: (QA follow-up) Add some missing rrrrrrs 2018-11-08 02:18:48 +00:00
cataloguing.pref Bug 21582: Use CodeMirror for *UserJS & *UserCSS 2019-04-12 02:28:17 +00:00
circulation.pref Bug 17171: Add a syspref to allow currently issued items to be issued to a new patron without staff confirmation 2019-04-17 12:25:25 +00:00
enhanced_content.pref Bug 22030: Use preference to determine username sent to overdrive 2019-01-08 13:59:46 +00:00
i18n_l10n.pref
local_use.pref
logs.pref Bug 20750: Allow logging of arbitrary actions 2019-03-15 19:07:08 +00:00
opac.pref Bug 22318: Example implementation: OpacNavRight system preference 2019-04-18 10:47:03 +00:00
patrons.pref Bug 21336: (follow-up) Fix last line after PatronRemovalDelay in pref file 2019-04-17 12:25:24 +00:00
searching.pref Bug 14457: (QA follow-up) Fix QA script complaints and amend system preference text 2019-04-16 13:17:33 +00:00
serials.pref
staff_client.pref Bug 22695: Remove non-XSLT search results view from the staff client 2019-04-16 13:17:32 +00:00
tools.pref Bug 19722: Add MaxItemsToDisplayForBatchMod systempreference 2019-03-28 18:06:22 +00:00
web_services.pref Bug 22196: Clean up Mana KB administration template 2019-02-04 14:53:59 +00:00