Main Koha release repository https://koha-community.org
Find a file
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
acqui
admin Bug 10796: Handle can_change_password on the staff interface 2019-04-12 02:32:07 +00:00
api/v1 Bug 21336: Fix the API 2019-04-18 09:49:57 +00:00
authorities
basket
C4 Bug 21957: Add a flag to ModBiblio to avoid linking auths if called from linker 2019-04-18 10:02:03 +00:00
catalogue
cataloguing Bug 20128: Add permission for advanced cataloging editor 2019-04-17 12:25:26 +00:00
circ Bug 22521: Update fines handling to use accountline.status 2019-04-17 16:49:36 +00:00
clubs
course_reserves
debian
docs Bug 8701: Remove links to OpacHiddenItems.txt in favor of wiki page 2019-04-18 09:58:36 +00:00
errors
etc
ill
installer Bug 13795: Remove occurences of unused columns in code 2019-04-18 10:05:51 +00:00
Koha Bug 22318: Extend Koha news feature to include other content areas 2019-04-18 10:47:03 +00:00
koha-tmpl Bug 22318: Extend Koha news feature to include other content areas 2019-04-18 10:47:03 +00:00
labels
members Bug 22139: Fields of ACCTDETAILS email not populating 2019-04-18 09:56:43 +00:00
misc Bug 21957: Add a flag to ModBiblio to avoid linking auths if called from linker 2019-04-18 10:02:03 +00:00
offline_circ
opac Bug 22521: Update UI to use accountlines.status 2019-04-17 16:49:36 +00:00
OpenILS
patron_lists
patroncards
plugins
reports Bug 22090: Add missing information to cash register CSV file 2019-04-16 13:17:32 +00:00
reserve
reviews
rotating_collections
serials
services
skel
suggestion
svc
t Bug 21957: Add a flag to ModBiblio to avoid linking auths if called from linker 2019-04-18 10:02:03 +00:00
tags
test
tmp/modified_authorities
tools Bug 22069: (follow-up) fix patorns type for patrons 2019-04-16 13:17:32 +00:00
virtualshelves
xt
.editorconfig
.gitignore
.htaccess
.mailmap
.scss-lint.yml
about.pl
changelanguage.pl
fix-perl-path.PL
gulpfile.js
help.pl
INSTALL
Koha.pm Bug 8701: DBRev 18.12.00.056 2019-04-18 10:00:48 +00:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl
Makefile.PL
MANIFEST.SKIP
package.json
README
README.md
README.robots
rewrite-config.PL
yarn.lock

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: This is a synced mirror of the official Koha repo.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo