-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added tests to crossref posted_content, funding
modified: adsingestp/parsers/crossref.py modified: tests/stubdata/input/crossref_preprint_10.1002-essoar.10508651.1.xml modified: tests/stubdata/input/crossref_preprint_10.1002-essoar.10511074.2.xml modified: tests/stubdata/input/crossref_preprint_10.31223-X55K7G.xml modified: tests/stubdata/input/crossref_preprint_10.31223-X5FW25.xml modified: tests/stubdata/input/crossref_preprint_10.31223-X5WD2C.xml modified: tests/stubdata/output/crossref_cn_10.1093=mnras=stac2975.json modified: tests/stubdata/output/crossref_cn_10.1093=pasj=psac053.json new file: tests/stubdata/output/crossref_preprint_10.1002-essoar.10508651.1.json new file: tests/stubdata/output/crossref_preprint_10.1002-essoar.10511074.2.json new file: tests/stubdata/output/crossref_preprint_10.31223-X55K7G.json new file: tests/stubdata/output/crossref_preprint_10.31223-X5FW25.json new file: tests/stubdata/output/crossref_preprint_10.31223-X5WD2C.json modified: tests/test_crossref.py
- Loading branch information
1 parent
ccca151
commit 273ea4f
Showing
14 changed files
with
1,339 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,4 +143,4 @@ | |
</posted_content> | ||
</crossref> | ||
</doi_record> | ||
</doi_records> | ||
</doi_records> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,4 +90,4 @@ | |
</posted_content> | ||
</crossref> | ||
</doi_record> | ||
</doi_records> | ||
</doi_records> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,4 +73,4 @@ | |
</posted_content> | ||
</crossref> | ||
</doi_record> | ||
</doi_records> | ||
</doi_records> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,4 +168,4 @@ | |
</posted_content> | ||
</crossref> | ||
</doi_record> | ||
</doi_records> | ||
</doi_records> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,4 +54,4 @@ | |
</posted_content> | ||
</crossref> | ||
</doi_record> | ||
</doi_records> | ||
</doi_records> |
252 changes: 251 additions & 1 deletion
252
tests/stubdata/output/crossref_cn_10.1093=mnras=stac2975.json
Large diffs are not rendered by default.
Oops, something went wrong.
208 changes: 207 additions & 1 deletion
208
tests/stubdata/output/crossref_cn_10.1093=pasj=psac053.json
Large diffs are not rendered by default.
Oops, something went wrong.
276 changes: 276 additions & 0 deletions
276
tests/stubdata/output/crossref_preprint_10.1002-essoar.10508651.1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,276 @@ | ||
{ | ||
"recordData": { | ||
"createdTime": "", | ||
"parsedTime": "", | ||
"loadType": "fromFile", | ||
"loadFormat": "OtherXML", | ||
"loadLocation": "", | ||
"recordOrigin": "" | ||
}, | ||
"pubDate": { | ||
"electrDate": "2021-11-08" | ||
}, | ||
"publication": { | ||
"publisher": "Earth and Space Science Open Archive (ESSOAr)", | ||
"pubYear": "2021" | ||
}, | ||
"persistentIDs": [ | ||
{ | ||
"DOI": "10.1002/essoar.10508651.1" | ||
} | ||
], | ||
"authors": [ | ||
{ | ||
"name": { | ||
"surname": "Livi", | ||
"given_name": "Roberto" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of California" | ||
} | ||
], | ||
"attrib": { | ||
"orcid": "0000-0002-0396-0547" | ||
} | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Larson", | ||
"given_name": "Davin E" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of California" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Kasper", | ||
"given_name": "Justin C" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of Michigan" | ||
}, | ||
{ | ||
"affPubRaw": "Smithsonian Astrophysical Observatory" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Abiad", | ||
"given_name": "Robert" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of California" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Case", | ||
"given_name": "Anthony W" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "Smithsonian Astrophysical Observatory" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Klein", | ||
"given_name": "Kristopher G" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of Michigan" | ||
}, | ||
{ | ||
"affPubRaw": "University of Arizona" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Curtis", | ||
"given_name": "David W" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of California" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Dalton", | ||
"given_name": "Gregory" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of California" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Stevens", | ||
"given_name": "Michael" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "Smithsonian Astrophysical Observatory" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Korreck", | ||
"given_name": "Kelly E" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "Smithsonian Astrophysical Observatory" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Ho", | ||
"given_name": "George" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "Applied Physics Laboratory, Johns Hopkins University" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Robinson", | ||
"given_name": "Miles" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of California" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Tiu", | ||
"given_name": "Chris" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "NASA" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Whittlesey", | ||
"given_name": "Phyllis L" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of California" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Verniero", | ||
"given_name": "J L" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of California" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Halekas", | ||
"given_name": "Jasper" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of Iowa" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Mcfadden", | ||
"given_name": "James" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of California" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Marckwordt", | ||
"given_name": "Mario" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of California" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Slagle", | ||
"given_name": "Amanda" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of California" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Abatcha", | ||
"given_name": "Mamuda" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of California" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": { | ||
"surname": "Rahmati", | ||
"given_name": "Ali" | ||
}, | ||
"affiliation": [ | ||
{ | ||
"affPubRaw": "University of California" | ||
} | ||
] | ||
} | ||
], | ||
"title": { | ||
"textEnglish": "The Solar Probe ANalyzer -Ions on Parker Solar Probe" | ||
}, | ||
"funding": [ | ||
{ | ||
"agencyname": "National Aeronautics and Space Administration", | ||
"agencyid": { | ||
"idvalue": "100000104" | ||
}, | ||
"awardnumber": "NNN06AA01C" | ||
} | ||
] | ||
} |
Oops, something went wrong.