@hep.over('<STR_LIT>', '<STR_LIT>')<EOL>def thesis_info(self, key, value):
def _get_degree_type(value):<EOL><INDENT>DEGREE_TYPES_MAP = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>}<EOL>b_value = force_single_element(value.get('<STR_LIT:b>', '<STR_LIT>'))<EOL>if b_value:<EOL><INDENT>return DEGREE_TYPES_MAP.get(b_value.upper(), '<STR_LIT>')<EOL><DEDENT><DEDENT>def _get_institutions(value):<EOL><INDENT>c_values = force_list(value.get('<STR_LIT:c>'))<EOL>z_values = force_list(value.get('<STR_LIT:z>'))<EOL>if len(c_values) != len(z_values):<EOL><INDENT>return [{'<STR_LIT:name>': c_value} for c_value in c_values]<EOL><DEDENT>else:<EOL><INDENT>return [{<EOL>'<STR_LIT>': True,<EOL>'<STR_LIT:name>': c_value,<EOL>'<STR_LIT>': get_record_ref(z_value, '<STR_LIT>'),<EOL>} for c_value, z_value in zip(c_values, z_values)]<EOL><DEDENT><DEDENT>thesis_info = self.get('<STR_LIT>', {})<EOL>thesis_info['<STR_LIT:date>'] = normalize_date(force_single_element(value.get('<STR_LIT:d>')))<EOL>thesis_info['<STR_LIT>'] = _get_degree_type(value)<EOL>thesis_info['<STR_LIT>'] = _get_institutions(value)<EOL>return thesis_info<EOL>
Populate the ``thesis_info`` key.