3 * admssw plugin script which produces a full list of public projects with all their details
5 * This file is (c) Copyright 2012 by Olivier BERGER, Institut Mines-Telecom
7 * This file is part of FusionForge. FusionForge is free software;
8 * you can redistribute it and/or modify it under the terms of the
9 * GNU General Public License as published by the Free Software
10 * Foundation; either version 2 of the Licence, or (at your option)
13 * FusionForge is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 // Dumps an HTML preview or a full RDF document for public projects, with full details
25 // The script will paginate the contents (with the same page size than in the softwaremap/trove)
26 // redirecting if necessary to ?page=1
27 // This can be overriden with ?allatonce
29 // This script is the counterpart, with full details, of other lists of projects
30 // which contain only an index of projects, like /projects/ (for RDF harvested by machines)
31 // or its HTML Turtle preview in /plugins/admssw/projectsturtle.php
33 require_once '../../env.inc.php';
34 require_once $gfcommon.'include/pre.php';
36 $pluginname = 'admssw';
38 $script = 'admssw_full';
39 $default_content_type = 'text/html';
41 // check for alternate representations (RDF content-types)
42 $content_type = util_negociate_alternate_content_types($script, $default_content_type);
44 $plugin = plugin_get_object($pluginname);
46 $documenturi = util_make_url('/plugins/'.$pluginname.'/full.php');
49 $pl = $plugin->getPagingLimit();
51 $projectsnum = $plugin->getProjectListSize();
53 $p = $plugin->process_paging_params_or_redirect($projectsnum, $pl);
55 if ($content_type != 'text/html') {
56 header('Content-type: '. $content_type);
59 $HTML->header(array('title'=>_('Full ADMS.SW export'),'pagename'=>'admssw_full'));
60 $HTML->printSoftwareMapLinks();
63 // We want full details of the projects
65 print $plugin->getProjectsListDisplay($documenturi, $content_type, $p, $pl, $detailed);
67 if ($content_type == 'text/html') {
68 $HTML->footer(array());
73 // c-file-style: "bsd"