Re: [greenstone-users] Search results list

From Michael Dewsnip
DateWed, 10 Jan 2007 15:34:06 +1300
Subject Re: [greenstone-users] Search results list
In-Reply-To (45A199C4-2060009-cs-waikato-ac-nz)
Hi Diego,

Actually, there is an easy way of doing this: just add "[num]" into your
search format statement. This is described in the Wiki FAQ entry (which
Katherine wrote, so she should have known this! :-)):
http://greenstone.sourceforge.net/wiki/index.php/How_to_format_the_output of your_collection

All the best,

Michael

Katherine Don wrote:

>Hi Diego
>
>There is no nice format statement variable for this, sorry.
>
>However, the information is kind of available in the page already - if
>you have 'format DocumentSearchResultLinks true' in a collection, the
>search result links have arguments srp and srn (search result next and
>search result previous) which are used to link to the previous and next
>search results from the current document display.
>e.g. may have srp=2&srn=4. in this case the current position would be 3.
>Maybe you could use javascript to extract these values and work out the
>position?
>alternatively could you use javascript to count through the list of
>search results and add in numbers? This wouldn't be so easy when you are
>on the second page of search results - you'd need to take into account
>the number of docs per page and what page you were at - this info is
>available through cgi args.
>
>
>Regards,
>Katherine
>
>
>Diego Spano wrote:
>
>
>>Hi list, is there any way to show a numbered list for a search? I mean,
>>I want that the SearchVList shows the position number of the document in
>>this list.
>>
>>Thanks.
>>
>>
>>*Diego Spano*
>>Archivo Digital
>>Secretaria de DD. HH.
>>Ministerio de Justicia y DD. HH.
>>*Tel.: 5167-6550*
>>
>>
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>greenstone-users mailing list
>>greenstone-users@list.scms.waikato.ac.nz
>>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>
>>
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>greenstone-users mailing list
>greenstone-users@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>