Opened 13 years ago

Last modified 13 years ago

#723 new enhancement

search term highlighting

Reported by: kjdon Owned by: nobody
Priority: moderate Milestone: Possible 2.88 Release
Component: Greenstone2 Runtime Severity: enhancement
Keywords: Cc:

Description

In some cases, people want to create links in their document text pages. Eg display all the subjects, each one linking to a search on that subject.

If the user has reached the document through a search on subjects, and search term highlighting is on, then the subject ends up getting span tags around it, which screws up the links.

A suggestion was to not do highlighting on cgisafe metadata.

The current code expands the format statement out to text, then does highlighting on it. No way of knowing which bits were cgisafed.

Can we make this better? Maybe highlighting could be done when each individual element is retrieved, eg when get [Text] or [dc.Subject], then can not do it for cgisafe ones.

Change History (1)

comment:1 by sjm84, 13 years ago

Milestone: 2.85 Release2.86 Release
Note: See TracTickets for help on using tickets.