X-Git-Url: https://scm.fusionforge.org/anonscm/gitweb?p=fusionforge%2Ffusionforge.git;a=blobdiff_plain;f=src%2Fplugins%2Fadmssw%2Fwww%2Ffull.php;h=e2951fd0090e78453168dd415ad15d9ff465c22d;hp=7a658ad9137bc191c1a0071107e505ee687d19cb;hb=04c52a1ecf941945a7aa1264156e485af0902603;hpb=1bc867cf01cbddca403a29d5a8e05046e5cd7b48 diff --git a/src/plugins/admssw/www/full.php b/src/plugins/admssw/www/full.php index 7a658ad9..e2951fd 100644 --- a/src/plugins/admssw/www/full.php +++ b/src/plugins/admssw/www/full.php @@ -22,6 +22,7 @@ require_once('../../env.inc.php'); require_once $gfcommon.'include/pre.php'; +require_once $gfwww.'include/trove.php'; $pluginname = 'admssw'; @@ -34,7 +35,7 @@ $content_type = util_negociate_alternate_content_types($script, $default_content $plugin = plugin_get_object($pluginname); // page length -$pl = 3; +$pl = $TROVE_BROWSELIMIT; $uricomplement = ''; @@ -44,14 +45,19 @@ if ( null !== getStringFromRequest('theFirstPage', null)) { $uricomplement = '?theFirstPage'; } else { - $p = getIntFromRequest('p', 0); + $p = getIntFromRequest('page', 0); if ($p > 0) { - $uricomplement = '?p=' . $p; + $uricomplement = '?page=' . $p; } } $projectsnum = $plugin->getProjectListSize(); +if ( null !== getStringFromRequest('allatonce', null)) { + $pl = $projectsnum + 1; + $p = 0; +} + // force paging if too many projects if ( ($projectsnum > $pl) && ! ($p > 0) ) { // $p = 1; @@ -96,7 +102,7 @@ if($content_type != $default_content_type) { rdfutils_setPropToUri($res, 'rdf:type', 'ldp:Page'); if($p < ( (int) ($projectsnum / $pl) ) ) { - $nextpageuri = $documenturi . '?p=' . (string) ($p + 1); + $nextpageuri = $documenturi . '?page=' . (string) ($p + 1); rdfutils_setPropToUri($res, 'ldp:nextPage', $nextpageuri); } else {