[Koha-bugs] [Bug 29261] New: Translation script breaks members/tables/members_results.tt

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 18 10:51:08 CEST 2021


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

            Bug ID: 29261
           Summary: Translation script breaks
                    members/tables/members_results.tt
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: translate.koha-community.org
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nugged at gmail.com
        QA Contact: testopia at bugs.koha-community.org
                CC: jonathan.druart+koha at gmail.com

Got this in the errors log:

Template process failed: file error - parse error -
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/fi-FI/modules/members/tables/members_results.tt
line 6: unexpected token (data)


when compared to the original main place of the error localized here, such
line:

                    "<a
href=\"/cgi-bin/koha/members/moremember.pl?borrowernumber=[%
data.borrowernumber | html %]\" class=\"patron_preview\"
data-borrowernumber=\"[% data.borrowernumber | html %]\"
style='white-space:nowrap' title='View'>[% INCLUDE 'patron-title.inc'
borrowernumber = data.borrowernumber category_type = data.category_type
firstname = data.firstname surname = data.surname othernames = data.othernames
invert_name = 1 | $To %]</a><br /><div class='address'><ul>[%~ INCLUDE
'display-address-style' patron=data no_line_break=1 | $To ~%][% IF data.email
%]<li>Email: <a href='mailto:[% data.email | html | $To %]'>[% data.email |
html | $To %]</a></li>[% END %]</ul></div>",


broken by script and messed up:

                    "<a %]\"="%]\"" class="\"patron_preview\""
data-borrowernumber="\"[%" data.borrowernumber="data.borrowernumber"
href="\"/cgi-bin/koha/members/moremember.pl?borrowernumber=[%" html="html"
style="white-space:nowrap" title="Näytä" |="|">[% INCLUDE 'patron-title.inc'
borrowernumber = data.borrowernumber category_type = data.category_type
firstname = data.firstname surname = data.surname othernames = data.othernames
invert_name = 1 | $To %]</a><br /><div class='address'><ul>[%~ INCLUDE
'display-address-style' patron=data no_line_break=1 | $To ~%][% IF data.email
%]<li>Sähköposti: <a href='mailto:[% data.email | html | $To %]'>[% data.email
| html | $To %]</a></li>[% END %]</ul></div>",

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


More information about the Koha-bugs mailing list