Skip to content

Commit

Permalink
added fields
Browse files Browse the repository at this point in the history
  • Loading branch information
zdefne-usgs committed Apr 22, 2019
1 parent f99bc30 commit dde4736
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions yaml2ncml/yaml2ncml.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def add_global_atts(text, a):
for key, value in d.items():
# Handle simple attribute pairs first.
if key in ['id', 'license', 'summary', 'title', 'project',
'naming_authority', 'references', 'acknowledgment']:
'naming_authority', 'references', 'acknowledgment','keywords_vocabulary']:
text += str_att(key, value)
elif key in ['creator', 'publisher']:
email = value.get("email", None)
Expand Down Expand Up @@ -103,11 +103,6 @@ def add_global_atts(text, a):
issued = value.get("issued", None)
if issued:
text += str_att('_'.join([key, 'publication']), issued)
elif key in ['cdm_data_type']:
cdm_data_type = value.get("cdm_data_type", None)
if cdm_data_type:
text += str_att('_'.join([key, 'creation']), created)
text += str_att(key, value)
return text


Expand Down

0 comments on commit dde4736

Please sign in to comment.