Commit 3be8ca3e authored by Pinar Alper's avatar Pinar Alper
Browse files

fixes to indices

parent 5d2fe642
......@@ -150,42 +150,48 @@ class DishXlsExporter:
if process_yes_no_dontknow_answer(sheet[24, 1]):
use_restrictions.append({'use_class': 'RS-[XX]',
'use_restriction_rule': "CONSTRAINTS",
'use_class_note': sheet[25, 1]})
'use_class_note': sheet[24, 0],
'use_restriction_note': sheet[25,1]})
elif process_yes_no_dontknow_answer(sheet[24, 1]) is not None:
use_restrictions.append({'use_class': 'RS-[XX]',
'use_restriction_rule': "NO_CONSTRAINTS",
'use_class_note': sheet[25, 1]})
'use_class_note': sheet[24, 0]})
if process_yes_no_dontknow_answer(sheet[26, 1]):
use_restrictions.append({'use_class': 'GS-[XX]',
'use_restriction_rule': "CONSTRAINTS",
'use_class_note': sheet[27, 1]})
'use_class_note': sheet[26, 0],
'use_restriction_note': sheet[27,1]})
elif process_yes_no_dontknow_answer(sheet[26, 1]) is not None:
use_restrictions.append({'use_class': 'GS-[XX]',
'use_restriction_rule': "NO_CONSTRAINTS",
'use_class_note': sheet[27, 1]})
'use_class_note': sheet[26, 0]})
if process_yes_no_dontknow_answer(sheet[28, 1]):
use_restrictions.append({'use_class': 'IS',
'use_restriction_rule': "CONSTRAINTS",
'use_class_note': sheet[29, 1]})
'use_class_note': sheet[28, 0],
'use_restriction_note': sheet[29,1]})
elif process_yes_no_dontknow_answer(sheet[28, 1]) is not None:
use_restrictions.append({'use_class': 'IS',
'use_restriction_rule': "NO_CONSTRAINTS",
'use_class_note': sheet[29, 1]})
'use_class_note': sheet[28, 0]})
if process_yes_no_dontknow_answer(sheet[30, 1]):
use_restrictions.append({'use_class': 'TS-[XX]',
'use_restriction_rule': "CONSTRAINTS",
'use_class_note': sheet[31, 1]})
'use_class_note': sheet[30, 0],
'use_restriction_note': sheet[31,1]})
elif process_yes_no_dontknow_answer(sheet[30, 1]) is not None:
use_restrictions.append({'use_class': 'IS',
'use_restriction_rule': "NO_CONSTRAINTS",
'use_class_note': sheet[31, 1]})
'use_class_note': sheet[30, 0]})
if process_yes_no_answer(sheet[35, 1]):
use_restrictions.append({'use_class': 'PS',
'use_restriction_rule': "CONSTRAINTS",
'use_class_note': sheet[35, 0] + " PROJECT: "+dataset_dict["project"]})
'use_class_note': sheet[35, 0],
'use_restriction_note': dataset_dict["project"]})
else:
use_restrictions.append({'use_class': 'PS',
'use_restriction_rule': "NO_CONSTRAINTS",
......@@ -195,44 +201,60 @@ class DishXlsExporter:
datadec_dict["storage_end_date"] = process_possible_date(sheet[37, 1])
use_restrictions.append({'use_class': 'TS-[XX]',
'use_restriction_rule': "CONSTRAINTS",
'use_class_note': process_possible_date(sheet[37, 1])})
'use_class_note': sheet[36, 0],
'use_restriction_note': process_possible_date(sheet[37, 1])})
else:
use_restrictions.append({'use_class': 'TS-[XX]',
'use_restriction_rule': "NO_CONSTRAINTS",
'use_class_note': process_possible_date(sheet[37, 1])})
'use_class_note': sheet[36, 0]})
if process_yes_no_answer(sheet[38, 1]):
use_restrictions.append({'use_class': 'PUB',
'use_restriction_rule': "CONSTRAINTS",
'use_class_note': sheet[39, 1]})
'use_class_note': sheet[38, 0],
'use_restriction_note': sheet[39, 1]})
else:
use_restrictions.append({'use_class': 'PUB',
'use_restriction_rule': "NO_CONSTRAINTS",
'use_class_note': sheet[39, 1]})
'use_class_note': sheet[38, 0]})
if process_yes_no_answer(sheet[40, 1]):
use_restrictions.append({'use_class': 'RTN',
'use_restriction_rule': "CONSTRAINTS",
'use_class_note': sheet[40, 0],
'use_restriction_note': sheet[41, 1]})
else:
use_restrictions.append({'use_class': 'RTN',
'use_restriction_rule': "NO_CONSTRAINTS",
'use_class_note': sheet[40, 0]})
if process_yes_no_answer(sheet[42, 1]):
if sheet[42, 1]:
use_restrictions.append({'use_class': 'Other',
'use_restriction_rule': "CONSTRAINTS",
'use_class_note': sheet[42, 1]})
'use_class_note': sheet[42, 0],
'use_restriction_note': sheet[42, 1]})
if process_yes_no_answer(sheet[47, 1]):
use_restrictions.append({'use_class': 'IP',
'use_restriction_rule': "CONSTRAINTS",
'use_class_note': sheet[48, 1]})
'use_class_note': sheet[47, 0],
'use_restriction_note': sheet[48, 1]})
else:
use_restrictions.append({'use_class': 'IP',
'use_restriction_rule': "NO_CONSTRAINTS",
'use_class_note': sheet[48, 1]})
'use_class_note': sheet[47, 1]})
datadec_dict['use_restrictions'] = use_restrictions
datadec_dict["access_procedure"] = ""
if sheet[45, 1] and ('not' in sheet[45, 1]):
if sheet[44, 1] and ('no' in sheet[44, 1]):
datadec_dict["access_category"] = "open-access"
datadec_dict["access_procedure"] = datadec_dict["access_procedure"] + "Researchers need to sign an access request form."
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."
else:
datadec_dict["access_category"] = "registered-access"
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."
else:
datadec_dict["access_category"] = "controlled-access"
datadec_dict["access_procedure"] = datadec_dict["access_procedure"] + sheet[46, 1]
......
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