@hep2marc.over('<STR_LIT>', '<STR_LIT>')<EOL>def thesis_info2marc(self, key, value):
def _get_b_value(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>}<EOL>degree_type = value.get('<STR_LIT>')<EOL>if degree_type:<EOL><INDENT>return DEGREE_TYPES_MAP.get(degree_type)<EOL><DEDENT><DEDENT>result_500 = self.get('<STR_LIT>', [])<EOL>result_502 = self.get('<STR_LIT>', {})<EOL>if value.get('<STR_LIT>'):<EOL><INDENT>result_500.append({<EOL>'<STR_LIT:a>': u'<STR_LIT>'.format(value.get('<STR_LIT>')),<EOL>})<EOL><DEDENT>result_502 = {<EOL>'<STR_LIT:b>': _get_b_value(value),<EOL>'<STR_LIT:c>': [el['<STR_LIT:name>'] for el in force_list(value.get('<STR_LIT>'))],<EOL>'<STR_LIT:d>': value.get('<STR_LIT:date>'),<EOL>}<EOL>self['<STR_LIT>'] = result_500<EOL>return result_502<EOL>
Populate the ``502`` MARC field.

    Also populates the ``500`` MARC field through side effects.