def create_deleted_record(self, record):
identifier = record_get_field_value(record,<EOL>tag="<STR_LIT>",<EOL>code="<STR_LIT:a>")<EOL>recid = identifier.split("<STR_LIT::>")[-<NUM_LIT:1>]<EOL>try:<EOL><INDENT>source = identifier.split("<STR_LIT::>")[<NUM_LIT:1>]<EOL><DEDENT>except IndexError:<EOL><INDENT>source = "<STR_LIT>"<EOL><DEDENT>record_add_field(record, "<STR_LIT>",<EOL>subfields=[("<STR_LIT>", source), ("<STR_LIT:a>", recid)])<EOL>record_add_field(record, "<STR_LIT>",<EOL>subfields=[("<STR_LIT:c>", "<STR_LIT>")])<EOL>return record<EOL>
Generate the record deletion if deleted form OAI-PMH.