edrlab / thorium-reader

A cross platform desktop reading app, based on the Readium Desktop toolkit
https://www.edrlab.org/software/thorium-reader/
BSD 3-Clause "New" or "Revised" License
1.85k stars 157 forks source link

OPDS 2 pagination is not working in navigation feed #1979

Open gotson opened 1 year ago

gotson commented 1 year ago

I am implementing OPDS 2, and testing with Thorium Reader.

Similarly to #1977 i can't make the paginated navigation feed to work. The prev/next links are not displayed.

Here is the feed:

{
    "metadata": {
        "title": "Library",
        "identifier": "0DBTWY634KNPP",
        "modified": "2023-08-22T14:07:10+08:00",
        "itemsPerPage": 2,
        "currentPage": 0,
        "numberOfItems": 16
    },
    "links": [
        {
            "rel": "self",
            "href": "/opds/v2/libraries/0DBTWY634KNPP"
        },
        {
            "title": "Home",
            "rel": "start",
            "href": "/opds/v2/catalog"
        },
        {
            "rel": "next",
            "href": "/opds/v2/libraries/0DBTWY634KNPP?page=1"
        }
    ],
    "navigation": [
        {
            "title": "300",
            "rel": "subsection",
            "href": "/opds/v2/series/0DBTWY6BRKMMP",
            "type": "application/opds+json"
        },
        {
            "title": "Animosity",
            "rel": "subsection",
            "href": "/opds/v2/series/0DBTWY6Z0KN3J",
            "type": "application/opds+json"
        }
    ]
}

And the result in Thorium v2.2.0:

image

I am just starting with OPDS 2 so maybe my feed is incorrect !

gotson commented 1 year ago

Tried also with v2.3.0, still the same.