def references_json_unknown_details(ref_content, soup=None):
details = "<STR_LIT>"<EOL>if "<STR_LIT>" in ref_content:<EOL><INDENT>if "<STR_LIT>" in ref_content["<STR_LIT>"]:<EOL><INDENT>details += ref_content["<STR_LIT>"]["<STR_LIT>"]<EOL><DEDENT>else:<EOL><INDENT>details += ref_content["<STR_LIT>"]<EOL><DEDENT><DEDENT>if soup:<EOL><INDENT>if "<STR_LIT:id>" in ref_content:<EOL><INDENT>ref_tag = first(soup.select("<STR_LIT>" + ref_content["<STR_LIT:id>"]))<EOL>if ref_tag:<EOL><INDENT>for remove_tag in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>",<EOL>"<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>ref_tag = remove_tag_from_tag(ref_tag, remove_tag)<EOL><DEDENT>for tag in first(raw_parser.element_citation(ref_tag)):<EOL><INDENT>if node_text(tag) is not None:<EOL><INDENT>if details != "<STR_LIT>":<EOL><INDENT>details += "<STR_LIT:U+002CU+0020>"<EOL><DEDENT>details += node_text(tag)<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if details == "<STR_LIT>":<EOL><INDENT>return None<EOL><DEDENT>else:<EOL><INDENT>return details<EOL><DEDENT>
Extract detail value for references of type unknown