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
aba498a5
Commit
aba498a5
authored
Nov 15, 2019
by
LE GAC Renaud
Browse files
Update Marc12._add_conference_data to add a protection.
parent
ddbaf71d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
languages/fr-fr.py
languages/fr-fr.py
+1
-0
modules/invenio_tools/base.py
modules/invenio_tools/base.py
+1
-0
modules/invenio_tools/marc12.py
modules/invenio_tools/marc12.py
+5
-2
No files found.
languages/fr-fr.py
View file @
aba498a5
...
...
@@ -548,6 +548,7 @@
'Reject no conference date'
:
'Rejeté pas de dates pour la conférence'
,
'Reject no conference information'
:
"Rejeté pas d'information sur la conférence"
,
'Reject no CPPM authors'
:
"Rejeté pas d'auteurs du CPPM"
,
'Reject no host information in record'
:
"Rejeté l'entrepôt n'est pas féfini dans la notice"
,
'Reject no OAI identifier'
:
"Rejeté pas d'identifiant OAI"
,
'Reject no preprint number'
:
'Rejeté pas de numéro de preprint'
,
'Reject no preprint number nor submission date'
:
'Rejeté pas de numéro de preprint ou de date de soumission'
,
...
...
modules/invenio_tools/base.py
View file @
aba498a5
...
...
@@ -8,6 +8,7 @@ ARXIV_PDF = "http://arxiv.org/pdf/"
MSG_NO_CONF
=
"Reject no conference information"
MSG_NO_COUNTRY
=
"Reject invalid country"
MSG_NO_HOST
=
"Reject no host information in record"
MSG_NO_PUBLISHER
=
"Reject invalid publisher"
MSG_NO_THESIS
=
"Reject no thesis information"
MSG_WELL_FORMED_COLLABORATION
=
"Reject collaboration is not well formed"
...
...
modules/invenio_tools/marc12.py
View file @
aba498a5
...
...
@@ -8,6 +8,7 @@ from .base import (is_conference,
is_institute
,
is_thesis
,
MSG_NO_CONF
,
MSG_NO_HOST
,
REG_OAI
)
from
.exception
import
Marc12Exception
...
...
@@ -52,11 +53,13 @@ class Marc12(object):
record (Record): record describing a conference.
"""
#
alias
#
reference to host
host
=
record
.
host
()
key
=
record
.
reference_conference_key
()
if
host
in
(
""
,
None
):
raise
Marc12Exception
(
MSG_NO_HOST
)
# for talk or proceeding a key is always defined
key
=
record
.
reference_conference_key
()
if
not
key
:
raise
Marc12Exception
(
MSG_NO_CONF
)
...
...
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