Koha-clms/Koha/Template/Plugin
Owen Leonard cb83128f62 Bug 22318: Extend Koha news feature to include other content areas
This patch lays the groundwork for using the Koha news tool to replace
OPAC system preferences which embed HTML content in the Koha interface.
This will allow multiple translations of these content blocks to be
created.

This adds a new template plugin, KohaNews. It has a single subroutine,
get(), which takes three parameters:

 - "location" -- the area of the template where the content will appear.
   This will correspond to the system preference it replaces:
   OpacMainUserBlock, OpacNavRight, etc.
 - "lang" -- the user's currently-selected language.
 - "library" -- the user's home library (if they are logged in)

A new "koha_news_block" block is added to the OPAC templates'
html_helpers include. The content area is activated in the template
using this syntax:

[% PROCESS koha_news_block news => KohaNews.get( location =>
"OpacNavRight", lang => news_lang, library => branchcode ) %]

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

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
..
Asset.pm Bug 22451: Make Asset plugin use Koha::version instead of version from db 2019-04-16 13:17:32 +00:00
AudioAlerts.pm
…
AuthorisedValues.pm Bug 21593: Remove GROUP BY from GetAuthValueDropbox 2018-10-18 11:54:25 +00:00
Biblio.pm
…
Borrowers.pm
…
Branches.pm Bug 22688: (QA follow-up) Use search_params as all() does 2019-04-16 13:17:32 +00:00
Cache.pm
…
Categories.pm Bug 21890: (QA follow-up) Use List::Util::any 2019-04-12 02:32:04 +00:00
CirculationRules.pm Bug 18925: Fix 'Default checkout, hold policy by patron category' block 2019-03-05 20:42:22 +00:00
ColumnsSettings.pm
…
HtmlTags.pm
…
I18N.pm Bug 15395: Make QA test script happy 2018-11-08 15:55:52 +00:00
ItemTypes.pm
…
Koha.pm
…
KohaDates.pm
…
KohaNews.pm Bug 22318: Extend Koha news feature to include other content areas 2019-04-18 10:47:03 +00:00
KohaPlugins.pm Bug 21352: Allow plugins to add CSS and Javascript to Staff interface 2018-10-03 17:45:57 +00:00
KohaSpan.pm Bug 15707: (QA follow-up) Allow object names to be styled without impeding translation 2018-02-12 15:41:08 -03:00
Languages.pm Bug 18213: Add Template plugin and fix for C4/Languages 2019-03-28 15:57:32 +00:00
Price.pm Bug 4078: Pass with_symbol to module 2018-03-23 11:45:38 -03:00
Remove_MARC_punctuation.pm Bug 19578: Remove MARC punctuation in notices (TT syntax) 2018-04-04 15:45:43 -03:00
To.pm Bug 19655: Make To.json escape doesn't escape newlines to create valid JSON 2017-11-26 12:59:04 -03:00
raw.pm Bug 13618: Add POD to raw.pm 2018-08-17 16:14:14 +00:00