комит
This commit is contained in:
1 parent
92ff87a917
commit
7e29c53ce9
21 files changed
+890
-91
No files matched your search
@@ -0,0 +1,21 @@
|
||||
const TITLE_SEPARATOR = ' — ';
|
||||
|
||||
function normalizeTitlePart(value) {
|
||||
return String(value ?? '').trim();
|
||||
}
|
||||
|
||||
export function buildAcademicCalendarTitle({
|
||||
specialtyCode,
|
||||
specialtyProfileName,
|
||||
studyFormName,
|
||||
academicYearTitle
|
||||
} = {}) {
|
||||
const parts = [
|
||||
specialtyCode,
|
||||
specialtyProfileName,
|
||||
studyFormName,
|
||||
academicYearTitle
|
||||
].map(normalizeTitlePart);
|
||||
|
||||
return parts.every(Boolean) ? parts.join(TITLE_SEPARATOR) : '';
|
||||
}
|
||||
Reference in new issue
Block a user