[Koha-bugs] [Bug 22318] New: Extend Koha news feature to include other content areas
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Feb 12 18:01:57 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22318
Bug ID: 22318
Summary: Extend Koha news feature to include other content
areas
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Tools
Assignee: koha-bugs at lists.koha-community.org
Reporter: oleonard at myacpl.org
QA Contact: testopia at bugs.koha-community.org
Target Milestone: ---
There are many content areas in Koha where we currently use a single system
preference to define a block of HTML which is embedded in the OPAC or Staff
Client. Using system preferences for this requires that we either use only one
language for the content or we use a convoluted system of CSS hiding/showing
based on language.
We already have a system in place for handling this better: The Koha news
feature. We could add additional "display locations" for the various system
preferences which could be migrated here: OpacNavRight, opacheader,
OpacMainUserBlock, OPACMySummaryNote, OpacNav, OpacNavBottom, etc.
This would allow libraries to define both language-specific and
library-specific content for these areas of the interface. Being able to define
start and end dates for content display would be really useful too.
I imagine it would be inefficient to add multiple lines to, for instance,
opac-main.pl for each "location," like so:
my $OpacNavRight = GetNewsToDisplay( "OpacNavRight_".$news_lang, $homebranch );
Perhaps a template plugin and a block like this?
[% PROCESS koha_news news => GetKohaNews( location => news_lang, library =>
homebranch ) %]
I'd love to hear what y'all think.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list