you're right...
i just realize that htsearch I used not the updated one. I have moved the new one to the right place and now the patch works.
Thank you very much :)
Gilles Detillieux <[EMAIL PROTECTED]> wrote:
According to Irene talaway:
> I have modified Display.cc according to
> ftp://ftp.ccsf.org/htdig-patches/3.1.6/Google-style.0
> by changing line:
> for (i = 1; i <= nPages; i++)
>
> with:
> int pageSpan = config.Value("results_page_span", 10);
> int pageStart = pageNumber - pageSpan;
> int pageEnd = pageNumber + pageSpan;
> if ( pageStart < 1 ) pageStart = 1;
> if ( pageEnd > nPages ) pageEnd = nPages;
> for (i = pageStart; i <= pageEnd; i++)
>
> and I re-compile htdig using make and make install. I have removed
> the page_number_text and no_page_number_text attributes from the
> configuration file.
> But the pagelist in the search result still show all of page number together.
> Did I miss something?
I think you also must explicitly set maximum_pages to something large,
as well as perhaps also setting maximum_page_buttons (although I think
it's OK to leave it set to ${maximum_pages} as it is by default).
Also make sure that your make install did indeed update the htsearch
binary that's called from your search form. If you moved or copied
things around after your first make install, you will likely have to do
that again.
Apart from that, I don't know what else to recommend. I didn't write
the patch, and it came with precious little as far as documentation.
But others have been reporting success with it, so it should work.
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada)
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

