Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
limbra
limbra
Commits
2e0c065c
Commit
2e0c065c
authored
Jan 18, 2021
by
LE GAC Renaud
Browse files
Update Articles to improve reject message
parent
bef21e0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
languages/fr-fr.py
languages/fr-fr.py
+1
-0
modules/harvest_tools/articles.py
modules/harvest_tools/articles.py
+5
-2
No files found.
languages/fr-fr.py
View file @
2e0c065c
...
...
@@ -598,6 +598,7 @@
'Reject preprint is a conference'
:
'Rejeté ce preprint est une conférence'
,
'Reject preprint is a published paper'
:
'Rejeté ce preprint est un article publié'
,
'Reject preprint is a thesis'
:
'Rejeté ce preprint est une thèse'
,
'Reject publication is a preprint'
:
'Rejeté la publication est un preprint'
,
'Reject publisher is unknown.'
:
"Rejeté l'éditeur est inconnu."
,
'Reject publishers is not defined'
:
"Rejeté la revue n'est pas définie"
,
'Reject submission date is not well formed'
:
"Rejeté la date de soumission n'est pas correcte"
,
...
...
modules/harvest_tools/articles.py
View file @
2e0c065c
...
...
@@ -12,6 +12,7 @@ from .base import (learn_my_authors,
from
plugin_dbui
import
get_id
,
UNDEF_ID
from
store_tools
import
CheckException
MSG_IS_PREPRINT
=
"Reject publication is a preprint"
MSG_NO_EDITOR
=
"Reject article is not published"
MSG_NOT_ARTICLE
=
"Reject publication is not and article"
MSG_TRANSFORM_PREPRINT
=
"Transform the preprint into an article"
...
...
@@ -55,8 +56,10 @@ class Articles(Automaton):
"""
self
.
logger
.
debug
(
f
"
{
T4
}
check and fix record (article)"
)
if
record
.
subtype
()
!=
"article"
:
self
.
logs
[
-
1
].
reject
(
MSG_NOT_ARTICLE
,
record
)
stype
=
record
.
subtype
()
if
stype
!=
"article"
:
msg
=
(
MSG_IS_PREPRINT
if
stype
==
"preprint"
else
MSG_NOT_ARTICLE
)
self
.
logs
[
-
1
].
reject
(
msg
,
record
)
return
False
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment