Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
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
..
preferences Bug 22318: Example implementation: OpacNavRight system preference 2019-04-18 10:47:03 +00:00
searchengine/elasticsearch Bug 18213: Add language facets to Elasticsearch 2019-03-28 15:57:32 +00:00
additional-fields.tt Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
admin-home.tt Bug 15774: (follow-up) fix rebase issues 2019-03-07 20:37:06 +00:00
aqbudgetperiods.tt
aqbudgets.tt
aqcontract.tt
aqplan.tt
audio_alerts.tt Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
auth_subfields_structure.tt
auth_tag_structure.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
authorised_values.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
authtypes.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
biblio_framework.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
branch_transfer_limits.tt Bug 18584: Our legacy code contains trailing-spaces 2019-04-12 02:01:39 +00:00
branches.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
categories.tt Bug 18011: Enrollment period date on patron category can be set in the past without any error/warning messages 2019-04-16 13:17:32 +00:00
checkmarc.tt
cities.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
classsources.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
clone-rules.tt
columns_settings.tt
currency.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
didyoumean.tt Bug 14457: (QA follow-up) Fix QA script complaints and amend system preference text 2019-04-16 13:17:33 +00:00
edi_accounts.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
edi_ean_accounts.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
fieldmapping.tt
item_circulation_alerts.tt Bug 21672: Switch templates to Bootstrap grid: Various 2019-01-25 17:41:37 +00:00
items_search_field.tt
items_search_fields.tt Bug 19497: Removed title (tooltip) from Edit button in items_search_fields.tt 2019-04-11 13:52:08 +00:00
itemtypes.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
koha2marclinks.tt
library_groups.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
localization.tt
marc_subfields_structure.tt
marctagstructure.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
matching-rules.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
oai_set_mappings.tt
oai_sets.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
overdrive.tt Bug 21646: Clean up Overdrive template 2019-03-29 11:28:23 +00:00
patron-attr-types.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
preferences.tt Bug 21582: Use CodeMirror for *UserJS & *UserCSS 2019-04-12 02:28:17 +00:00
printers.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
share_content.tt
smart-rules.tt Bug 18925: Fix 'Default checkout, hold policy by patron category' block 2019-03-05 20:42:22 +00:00
sms_providers.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
sru_modmapping.tt
sru_modmapping_auth.tt
systempreferences.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
transport-cost-matrix.tt
usage_statistics.tt
z3950servers.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00