def transform_courserun_title(self, content_metadata_item):
title = content_metadata_item.get('<STR_LIT:title>') or '<STR_LIT>'<EOL>course_run_start = content_metadata_item.get('<STR_LIT:start>')<EOL>if course_run_start:<EOL><INDENT>if course_available_for_enrollment(content_metadata_item):<EOL><INDENT>title += '<STR_LIT>'.format(<EOL>parse_lms_api_datetime(course_run_start),<EOL>starts=_('<STR_LIT>')<EOL>)<EOL><DEDENT>else:<EOL><INDENT>title += '<STR_LIT>'.format(<EOL>parse_lms_api_datetime(course_run_start),<EOL>enrollment_closed=_('<STR_LIT>')<EOL>)<EOL><DEDENT><DEDENT>title_with_locales = []<EOL>content_metadata_language_code = transform_language_code(content_metadata_item.get('<STR_LIT>', '<STR_LIT>'))<EOL>for locale in self.enterprise_configuration.get_locales(default_locale=content_metadata_language_code):<EOL><INDENT>title_with_locales.append({<EOL>'<STR_LIT>': locale,<EOL>'<STR_LIT:value>': title<EOL>})<EOL><DEDENT>return title_with_locales<EOL>
Return the title of the courserun content item.