Commit e5f940ab authored by Leif Andersson's avatar Leif Andersson
Browse files

Added the permission ReglerAddress. Removed some parameters from

Regler.address.module.
parent f689bc33
......@@ -178,88 +178,6 @@ class ReglerAddress extends CMSModule
$this->RegisterModulePlugin();
$this->RestrictUnknownParams();
$this->CreateParameter('title','','title');
$this->SetParameterType('title',CLEAN_STRING);
$this->CreateParameter('author','','author');
$this->SetParameterType('author',CLEAN_STRING);
$help = 'The first year in the desired range.';
$this->CreateParameter('yearFrom','',$help);
$this->SetParameterType('yearFrom',CLEAN_INT);
$help = 'The last year in the desired range. If this parameter is unset, '
. 'the last publication selected is of current year and month. '
. 'The special value "0" is equivalent to a year far in the future.';
$this->CreateParameter('yearTo','',$help);
$this->SetParameterType('yearTo',CLEAN_INT);
$help = 'The article type. Possible values are book, inbook, '
. 'art (journal article), inproc (conference contribution), '
. 'phd, lic, msc, techrep, popsci, man, proc (The entire proceedings, '
. 'not an individual contribution), misc, unpubl';
$this->CreateParameter('articleType','',$help);
$this->SetParameterType('articleType',CLEAN_STRING);
$this->CreateParameter('keywords','','keywords');
$this->SetParameterType('keywords',CLEAN_STRING);
$this->CreateParameter('abstract','','abstract');
$this->SetParameterType('abstract',CLEAN_STRING);
$this->CreateParameter('project','','project');
$this->SetParameterType('project',CLEAN_STRING);
$this->CreateParameter('search','','search');
$this->SetParameterType('search',CLEAN_STRING);
$this->CreateParameter('annual','','annual');
$this->SetParameterType('annual',CLEAN_STRING);
$help = 'If true, then present a search form on the page.';
$this->CreateParameter('searchForm','true',$help);
$this->SetParameterType('searchForm',CLEAN_STRING);
$help = 'The unique author key.';
$this->CreateParameter('authkey','',$help);
$this->SetParameterType('authkey',CLEAN_STRING);
$help = 'Presentation style. Possible values: table (default), '
. 'short, full.';
$this->CreateParameter('style','',$help);
$this->SetParameterType('style',CLEAN_STRING);
$help = 'Limit the number of items presented to this.';
$this->CreateParameter('limit','',$help);
$this->SetParameterType('limit',CLEAN_INT);
$this->CreateParameter('request','','request');
$this->SetParameterType('request',CLEAN_STRING);
$this->CreateParameter('mailAddress','','mailAddress');
$this->SetParameterType('mailAddress',CLEAN_STRING);
$help = 'The unique publication key.';
$this->CreateParameter('artkey','',$help);
$this->SetParameterType('artkey',CLEAN_STRING);
$this->CreateParameter('year','','year');
$this->SetParameterType('year',CLEAN_STRING);
$this->CreateParameter('origid','','origid');
$this->SetParameterType('origid',CLEAN_STRING);
$this->CreateParameter('showBibtex','','showBibtex');
$this->SetParameterType('showBibtex',CLEAN_STRING);
$help = 'Publication status to select which publications to show. '
. 'Possible values: submitted, accepted, publishedOnline, published. '
. 'The values are ordered, so a specific value means '
. '"show with this value or higher". Default: accepted.';
$this->CreateParameter('publicationStatus','',$help);
$this->SetParameterType('publicationStatus',CLEAN_STRING);
$this->RegisterRoute('#Publication/(?P<artkey>.+$)#',
array('action'=>'showpublication', 'returnid'=>'60'));
......
......@@ -7,7 +7,8 @@
if (!isset($gCms)) exit;
// put mention into the admin log
$this->Audit( 0, 'ReglerAddress', 'installed');
$this->Audit( 0, 'ReglerAddress', $this->GetVersion . ' installed');
$this->CreatePermission('Use ReglerAddress', 'Use ReglerAddress');
?>
......@@ -6,6 +6,9 @@
if (!isset($gCms)) exit;
// remove the permissions
$this->RemovePermission('Use ReglerAddress');
// put mention into the admin log
$this->Audit( 0, 'ReglerAddress', 'uninstalled');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment