Skip to content

Commit f3be9c7

Browse files
committed
support publication year
1 parent f16b2ff commit f3be9c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

caltechdata_write/customize_schema.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ def customize_schema(json_record):
105105
d['relevantDateType']=d.pop('dateType')
106106
json_record['relevantDates']=json_record.pop('dates')
107107

108+
if "publicationYear" in json_record:
109+
json_record["publicationDate"]=json_record["publicationYear"]
110+
108111
#license
109112
if 'rightsList' in json_record:
110113
licenses = json_record['rightsList']

0 commit comments

Comments
 (0)