@hepnames2marc.over('<STR_LIT>', '<STR_LIT>')<EOL>@utils.for_each_value<EOL>def ids2marc(self, key, value):
def _is_schema_inspire_bai(id_, schema):<EOL><INDENT>return schema == '<STR_LIT>'<EOL><DEDENT>def _is_schema_inspire_id(id_, schema):<EOL><INDENT>return schema == '<STR_LIT>'<EOL><DEDENT>def _is_schema_spires(id_, schema):<EOL><INDENT>return schema == '<STR_LIT>'<EOL><DEDENT>def _is_schema_linkedin(id, schema):<EOL><INDENT>return schema == '<STR_LIT>'<EOL><DEDENT>def _is_schema_twitter(id, schema):<EOL><INDENT>return schema == '<STR_LIT>'<EOL><DEDENT>id_ = value.get('<STR_LIT:value>')<EOL>schema = value.get('<STR_LIT>')<EOL>if _is_schema_spires(id_, schema):<EOL><INDENT>self.setdefault('<STR_LIT>', []).append({'<STR_LIT:a>': id_})<EOL><DEDENT>elif _is_schema_linkedin(id_, schema):<EOL><INDENT>self.setdefault('<STR_LIT>', []).append(<EOL>{<EOL>'<STR_LIT:u>': u'<STR_LIT>'.format(id=quote_url(id_)),<EOL>'<STR_LIT:y>': '<STR_LIT>',<EOL>}<EOL>)<EOL><DEDENT>elif _is_schema_twitter(id_, schema):<EOL><INDENT>self.setdefault('<STR_LIT>', []).append(<EOL>{<EOL>'<STR_LIT:u>': u'<STR_LIT>'.format(id=id_),<EOL>'<STR_LIT:y>': '<STR_LIT>',<EOL>}<EOL>)<EOL><DEDENT>elif _is_schema_inspire_id(id_, schema):<EOL><INDENT>return {<EOL>'<STR_LIT:a>': id_,<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>}<EOL><DEDENT>elif _is_schema_inspire_bai(id_, schema):<EOL><INDENT>return {<EOL>'<STR_LIT:a>': id_,<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>}<EOL><DEDENT>else:<EOL><INDENT>return {<EOL>'<STR_LIT:a>': id_,<EOL>'<STR_LIT>': schema,<EOL>}<EOL><DEDENT>
Populate the ``035`` MARC field.

    Also populates the ``8564`` and ``970`` MARC field through side effects.