Re: [greenstone-users] Search results list

From Katherine Don
DateMon, 08 Jan 2007 14:09:24 +1300
Subject Re: [greenstone-users] Search results list
In-Reply-To (E1GzGir-0006j8-IZ-zombie-scms-waikato-ac-nz)
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
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.


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