Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 9a53b6c8 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update Proceedings and RecordHebPubli to identify non publish proceeding

parent 90192b42
......@@ -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.",
......
......@@ -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
......
......@@ -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
......
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