Bug 23973

Summary: Serials module broken by Swedish translation
Product: Koha Reporter: Magnus Enger <magnus>
Component: SerialsAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: colin.campbell
Version: 18.11   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Magnus Enger 2019-11-05 13:58:43 UTC
One customer recently upgraded to 19.05.04.000 (Debian packages). After the upgrade the serials module is broken when they view the Swedish translation, but not when they view it in English. The most visually striking problem is that both page 1 and 2 of the serials form is displayed on one page. 

I have narrowed the problem down to koha-tmpl/intranet-tmpl/prog/sv-SE/modules/serials/subscription-add.tt line 509 which looks like this in the Swedish translation:

  var mana_enabled = [% IF (Koha.Preference('Mana') == 1 && mana_url) %]1[% ELSE %][% END %];

and this in the English original:

  var mana_enabled = [% IF (Koha.Preference('Mana') == 1 && mana_url) %]1[% ELSE %]0[% END %];

Notice the missing 0 between ELSE and END in the Swedish template. 

I have tried to look through the Swedish staff .po file, but I have not been able to spot any strings that affect this area of the file.
Comment 1 Katrin Fischer 2019-11-05 18:10:50 UTC
Hi Magnus, this has been discussed on the German mailing list and finally fixed in bug 23713 (sadly not backported yet). Marking duplicate, but the fix should be easy to implement!

*** This bug has been marked as a duplicate of bug 23713 ***