[Koha-bugs] [Bug 27324] New: Use Koha.Preference() for intranetbookbag everywhere

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Jan 2 19:19:55 CET 2021


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

            Bug ID: 27324
           Summary: Use Koha.Preference() for intranetbookbag everywhere
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Templates
          Assignee: oleonard at myacpl.org
          Reporter: katrin.fischer at bsz-bw.de
        QA Contact: testopia at bugs.koha-community.org

By using Koha.Preference() in the templates everywhere, we can remove the
variable from Auth.pm in the end.

After bug 27031, it looks like the remaining instances are:

C4/Auth.pm:            intranetbookbag                                         
    => C4::Context->preference("intranetbookbag"),

koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt:             
  [% IF ( intranetbookbag ) %]
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt:                  
         [% IF ( intranetbookbag ) %]
koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc:[% IF ( virtualshelves
&& intranetbookbag ) %]
koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc:[% ELSIF (
intranetbookbag ) %]

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


More information about the Koha-bugs mailing list