Bug 8937 - Translation process removes CDATA in RSS XML
Summary: Translation process removes CDATA in RSS XML
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: I18N/L10N (show other bugs)
Version: master
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-17 09:06 UTC by Fridolin SOMERS
Modified: 2018-09-03 15:18 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Bot Control: ---
When did the bot last check this:
Who signed the patch off:
Text to go in the release notes:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fridolin SOMERS 2012-10-17 09:06:19 UTC
The translation process seams to manage CDATA tags in JS but not in HTML directly.
This exists in RSS feed 'opac-opensearch.tt' : 
  <description><![CDATA[ Search results [% IF ( query_desc ) %]for '[% query_desc |html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc |html %]'[% END %] at [% LibraryName |html %]]]></description>
is translated in fr-FR :
  <description> Search results [% IF ( query_desc ) %]for '[% query_desc |html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc |html %]'[% END %] at [% LibraryName |html %]</description>

This is another cause of bug 8936.
Comment 1 Owen Leonard 2013-08-02 19:49:32 UTC
I notice the fr-FR version of opac-opensearch.tt is also missing the XML declaration at the top ("<?xml version='1.0' encoding='utf-8'  ?>").
Comment 2 Victor Grousset/tuxayo 2018-06-21 09:27:03 UTC
== Reproduice ==
1. opac: switch to english language
2. opac: Search for something that returns multiple results
3. open rss feed
4. See that the author name and "place hold" link show
     Optional: Right click → page source → see that multiple CDATA section are there
5. Translate & switch to another language than english
6. open rss feed
7. See that only the titles show. Nor the author name nor the "place hold" link
     This is the bug.
     Optional: Right click → page source → see that only one CDATA section is there
Comment 3 Victor Grousset/tuxayo 2018-09-03 15:18:29 UTC
Should be fixed by bug 15395

So it might be better to put the efforts in treating the cause instead of yet another symptom.