Bug 11741: Correct display of < > in XSLT result lists
authorKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 11 Feb 2014 15:29:13 +0000 (16:29 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 5 May 2014 17:49:39 +0000 (17:49 +0000)
commitdd64903489a264e6e0c83035ab5b631f51f20507
treefb19d1dfba2524f225649196e6a90fd7c97e905d
parent7acd7f43a703c3aa853ea6e58153584c24ca6d09
Bug 11741: Correct display of < > in XSLT result lists

< and > are incorrectly transformed into HTML entities on the
XSLT result list when using the GRS-1 indexing mode.

Example:
Record: <TEST>
Result list: &lt;TEST&gt
HTML source: &amp;lt;TEST&amp;gt

To test:
- catalog a record that contains > and <
- Reindex, without using the -x option
- Confirm the display is correct
- Reindex again, using the -x option
- Confirm the display is now broken
- Apply patch
- Reindex again with and without -x
- Verify that now the display is always correct

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Note: the problem is only visible in GRS-1 setup. It works as expected.
No behaviour change in DOM.
I believe we shouldn't be (de)escaping data ad-hoc, but it seems that GRS-1
needs it because it doesn't handle HTML entities properly. This fix is OK for
GRS-1, unneeded for DOM and probably any other modern search engine.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/XSLT.pm