[Koha-bugs] [Bug 28925] New: OPAC checkout history is not accessing the set language

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 31 00:47:04 CEST 2021


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

            Bug ID: 28925
           Summary: OPAC checkout history is not accessing the set
                    language
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: aleisha at catalyst.net.nz
        QA Contact: testopia at bugs.koha-community.org

OpacNav is still in the system preferences (yet to be moved to Tools ->
Notices) so in the meantime we've done a bit of hacky work to make our OpacNav
translateable.

We changed this line in
koha-tmpl/opac-tmpl/bootstrap/en/includes/navigation.inc:
<div id="opacnav">[% OpacNav | $raw %]</div>
to:
<div id="opacnav">[% OpacNav | eval %]</div>
so that it would render Template Toolkit in OpacNav.

Then, in OpacNav, we added some code like:
[% IF lang == 'mi-NZ' %]
Show navigation in te reo Māori
[% ELSE %]
Show navigation in English
[% END %]

This seems to work most everywhere in the OPAC, except for the user's checkout
history. When printing [% lang %], it looks like $lang is set to default,
rather than any of the languages we have installed.

$lang should be set to the installed and selected language.

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


More information about the Koha-bugs mailing list