Commit 08e8a111 authored by Vilem Ded's avatar Vilem Ded
Browse files

Merge branch 'update_data_declarations_field' into 'master'

Update data declarations field

See merge request pinar.alper/metadata-tools!18
parents d3ab4195 41f616ce
...@@ -262,13 +262,13 @@ class DishXlsExporter: ...@@ -262,13 +262,13 @@ class DishXlsExporter:
if sheet[45, 1] and ('not' in sheet[45, 1]): if sheet[45, 1] and ('not' in sheet[45, 1]):
if sheet[44, 1] and ('no' in sheet[44, 1]): if sheet[44, 1] and ('no' in sheet[44, 1]):
datadec_dict["access_category"] = "open-access" #this is just an initial interpretation and should be further curated in catalog datadec_dict["access_category"] = "open_access" #this is just an initial interpretation and should be further curated in catalog
datadec_dict["access_procedure"] = datadec_dict["access_procedure"] + "No additional form is needed to request access." datadec_dict["access_procedure"] = datadec_dict["access_procedure"] + "No additional form is needed to request access."
else: else:
datadec_dict["access_category"] = "registered-access" #this is just an initial interpretation and should be further curated in catalog datadec_dict["access_category"] = "registered_access" #this is just an initial interpretation and should be further curated in catalog
datadec_dict["access_procedure"] = datadec_dict["access_procedure"] + "Additional form is needed to request access." datadec_dict["access_procedure"] = datadec_dict["access_procedure"] + "Additional form is needed to request access."
else: else:
datadec_dict["access_category"] = "controlled-access" datadec_dict["access_category"] = "controlled_access"
datadec_dict["access_procedure"] = datadec_dict["access_procedure"] + sheet[46, 1] datadec_dict["access_procedure"] = datadec_dict["access_procedure"] + sheet[46, 1]
...@@ -354,9 +354,9 @@ class DishXlsExporter: ...@@ -354,9 +354,9 @@ class DishXlsExporter:
def process_deidentification(self, deid_str): def process_deidentification(self, deid_str):
if 'seu' in deid_str: if 'seu' in deid_str:
return 'pseudonymized' return 'pseudonymization'
elif 'non' in deid_str: elif 'non' in deid_str:
return 'anonymized' return 'anonymization'
def process_consent_status(self, consent_str): def process_consent_status(self, consent_str):
if 'et' in consent_str: if 'et' in consent_str:
......
Subproject commit 81fb8d257236219555832a7aab3c4ed16a4250c6 Subproject commit d47e7b475d975a029dbe7852cc08bed0bf9c1051
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