First attempt to add paging in the OPDS side.

Need more polishing before being used everywhere.

--HG--
extra : rebase_source : 0fb3a4b12cf83d4b450a1fca81f82addd8d58c14
This commit is contained in:
Sébastien Lucas 2012-09-18 15:39:22 +02:00
parent 43f489051d
commit 4c9e8c67d0
5 changed files with 67 additions and 27 deletions

View file

@ -18,6 +18,7 @@
header ("Content-Type:application/xml");
$page = getURLParam ("page", Base::PAGE_INDEX);
$query = getURLParam ("query");
$n = getURLParam ("n", "1");
if ($query)
$page = Base::PAGE_OPENSEARCH_QUERY;
$qid = getURLParam ("id");
@ -29,7 +30,7 @@
echo $OPDSRender->getOpenSearch ();
return;
default:
$currentPage = Page::getPage ($page, $qid, $query);
$currentPage = Page::getPage ($page, $qid, $query, $n);
$currentPage->InitializeContent ();
echo $OPDSRender->render ($currentPage);
return;