From 66643f84d98b3720d486f152d3a78c5227521e03 Mon Sep 17 00:00:00 2001 From: Leonardo Mendoza Date: Thu, 2 Jan 2025 23:16:47 -0600 Subject: [PATCH] deep-worktype-menu --- .../record/components/work-form/work-form/work-type-menu.ts | 5 ++++- src/app/types/works.endpoint.ts | 2 +- src/locale/properties/works/works.en.properties | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/app/record/components/work-form/work-form/work-type-menu.ts b/src/app/record/components/work-form/work-form/work-type-menu.ts index a62e5ec85..35c9968d4 100644 --- a/src/app/record/components/work-form/work-form/work-type-menu.ts +++ b/src/app/record/components/work-form/work-form/work-type-menu.ts @@ -285,7 +285,10 @@ export const WorkTypeMenu: DeepSelectMenu[] = [ description: $localize`:@@works.teachingDescription:Working with students`, content: [ // No value for: Lecture ?? - /// No value for: Teaching material ?? + { + value: WorkTypes.learningObject, + label: WorkTypesLabels[WorkTypes.learningObject], + }, { value: WorkTypes.supervisedStudentPublication, label: WorkTypesLabels[WorkTypes.supervisedStudentPublication], diff --git a/src/app/types/works.endpoint.ts b/src/app/types/works.endpoint.ts index f9bc8f562..0e1f0fe17 100644 --- a/src/app/types/works.endpoint.ts +++ b/src/app/types/works.endpoint.ts @@ -143,7 +143,7 @@ export const WorkTypesLabels = { [WorkTypes.conferenceProceedings]: $localize`:@@works.conferenceProceedings:Conference proceedings`, [WorkTypes.design]: $localize`:@@works.design:Design`, [WorkTypes.image]: $localize`:@@works.image:Image`, - [WorkTypes.learningObject]: $localize`:@@works.learningObject:Learning object`, + [WorkTypes.learningObject]: $localize`:@@works.learningObject:Teaching material`, [WorkTypes.movingImage]: $localize`:@@works.movingImage:Moving image or video`, [WorkTypes.musicalComposition]: $localize`:@@works.musicalComposition:Musical composition`, [WorkTypes.sound]: $localize`:@@works.sound:Sound`, diff --git a/src/locale/properties/works/works.en.properties b/src/locale/properties/works/works.en.properties index a4288422e..9e4d4b19a 100644 --- a/src/locale/properties/works/works.en.properties +++ b/src/locale/properties/works/works.en.properties @@ -269,7 +269,6 @@ works.conferencePresentation=Conference presentation works.conferenceProceedings=Conference proceedings works.design=Design works.image=Image -works.learningObject=Learning object works.movingImage=Moving image or video works.musicalComposition=Musical composition works.sound=Sound @@ -277,4 +276,5 @@ works.transcriptions=Transcription works.dissemination=Dissemination works.academicPublication=Academic publications works.reviewAndEditing=Review and editing -works.pleaseSelectWork=Please select a work type \ No newline at end of file +works.pleaseSelectWork=Please select a work type +works.learningObject=Teaching material \ No newline at end of file