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
Open sidebar
limbra
limbra
Commits
9a53b6c8
Commit
9a53b6c8
authored
Jan 25, 2021
by
LE GAC Renaud
Browse files
Update Proceedings and RecordHebPubli to identify non publish proceeding
parent
90192b42
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
languages/fr-fr.py
languages/fr-fr.py
+1
-0
modules/harvest_tools/proceedings.py
modules/harvest_tools/proceedings.py
+6
-1
modules/store_tools/recordheppubli.py
modules/store_tools/recordheppubli.py
+3
-2
No files found.
languages/fr-fr.py
View file @
9a53b6c8
...
...
@@ -601,6 +601,7 @@
'Reject preprint is a thesis'
:
'Rejeté ce preprint est une thèse'
,
'Reject publication is a preprint'
:
'Rejeté la publication est un preprint'
,
'Reject publication is a proceeding'
:
'Rejeté la publication est un proceeding'
,
'Reject publication is a proceeding not yet published'
:
"Rejeté la publication est un proceeding qui n'est pas publié"
,
'Reject publication is not a preprint'
:
"Rejeté la publication n'est pas un preprint"
,
'Reject publication is not and article'
:
"Rejeté la publication n'est pas un article"
,
'Reject publisher is unknown.'
:
"Rejeté l'éditeur est inconnu."
,
...
...
modules/harvest_tools/proceedings.py
View file @
9a53b6c8
...
...
@@ -7,6 +7,7 @@ from plugin_dbui import get_id, UNDEF_ID
from
store_tools
import
CheckException
MSG_NOT_PROCEEDING
=
"Reject publication is not a proceeding"
MSG_PROC_NOT_PUBLISH
=
"Reject publication is a proceeding not yet published"
class
Proceedings
(
Automaton
):
...
...
@@ -42,7 +43,11 @@ class Proceedings(Automaton):
self
.
logger
.
debug
(
f
"
{
T4
}
check and fix record (proceeding)"
)
stype
=
record
.
subtype
()
if
stype
!=
"proceeding"
:
if
stype
==
"conference paper"
:
self
.
logs
[
-
1
].
reject
(
MSG_PROC_NOT_PUBLISH
,
record
=
record
)
return
False
elif
stype
!=
"proceeding"
:
self
.
logs
[
-
1
].
reject
(
MSG_IS
.
format
(
stype
),
record
=
record
)
return
False
...
...
modules/store_tools/recordheppubli.py
View file @
9a53b6c8
...
...
@@ -527,7 +527,8 @@ class RecordHepPubli(dict, AuthorsMixin, PublicationInfoMixin):
Returns:
str:
* articles, preprint, proceeding, note, report or thesis
* articles, conference paper, preprint, proceeding, note,
report or thesis
* empty string when it is not defined
"""
...
...
@@ -542,7 +543,7 @@ class RecordHepPubli(dict, AuthorsMixin, PublicationInfoMixin):
return
(
"preprint"
if
pubinfo
is
None
else
"article"
)
elif
doctype
==
"conference paper"
:
return
(
"proceeding"
if
self
.
is_published
()
else
""
)
return
(
"proceeding"
if
self
.
is_published
()
else
doctype
)
return
doctype
...
...
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