def component_doi(soup):
component_doi = []<EOL>object_id_tags = raw_parser.object_id(soup, pub_id_type = "<STR_LIT>")<EOL>component_list = components(soup)<EOL>position = <NUM_LIT:1><EOL>for tag in object_id_tags:<EOL><INDENT>component_object = {}<EOL>component_object["<STR_LIT>"] = doi_uri_to_doi(tag.text)<EOL>component_object["<STR_LIT>"] = position<EOL>for component in component_list:<EOL><INDENT>if "<STR_LIT>" in component and component["<STR_LIT>"] == component_object["<STR_LIT>"]:<EOL><INDENT>component_object["<STR_LIT:type>"] = component["<STR_LIT:type>"]<EOL><DEDENT><DEDENT>component_doi.append(component_object)<EOL>position = position + <NUM_LIT:1><EOL><DEDENT>return component_doi<EOL>
Look for all object-id of pub-type-id = doi, these are the component DOI tags