Commit 24b538af authored by PkSM3's avatar PkSM3

[BUGFIX] +lang for istex parser

parent aa4605c0
......@@ -19,7 +19,7 @@ class ISTex(FileParser):
"source" : 'corpusName',
"title" : 'title',
"genre" : "genre",
# "language_iso3" : 'MedlineCitation/Article/Language',
"language_iso3" : 'language',
"doi" : 'doi',
"host" : 'host',
"publication_date" : 'pubdate',
......@@ -79,6 +79,8 @@ class ISTex(FileParser):
RealDate = hyperdata["publication_date"]
if "publication_date" in hyperdata: hyperdata.pop("publication_date")
if "language_iso3" in hyperdata:
hyperdata["language_iso3"] = hyperdata["language_iso3"][0]
Decision=""
if len(RealDate)>4:
......
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