def update_journals(self):
for field in record_get_field_instances(self.record, '<STR_LIT>'):<EOL><INDENT>subs = field_get_subfield_instances(field)<EOL>new_subs = []<EOL>volume_letter = "<STR_LIT>"<EOL>journal_name = "<STR_LIT>"<EOL>for idx, (key, value) in enumerate(subs):<EOL><INDENT>if key == '<STR_LIT:p>':<EOL><INDENT>journal_name = self.get_config_item(value, "<STR_LIT>", allow_substring=False)<EOL>journal_name = journal_name.replace('<STR_LIT>', '<STR_LIT:.>').replace('<STR_LIT:.>', '<STR_LIT>').replace('<STR_LIT>', '<STR_LIT>').strip()<EOL><DEDENT>elif key == '<STR_LIT:v>':<EOL><INDENT>volume_letter = value<EOL><DEDENT>else:<EOL><INDENT>new_subs.append((key, value))<EOL><DEDENT><DEDENT>if not journal_name == "<STR_LIT>":<EOL><INDENT>letter = return_letters_from_string(volume_letter)<EOL>if letter:<EOL><INDENT>journal_name = "<STR_LIT>".format(journal_name, letter)<EOL>volume_letter = volume_letter.strip(letter)<EOL><DEDENT><DEDENT>if journal_name:<EOL><INDENT>new_subs.append(("<STR_LIT:p>", journal_name))<EOL><DEDENT>if volume_letter:<EOL><INDENT>new_subs.append(("<STR_LIT:v>", volume_letter))<EOL><DEDENT>record_delete_field(self.record, tag="<STR_LIT>",<EOL>field_position_global=field[<NUM_LIT:4>])<EOL>record_add_field(self.record, "<STR_LIT>", subfields=new_subs)<EOL><DEDENT>
773 journal translations.