Bug 42 - Searched terms not marked properly
Summary: Searched terms not marked properly
Status: VERIFIED FIXED
Alias: None
Product: Server
Classification: Other
Component: News (show other bugs)
Version: cvs
Hardware: All All
: High (P2) normal (vote)
Target Milestone: Future
Assignee: Georgi D. Sotirov
QA Contact: Administrator
URL: http://sotirov-bg.net/news/
Whiteboard:
Keywords: interface
Depends on: 32
Blocks: 48
  Show dependency treegraph
 
Reported: 2006-12-06 10:44 EET by Administrator
Modified: 2019-12-28 20:22 EET (History)
0 users

See Also:
My Bug ID:
My description:
My date:
My choice:
My selection: ---


Attachments
Screenshot demonstrating the problem (37.05 KB, image/png)
2006-12-06 10:46 EET, Administrator
no flags Details
This patch fixes the problem with unmarked tokens (3.86 KB, patch)
2007-01-14 17:37 EET, Georgi D. Sotirov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Administrator admin 2006-12-06 10:44:08 EET
When you search some terms are highlighted in the news body text and some are not. Search terms are not highlighted in the news titles at all.
Comment 1 Administrator admin 2006-12-06 10:46:58 EET
Created attachment 42 [details]
Screenshot demonstrating the problem

This screenshot very well demonstrates the problem. The search is done on the term 'problem'. You can clearly see that the term 'problem' is not highlighted in the news titles at all and it is missed in one place in the news text. Missed highlights are underlined in red.
Comment 2 Administrator admin 2006-12-06 10:55:17 EET
It looks like that there is a pattern - only the first term in the news text is not highlighted. Highlighting in the Cyrillic texts is not done at all.
Comment 3 Georgi D. Sotirov 2007-01-14 17:37:10 EET
Created attachment 47 [details]
This patch fixes the problem with unmarked tokens

The general purpose function mark_text is replaced by two functions - one for marking tokens in text and the other for marking in HTML.
Comment 4 Georgi D. Sotirov 2007-03-28 11:03:31 EEST
Nothing else to do here.


bug/show.html.tmpl processed on May 18, 2024 at 23:13:20.
(provided by the Example extension).