Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules
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
..
clubs
errors
sci Bug 22274: (follow-up) Use one CSS file for SCO and SCI 2019-04-17 10:24:26 +00:00
sco Bug 22538: Add a noticeable alert about waiting holds 2019-04-17 12:25:25 +00:00
svc
text
ilsdi.tt Bug 21832: add is_expired to ILS-DI example 2019-03-13 03:49:50 +00:00
maintenance.tt
opac-account-pay-error.tt
opac-account.tt Bug 22521: Update UI to use accountlines.status 2019-04-17 16:49:36 +00:00
opac-addbybiblionumber.tt
opac-advsearch.tt Bug 22154: Fix search for Braille from Advanced search page 2019-04-16 13:17:33 +00:00
opac-alert-subscribe.tt
opac-auth-detail.tt Bug 21871: (QA follow-up) Use Koha.Preference in template 2019-01-30 12:12:21 +00:00
opac-auth-MARCdetail.tt Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
opac-auth.tt Bug 21890: Allow restricting password resets by patron category 2019-04-12 02:32:03 +00:00
opac-authorities-home.tt
opac-authoritiessearchresultlist.tt
opac-basket.tt Bug 22422: improve item location display with class "shelvingloc" 2019-03-11 10:40:32 +00:00
opac-blocked.tt
opac-browser.tt
opac-course-details.tt Bug 22624: Show OPAC description for authorised values in OPAC 2019-04-11 13:34:09 +00:00
opac-course-reserves.tt Bug 22501: OPAC course reserves notes should allow html links 2019-04-12 01:40:53 +00:00
opac-detail.tt Bug 22624: Show OPAC description for authorised values in OPAC 2019-04-11 13:34:09 +00:00
opac-discharge.tt
opac-downloadcart.tt
opac-downloadshelf.tt
opac-full-serial-issues.tt
opac-ics.tt
opac-idref.tt
opac-illrequests.tt Bug 20581: Fix display of status alias in OPAC 2019-02-22 14:31:31 +00:00
opac-imageviewer.tt
opac-ISBDdetail.tt
opac-issue-note.tt
opac-main.tt Bug 22318: Example implementation: OpacNavRight system preference 2019-04-18 10:47:03 +00:00
opac-MARCdetail.tt Bug 22058: Fix display of empty table cells in OPAC MARC view holdings 2019-01-18 20:17:20 +00:00
opac-memberentry-update-submitted.tt
opac-memberentry.tt Bug 22646: Fix use of PrivacyPolicyURL 2019-04-10 20:10:55 +00:00
opac-messaging.tt Bug 22594: Validate SMS messaging numbers using the E.164 format 2019-04-12 02:23:54 +00:00
opac-mymessages.tt
opac-news-rss.tt Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
opac-opensearch.tt Bug 21526: Fix search result pages (url vs uri vs raw) 2018-11-12 16:35:44 -03:00
opac-overdrive-search.tt Bug 22432: Star ratings plugin replacement missing from a couple pages 2019-03-23 08:52:03 +00:00
opac-passwd.tt Bug 22576: OPAC password text refresh 2019-04-17 12:25:24 +00:00
opac-password-recovery.tt Bug 10796: (QA follow-up) Changing password recovery verbiage for users who are disallowed online password resets 2019-04-12 02:32:08 +00:00
opac-patron-consent.tt
opac-privacy.tt
opac-readingrecord.tt Bug 11969: Show patrons star rating on their reading history 2019-04-17 12:25:25 +00:00
opac-recordedbooks-search.tt Bug 22432: Star ratings plugin replacement missing from a couple pages 2019-03-23 08:52:03 +00:00
opac-registration-confirmation.tt Bug 10796: Use $category->effective_change_password in the OPAC 2019-04-12 02:32:07 +00:00
opac-registration-email-sent.tt
opac-registration-invalid.tt
opac-request-article.tt Bug 22102: Markup fixes for OPAC article request page 2019-01-28 14:47:58 +00:00
opac-reserve.tt Bug 22688: (QA follow-up) Use search_params as all() does 2019-04-16 13:17:32 +00:00
opac-restrictedpage.tt
opac-results-grouped.tt Bug 22422: improve item location display with class "shelvingloc" 2019-03-11 10:40:32 +00:00
opac-results.tt Bug 11969: Show patrons star rating on their reading history 2019-04-17 12:25:25 +00:00
opac-retrieve-file.tt
opac-review.tt
opac-routing-lists.tt
opac-search-history.tt Bug 22568: Replace RSS icon in the OPAC with Font Awesome 2019-03-23 09:40:29 +00:00
opac-sendbasket.tt
opac-sendbasketform.tt
opac-sendshelf.tt
opac-sendshelfform.tt
opac-serial-issues.tt Bug 21947: Address other misordered FILTER lines 2018-12-11 20:47:18 +00:00
opac-shareshelf.tt
opac-shelves-rss.tt
opac-shelves.tt Bug 22568: Replace RSS icon in the OPAC with Font Awesome 2019-03-23 09:40:29 +00:00
opac-showmarc.tt
opac-showreviews-rss.tt Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
opac-showreviews.tt Bug 22568: Replace RSS icon in the OPAC with Font Awesome 2019-03-23 09:40:29 +00:00
opac-suggestions.tt Bug 22550: OPAC suggestion form doesn't require mandatory fields 2019-03-27 17:53:41 +00:00
opac-tags.tt
opac-tags_subject.tt
opac-topissues.tt
opac-user.tt Bug 22588: Simplify getting fines information in opac and selfcheckout 2019-04-16 13:17:33 +00:00