Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
ReglerAddress
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Leif Andersson
ReglerAddress
Commits
e5f940ab
Commit
e5f940ab
authored
9 years ago
by
Leif Andersson
Browse files
Options
Downloads
Patches
Plain Diff
Added the permission ReglerAddress. Removed some parameters from
Regler.address.module.
parent
f689bc33
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ReglerAddress.module.php
+0
-82
0 additions, 82 deletions
ReglerAddress.module.php
method.install.php
+2
-1
2 additions, 1 deletion
method.install.php
method.uninstall.php
+3
-0
3 additions, 0 deletions
method.uninstall.php
with
5 additions
and
83 deletions
ReglerAddress.module.php
+
0
−
82
View file @
e5f940ab
...
...
@@ -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'
));
...
...
This diff is collapsed.
Click to expand it.
method.install.php
+
2
−
1
View file @
e5f940ab
...
...
@@ -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'
);
?>
This diff is collapsed.
Click to expand it.
method.uninstall.php
+
3
−
0
View file @
e5f940ab
...
...
@@ -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'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment