@hep.over('<STR_LIT>', '<STR_LIT>')<EOL>@utils.for_each_value<EOL>def references(self, key, value):
def _has_curator_flag(value):<EOL><INDENT>normalized_nine_values = [el.upper() for el in force_list(value.get('<STR_LIT>'))]<EOL>return '<STR_LIT>' in normalized_nine_values<EOL><DEDENT>def _is_curated(value):<EOL><INDENT>return force_single_element(value.get('<STR_LIT:z>')) == '<STR_LIT:1>' and _has_curator_flag(value)<EOL><DEDENT>def _set_record(el):<EOL><INDENT>recid = maybe_int(el)<EOL>record = get_record_ref(recid, '<STR_LIT>')<EOL>rb.set_record(record)<EOL><DEDENT>rb = ReferenceBuilder()<EOL>mapping = [<EOL>('<STR_LIT:0>', _set_record),<EOL>('<STR_LIT:a>', rb.add_uid),<EOL>('<STR_LIT:b>', rb.add_uid),<EOL>('<STR_LIT:c>', rb.add_collaboration),<EOL>('<STR_LIT:e>', partial(rb.add_author, role='<STR_LIT>')),<EOL>('<STR_LIT:h>', rb.add_refextract_authors_str),<EOL>('<STR_LIT:i>', rb.add_uid),<EOL>('<STR_LIT:k>', rb.set_texkey),<EOL>('<STR_LIT:m>', rb.add_misc),<EOL>('<STR_LIT:o>', rb.set_label),<EOL>('<STR_LIT:p>', rb.set_publisher),<EOL>('<STR_LIT:q>', rb.add_parent_title),<EOL>('<STR_LIT:r>', rb.add_report_number),<EOL>('<STR_LIT:s>', rb.set_pubnote),<EOL>('<STR_LIT:t>', rb.add_title),<EOL>('<STR_LIT:x>', rb.add_raw_reference),<EOL>('<STR_LIT:y>', rb.set_year),<EOL>]<EOL>for field, method in mapping:<EOL><INDENT>for el in force_list(value.get(field)):<EOL><INDENT>if el:<EOL><INDENT>method(el)<EOL><DEDENT><DEDENT><DEDENT>for el in dedupe_list(force_list(value.get('<STR_LIT:u>'))):<EOL><INDENT>if el:<EOL><INDENT>rb.add_url(el)<EOL><DEDENT><DEDENT>if _is_curated(value):<EOL><INDENT>rb.curate()<EOL><DEDENT>if _has_curator_flag(value):<EOL><INDENT>rb.obj['<STR_LIT>'] = True<EOL><DEDENT>return rb.obj<EOL>
Populate the ``references`` key.