[Koha-bugs] [Bug 24223] Convert OpacNav system preference to news block
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Sep 25 08:43:14 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24223
Fridolin Somers <fridolin.somers at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #124937|0 |1
is obsolete| |
--- Comment #30 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 125302
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=125302&action=edit
Bug 24223: (follow-up) Make logged-in user's branchcode available to template
This patch makes a couple of corrections for problems I discovered
while working on Bug 24224: The variables required for correct display
of news items by branch and language were not consistently available to
the templates.
In opac-readingrecord.pl, the "lang" variable was being overwritten. On
this and other pages the logged-in patron's brachcode was not made
available. I've corrected instances of KohaNews.get() to use the
globally-available "logged_in_user.branchcode" instead.
To test, apply the patch and follow the original test plan, with the
addition of instances of the OpacNav additional contents item which
have a specific library selected.
Confirm that such items are correctly displayed according to the
logged-in user's home library. If there is no logged-in user the
library-specific OpacNav should not display.
Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list