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
98acb374
Commit
98acb374
authored
Jul 03, 2017
by
LE GAC Renaud
Browse files
Migrate Edit and Insert.
parent
336fb685
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
controllers/harvest.py
controllers/harvest.py
+4
-8
modules/harvest_tools/automaton.py
modules/harvest_tools/automaton.py
+1
-1
No files found.
controllers/harvest.py
View file @
98acb374
...
...
@@ -144,9 +144,6 @@ def edit_insert():
values
=
{}
check
=
CheckAndFix
()
# fix invalid oai
check
.
recover_oai
(
record
,
selector
.
host
)
# title, preprint, URL, report number
values
[
"PublicationsTitle"
]
=
record
.
title
()
values
[
"PublicationsPreprint"
]
=
record
.
preprint_number
()
...
...
@@ -203,7 +200,6 @@ def edit_insert():
# publishers
if
selector
.
controller
in
(
"articles"
,
"proceedings"
):
check
.
clean_erratum
(
record
)
check
.
paper_reference
(
record
)
check
.
format_editor
(
record
)
...
...
@@ -224,7 +220,7 @@ def edit_insert():
try
:
check
.
country
(
record
)
check
.
conference_date
(
record
,
selector
.
host
)
check
.
conference_date
(
record
)
except
CheckException
:
pass
...
...
@@ -268,16 +264,16 @@ def edit_insert():
# submitted date and year
try
:
check
.
submitted
(
record
)
check
.
year
(
record
)
except
CheckException
:
pass
values
[
"PublicationsSubmitted"
]
=
", "
.
join
(
record
.
submitted
()
)
values
[
"PublicationsSubmitted"
]
=
record
.
submitted
()
if
record
.
is_published
():
year
=
record
.
paper_year
()
else
:
year
=
record
.
year
()
year
=
record
.
submitted
()[
0
:
4
]
values
[
"PublicationsYear"
]
=
year
...
...
modules/harvest_tools/automaton.py
View file @
98acb374
...
...
@@ -393,7 +393,7 @@ class Automaton(object):
try
:
# fix record with a missing OAI
if
not
self
.
check
.
is_oai
(
record
):
oai
=
OAI
%
(
self
.
harvester
.
host
,
record
.
id
)
oai
=
OAI
%
(
self
.
harvester
.
host
,
record
.
id
()
)
record
[
u
"oai"
]
=
{
u
"value"
:
oai
}
if
self
.
check
.
is_bad_oai_used
(
record
):
...
...
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