Discussion Forum

Programming => Joomla Extensions => Topic started by: Franka on February 09, 2008, 08:54:15 PM



Title: Serious problem - paging
Post by: Franka on February 09, 2008, 08:54:15 PM
I have 120 books in the db now and if I selectt the second page of All Titles, it displays an empty page. Ditto picking any other pages.

 Authors      Title      Journal      Year      Type      Links
 
<< Start < Prev 1 Next > End >>
Results 26 - 5 of 5
Download bibtex string for all 5 results    AddAdd..

Seems OK on a category that has two pages?


Title: Re: Serious problem - paging
Post by: Mark Austin on February 15, 2008, 09:00:56 AM
Could you describe how your categories and related menus are structured?


Title: Re: Serious problem - paging
Post by: Franka on February 22, 2008, 04:05:28 PM
Best is to take a look. This problem only occurs with the All Titles (so no categories selected.
http://www.glass-study.com/cms/
scroll down to menu - contain 630 titles now.
Nothing fancy each menu option has just had a category selected.

Note that when I had this problem it was only available to registered users. A couple of runs logged out caused a Not authorised to this resource on going to a second page.

Now not logged in it is paging beyond the first page but this is not working correctly.

When you take that option it gives a result of 635 go to the next page of results it changes to 108 results!!


Title: Re: Serious problem - paging
Post by: Franka on March 18, 2008, 11:57:19 AM
This is also happening with 'All Titles' after filtering. Which is a serious pain as only the first 25 out of 38 filtered can be seen.

[tdActionResult
Select All Titles1739 titles
Filter 'Carnival'38 titles
select 2nd page or nextNothing on page results change to 25
clear filterresults change to 230!

Select one of the category related options, everything works fine. Carnival filtered in 'General (World)' gives 31 results, go to second page and you get the 6 more titles and the result remains on 31.

If I dopwnload the bibtex string after the first example it prduces duplicates of most tiles.

Any ideas what is going wrong?


Title: Re: Serious problem - paging
Post by: Franka on March 27, 2008, 04:52:15 PM
Has anyone else had this problem?


Title: Re: Serious problem - paging
Post by: Mark Austin on March 28, 2008, 04:14:07 PM
Yes, there is definitely a bug there.  Would you mind changing lines 16 and 17 of jombib.php from

$catId = intval( mosGetParam( $_REQUEST, 'catid', 0 ) );
if($catId==0){

to :

$catId = intval( mosGetParam( $_REQUEST, 'catid', -1 ) );
if($catId==-1){

and let me know if that works.

Mark


Title: Re: Serious problem - paging
Post by: Franka on May 03, 2008, 10:25:27 AM
That works, thank you :)