projects
/
fusionforge
/
fusionforge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Base paging limit on the softwaremap browsing's one and add allatonce mode
[fusionforge/fusionforge.git]
/
src
/
plugins
/
admssw
/
www
/
full.php
diff --git
a/src/plugins/admssw/www/full.php
b/src/plugins/admssw/www/full.php
index
7a658ad
..
e2951fd
100644
(file)
--- 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('../../env.inc.php');
require_once $gfcommon.'include/pre.php';
+require_once $gfwww.'include/trove.php';
$pluginname = 'admssw';
$pluginname = 'admssw';
@@
-34,7
+35,7
@@
$content_type = util_negociate_alternate_content_types($script, $default_content
$plugin = plugin_get_object($pluginname);
// page length
$plugin = plugin_get_object($pluginname);
// page length
-$pl =
3
;
+$pl =
$TROVE_BROWSELIMIT
;
$uricomplement = '';
$uricomplement = '';
@@
-44,14
+45,19
@@
if ( null !== getStringFromRequest('theFirstPage', null)) {
$uricomplement = '?theFirstPage';
}
else {
$uricomplement = '?theFirstPage';
}
else {
- $p = getIntFromRequest('p', 0);
+ $p = getIntFromRequest('p
age
', 0);
if ($p > 0) {
if ($p > 0) {
- $uricomplement = '?p=' . $p;
+ $uricomplement = '?p
age
=' . $p;
}
}
$projectsnum = $plugin->getProjectListSize();
}
}
$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;
// 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) ) ) {
rdfutils_setPropToUri($res, 'rdf:type', 'ldp:Page');
if($p < ( (int) ($projectsnum / $pl) ) ) {
- $nextpageuri = $documenturi . '?p=' . (string) ($p + 1);
+ $nextpageuri = $documenturi . '?p
age
=' . (string) ($p + 1);
rdfutils_setPropToUri($res, 'ldp:nextPage', $nextpageuri);
}
else {
rdfutils_setPropToUri($res, 'ldp:nextPage', $nextpageuri);
}
else {