Project

General

Profile

Actions

Bug #67128

closed

TYPO3 Core issue with "csc-sword" wrap for some search terms (TYPO3 6.1.5)

Added by Carl Tardif over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-05-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Greetings,

We use the Apache Solr plugin on one of our sites for search. Normally when we perform a search on the site, the searched terms are wrapped by two span ... one with class "csc-sword" and another with class "highlight".

It seems TYPO3 core has an issue with wrapping the span with the "csc-sword" class when the search terms are found inside other tags (like the <a> or <i> tags in my example).

Here are two examples of the generated HTML on two search results:

1) The results for the word "searched" is found in an hyperlink / italic tag, TYPO3 core generates the following:

<p class="print"><a href="http://my.fake.url/php/decision.php?liste=68182920&amp;amp;doc=64BDFD4186FD977FADAB96F5817B0E7E16A115912E0FABC0C275C2DE86B7CEB7&amp;amp;page=1&quot; target="_blank" class="external-link"><i><span class="highlight">Searched</span> </i>the <i>text in an hyperlink or italic,</i></a> <img src="fileadmin/templates/memento/images/icones/ico-consult-ext.png" class="external-link-ico" alt="Link opening in another window"> This is a test.
</p>

Expected resulted: their should also be a <span class="csc-sword"> wrapping the "searched" term ... as in the next example.

2) The results for the word "searched" is found in "normal text", TYPO3 core generates the following:

<p>This is a fake text just to search the word <span class="csc-sword"><span class="highlight">Searched</span></span> to see that, in this case, it is wrapped by two spans with different classes.</p>

Expected result: exactly the result I got.


I searched a while in the open issues,hopefully that was not already reported.

do you think you will fix this behavior ?

Thanks in advance.

Actions

Also available in: Atom PDF