Hi,
I just discovered that the function <pageno export> doesn't jump to the next page once it has reached the end (20th page). I'm using search script 5.0.2, and for various reasons I won't be able to upgrade to the most recent version. The problem is when I reach the last page, the 20th, and click "next", it returns an empty page. There are definitely more than 200 results returned for the queries and jump URL looks fine. This is the function:
<!------------------------- Search Result Summary ----------------------->
<!-- display list of possible pages to jump to -->
<a name=pageno export>
<if $indexcount gt $SSc_hitsperpage><!-- more than one page of hits -->
<$pages= 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20>
<$i=0>
<$t=$next><!-- preserve $next -->
<loop $pages>
<if $i ge $indexcount><!-- hit end, stop numbering -->
<break>
</if>
<$j=($i+1)>
<if $j eq $start><!-- no hyperlink for the page we're on -->
<b>$pages</b>
<else>
<!-- <A class="pageno" HREF="$url/$urlq$mltvar&jump=$i">$pages</A> -->
<A class="pageno" HREF="$url/$urlcmd$urlext$urlq$mltvar&jump=$i$uavar">$pages</A>
</if>
<$i=($i+$SSc_hitsperpage)><!-- increment by number of hits per page -->
</loop>
<$next=$t><!-- restore $next -->
</if>
<!-- </HTML> -->
This URL returns the results 190-200:
http://searchsite.jsp?query=test&pr=Bas ... =&jump=190
but when hit "next" this URL returns nothing:
http://searchsite.jsp?query=test&pr=Bas ... =&jump=200
Does anyone have an idea why?
I just discovered that the function <pageno export> doesn't jump to the next page once it has reached the end (20th page). I'm using search script 5.0.2, and for various reasons I won't be able to upgrade to the most recent version. The problem is when I reach the last page, the 20th, and click "next", it returns an empty page. There are definitely more than 200 results returned for the queries and jump URL looks fine. This is the function:
<!------------------------- Search Result Summary ----------------------->
<!-- display list of possible pages to jump to -->
<a name=pageno export>
<if $indexcount gt $SSc_hitsperpage><!-- more than one page of hits -->
<$pages= 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20>
<$i=0>
<$t=$next><!-- preserve $next -->
<loop $pages>
<if $i ge $indexcount><!-- hit end, stop numbering -->
<break>
</if>
<$j=($i+1)>
<if $j eq $start><!-- no hyperlink for the page we're on -->
<b>$pages</b>
<else>
<!-- <A class="pageno" HREF="$url/$urlq$mltvar&jump=$i">$pages</A> -->
<A class="pageno" HREF="$url/$urlcmd$urlext$urlq$mltvar&jump=$i$uavar">$pages</A>
</if>
<$i=($i+$SSc_hitsperpage)><!-- increment by number of hits per page -->
</loop>
<$next=$t><!-- restore $next -->
</if>
<!-- </HTML> -->
This URL returns the results 190-200:
http://searchsite.jsp?query=test&pr=Bas ... =&jump=190
but when hit "next" this URL returns nothing:
http://searchsite.jsp?query=test&pr=Bas ... =&jump=200
Does anyone have an idea why?