[Koha-bugs] [Bug 28955] Add option to set default branch from Apache

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 15 15:40:50 CET 2021


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

--- Comment #11 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
(In reply to Jonathan Druart from comment #6)
> 1. Shouldn't only be passed to the templates for OPAC interface?

Done

> 2. You are assuming that this "branchcode" variable is passed only for this
> purpose. Is that true?

Renamed to 'default_branch'

> 3. Where is this "branchcode" actually passed to the template?

I've switched to using a new default_branch and it's always passed for OPAC
templates

> 4. Did you see that sometimes "logged_in_user.branchcode" is used
> (opac-main.tt)?
> Not sure this is correct actually.

It looks like most occurrences have no actually switched from 'branchcode' to
'logged_in_user.branchcode'.. I've updated all templates to use
`logged_in_branch.branchcode || default_branch`

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


More information about the Koha-bugs mailing list