https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42284
--- Comment #17 from Jonathan Druart <[email protected]> --- Created attachment 198797 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198797&action=edit Bug 42284: (follow-up) Restore hide_marc polarity for marc tag visibility The original UNLESS/ELSE block kept MARC tag links visible by default and hid them only when the hide_marc syspref was enabled: [% UNLESS Koha.Preference("hide_marc") %] toggleMARCTagLinks(true) [% ELSE %] toggleMARCTagLinks(false); [% END %] The JS port inverted the test without swapping the branches, so when hide_marc was off the tag links were hidden and when it was on they were shown -- the opposite of the pref's intent. Flip the condition back (!Koha.prefs.hide_marc). To test: - Set hide_marc = 0: open addbiblio.pl, MARC tag numbers and subfield codes are visible on first load. - Set hide_marc = 1 and clear the marctags cookie (devtools -> Application -> Cookies): reload addbiblio.pl, tag numbers and subfield codes are hidden on first load. Signed-off-by: Paul Derscheid <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
