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
57e866b5
Commit
57e866b5
authored
Aug 18, 2020
by
LE GAC Renaud
Browse files
Update articles, notes, reports and thesis to fix a bug extracting submitted date
parent
36875551
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
modules/harvest_tools/articles.py
modules/harvest_tools/articles.py
+2
-2
modules/harvest_tools/notes.py
modules/harvest_tools/notes.py
+2
-1
modules/harvest_tools/reports.py
modules/harvest_tools/reports.py
+2
-2
modules/harvest_tools/thesis.py
modules/harvest_tools/thesis.py
+2
-3
No files found.
modules/harvest_tools/articles.py
View file @
57e866b5
...
...
@@ -10,7 +10,6 @@ from .base import (learn_my_authors,
from
.checkandfix
import
CheckException
from
plugin_dbui
import
get_id
,
UNDEF_ID
MSG_NO_EDITOR
=
"Reject article is not published"
MSG_TRANSFORM_PREPRINT
=
"Transform the preprint into an article"
...
...
@@ -22,6 +21,7 @@ class Articles(Automaton):
"""Automaton for articles.
"""
def
__init__
(
self
,
*
args
,
**
kwargs
):
Automaton
.
__init__
(
self
,
*
args
,
**
kwargs
)
...
...
@@ -308,7 +308,7 @@ class Articles(Automaton):
pages
=
record
.
paper_pages
()
preprint_number
=
record
.
preprint_number
()
publication_url
=
record
.
paper_url
()
submitted
=
record
.
submitted
()
[
0
]
submitted
=
record
.
submitted
()
title
=
record
.
title
()
volume
=
record
.
paper_volume
()
year
=
record
.
paper_year
()
...
...
modules/harvest_tools/notes.py
View file @
57e866b5
...
...
@@ -13,6 +13,7 @@ class Notes(Automaton):
"""Automaton for notes.
"""
def
check_record
(
self
,
record
):
"""Check the content of the note in order to fix non conformities.
...
...
@@ -90,7 +91,7 @@ class Notes(Automaton):
origin
=
oai_url
,
publication_url
=
record
.
paper_url
(),
report_numbers
=
record
.
report_number
(),
submitted
=
record
.
submitted
()
[
0
]
,
submitted
=
record
.
submitted
(),
title
=
title
,
year
=
year
)
...
...
modules/harvest_tools/reports.py
View file @
57e866b5
...
...
@@ -6,7 +6,6 @@ from .base import MSG_CRASH, MSG_LOAD
from
.checkandfix
import
CheckException
from
plugin_dbui
import
get_id
,
UNDEF_ID
,
UNKNOWN
MSG_REPORT_NO_NUMBER
=
"Reject no report number"
T4
=
" "
*
4
...
...
@@ -15,6 +14,7 @@ class Reports(Automaton):
"""Automaton for reports to committee.
"""
def
check_record
(
self
,
record
):
"""Check the content of the report in order to fix non conformities.
...
...
@@ -114,7 +114,7 @@ class Reports(Automaton):
preprint
=
record
.
preprint_number
(),
publication_url
=
record
.
paper_url
(),
report_numbers
=
record
.
report_number
(),
submitted
=
record
.
submitted
()
[
0
]
,
submitted
=
record
.
submitted
(),
title
=
title
,
year
=
year
)
...
...
modules/harvest_tools/thesis.py
View file @
57e866b5
...
...
@@ -3,13 +3,11 @@
"""
import
re
from
.automaton
import
Automaton
from
.base
import
MSG_CRASH
,
MSG_LOAD
from
.checkandfix
import
CheckException
from
plugin_dbui
import
get_id
,
UNDEF_ID
T4
=
" "
*
4
...
...
@@ -17,6 +15,7 @@ class Thesis(Automaton):
"""Automaton for thesis.
"""
def
check_record
(
self
,
record
):
"""Check the content of the thesis in order to fix non conformities.
...
...
@@ -106,7 +105,7 @@ class Thesis(Automaton):
id_status
=
UNDEF_ID
,
origin
=
oai_url
,
publication_url
=
record
.
paper_url
(),
submitted
=
record
.
submitted
()
[
0
]
,
submitted
=
record
.
submitted
(),
title
=
title
,
universities
=
universities
,
year
=
year
)
...
...
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