[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
Thu Nov 5 19:35:55 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24223

--- Comment #18 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 113132
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113132&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 news 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.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list