Re: [greenstone-users] Highlighting search result

From Katherine Don
DateMon, 07 Feb 2005 09:23:05 +1300
Subject Re: [greenstone-users] Highlighting search result
In-Reply-To (200502040709-j1479vHi026272-hkuhp12-hku-hk)
Hi Dave

This is the first time you have mentioned search term highlighting! I
didn't realise that this is what you meant.
You can't do search term highlighting in the search results list using
format statements.

You may be able to accomplish it by modifying the source code, or maybe
using javascript???

Cheers,
Katherine Don

Dave wrote:
> Hi Katherine,
>
> But how can I just highlight search word in title?
> Regards,
>
> Dave
>
>
>>-----Original Message-----
>>From: Katherine Don [mailto:kjdon@cs.waikato.ac.nz]
>>Sent: Friday, February 04, 2005 10:00 AM
>>To: Dave
>>Cc: greenstone-users@list.scms.waikato.ac.nz
>>Subject: Re: [greenstone-users] Highlighting search result
>>
>>Hi Dave
>>
>>Yes, my example will bold the entire title.
>>Changing format statements doesn't require rebuilding the collection, so
>>you can just try it and see.
>>
>>Regards,
>>Katherine
>>
>>Dave wrote:
>>
>>>Hi Katherine,
>>>
>>>I want to have highlight on metadata [Title] and use the following
>
> format
>
>>>format SearchVList [highlight][Title][/highlight]
>>>However, no highlight is displayed.
>>>Your suggest will bold the complete title insert of words in title,
>
> right?
>
>>>Regard,
>>>
>>>Dave
>>>
>>>
>>>>-----Original Message-----
>>>>From: Katherine Don [mailto:kjdon@cs.waikato.ac.nz]
>>>>Sent: Friday, February 04, 2005 4:52 AM
>>>>To: Dave
>>>>Cc: greenstone-users@list.scms.waikato.ac.nz
>>>>Subject: Re: [greenstone-users] Highlighting search result
>>>>
>>>>Hi Dave
>>>>
>>>>Perhaps you need to tell me what you are trying to do.
>>>>
>>>>What I am suggesting is very basic. For example, if you are displaying
>>>>say the Title and Source metadata in your format statement, and you want
>>>>to bold the Title, then you put <b></b> tags around the Title:
>>>>
>>>>format SearchVList "<td>[link][icon][/link]</td><td><b>[Title]</b>
>>>>([Source])</td>"
>>>>
>>>><b></b> bolds the contents, <i></i> italicises the contents, and <u></u>
>>>>underlines.
>>>>
>>>>Is this what you are wanting?
>>>>
>>>>Regards,
>>>>Katherine
>>>>
>>>>Dave wrote:
>>>>
>>>>
>>>>>Hi Katherine,
>>>>>
>>>>>Could you give me some examples?
>>>>>Thanks.
>>>>>
>>>>>Dave
>>>>>
>>>>>
>>>>>
>>>>>>-----Original Message-----
>>>>>>From: Katherine Don [mailto:kjdon@cs.waikato.ac.nz]
>>>>>>Sent: Wednesday, February 02, 2005 5:24 AM
>>>>>>To: Dave
>>>>>>Cc: greenstone-users@list.scms.waikato.ac.nz
>>>>>>Subject: Re: [greenstone-users] Highlighting search result
>>>>>>
>>>>>>Hi Dave
>>>>>>
>>>>>>You need to use html tags in your SearchVList format statement to
>>>>>>highlight parts of each entry in the search results list.
>>>>>>
>>>>>>Regards,
>>>>>>Katherine Don
>>>>>>
>>>>>>Dave wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Dear all,
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>Do there any method that we can highlight the search result list?
>>>>>>>
>>>>>>>The description of highlighting seems to have no such option:
>>>>>>>
>>>>>>>[highlight][/highlight] These are used for 'highlighting' (actually
>>>>>>>bolding) the selected section in a hierarchical table of contents,
>
> and
>
>>>>>>>the selected node in a classifier. Apart from those two cases, this
>
> has
>
>>>>>>>no effect. If you actually want to highlight/bold/italicise something
>>>
>>>in
>>>
>>>
>>>>>>>a list, and have it apply to all items in the list, then use actual
>>>
>>>html
>>>
>>>
>>>>>>>tags, like <b></b>, <u></u> and <i></i>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>Dave
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>
>>>>>------------------------------------------------------------------------
>>>>>
>>>>>>>_______________________________________________
>>>>>>>greenstone-users mailing list
>>>>>>>greenstone-users@list.scms.waikato.ac.nz
>>>>>>>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>>>>
>>>>>
>>>>>
>>>
>
>