@hep2marc.over('<STR_LIT>', '<STR_LIT>')<EOL>@utils.for_each_value<EOL>def references2marc(self, key, value):
reference = value.get('<STR_LIT>', {})<EOL>pids = force_list(reference.get('<STR_LIT>'))<EOL>a_values = ['<STR_LIT>' + el for el in force_list(reference.get('<STR_LIT>'))]<EOL>a_values.extend(['<STR_LIT>' + el['<STR_LIT:value>'] for el in pids if el.get('<STR_LIT>') == '<STR_LIT>'])<EOL>a_values.extend(['<STR_LIT>' + el['<STR_LIT:value>'] for el in pids if el.get('<STR_LIT>') == '<STR_LIT>'])<EOL>external_ids = force_list(reference.get('<STR_LIT>'))<EOL>u_values = force_list(get_value(reference, '<STR_LIT>'))<EOL>u_values.extend(CDS_RECORD_FORMAT.format(el['<STR_LIT:value>']) for el in external_ids if el.get('<STR_LIT>') == '<STR_LIT>')<EOL>u_values.extend(ADS_RECORD_FORMAT.format(el['<STR_LIT:value>']) for el in external_ids if el.get('<STR_LIT>') == '<STR_LIT>')<EOL>authors = force_list(reference.get('<STR_LIT>'))<EOL>e_values = [el['<STR_LIT>'] for el in authors if el.get('<STR_LIT>') == '<STR_LIT>']<EOL>h_values = [el['<STR_LIT>'] for el in authors if el.get('<STR_LIT>') != '<STR_LIT>']<EOL>r_values = force_list(reference.get('<STR_LIT>'))<EOL>if reference.get('<STR_LIT>'):<EOL><INDENT>arxiv_eprint = reference['<STR_LIT>']<EOL>r_values.append('<STR_LIT>' + arxiv_eprint if is_arxiv_post_2007(arxiv_eprint) else arxiv_eprint)<EOL><DEDENT>if reference.get('<STR_LIT>'):<EOL><INDENT>reference['<STR_LIT>'] = convert_new_publication_info_to_old([reference['<STR_LIT>']])[<NUM_LIT:0>]<EOL><DEDENT>journal_title = get_value(reference, '<STR_LIT>')<EOL>journal_volume = get_value(reference, '<STR_LIT>')<EOL>page_start = get_value(reference, '<STR_LIT>')<EOL>page_end = get_value(reference, '<STR_LIT>')<EOL>artid = get_value(reference, '<STR_LIT>')<EOL>s_value = build_pubnote(journal_title, journal_volume, page_start, page_end, artid)<EOL>m_value = '<STR_LIT>'.join(force_list(reference.get('<STR_LIT>')))<EOL>return {<EOL>'<STR_LIT:0>': get_recid_from_ref(value.get('<STR_LIT>')),<EOL>'<STR_LIT>': '<STR_LIT>' if value.get('<STR_LIT>') else None,<EOL>'<STR_LIT:a>': a_values,<EOL>'<STR_LIT:b>': get_value(reference, '<STR_LIT>'),<EOL>'<STR_LIT:c>': reference.get('<STR_LIT>'),<EOL>'<STR_LIT:e>': e_values,<EOL>'<STR_LIT:h>': h_values,<EOL>'<STR_LIT:i>': reference.get('<STR_LIT>'),<EOL>'<STR_LIT:k>': reference.get('<STR_LIT>'),<EOL>'<STR_LIT:m>': m_value,<EOL>'<STR_LIT:o>': reference.get('<STR_LIT:label>'),<EOL>'<STR_LIT:p>': get_value(reference, '<STR_LIT>'),<EOL>'<STR_LIT:q>': get_value(reference, '<STR_LIT>'),<EOL>'<STR_LIT:r>': r_values,<EOL>'<STR_LIT:s>': s_value,<EOL>'<STR_LIT:t>': get_value(reference, '<STR_LIT>'),<EOL>'<STR_LIT:u>': u_values,<EOL>'<STR_LIT:x>': get_value(value, '<STR_LIT>'),<EOL>'<STR_LIT:y>': get_value(reference, '<STR_LIT>'),<EOL>'<STR_LIT:z>': <NUM_LIT:1> if value.get('<STR_LIT>') else <NUM_LIT:0>,<EOL>}<EOL>
Populate the ``999C5`` MARC field.