Skip to content

Commit 349c5d6

Browse files
committed
9579-v3-work-types-lecture-and-public-speech
1 parent 0d1a367 commit 349c5d6

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
// tslint:disable-next-line: max-line-length
2-
export const BROWSERLIST_REGEXP =
3-
/((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(13[_.]4|13[_.]([5-9]|\d{2,})|13[_.]7|13[_.]([8-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})[_.]\d+|14[_.]0|14[_.]([1-9]|\d{2,})|14[_.]4|14[_.]([5-9]|\d{2,})|14[_.]8|14[_.](9|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})[_.]\d+|15[_.]0|15[_.]([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})[_.]\d+|16[_.]0|16[_.]([1-9]|\d{2,})|(1[7-9]|[2-9]\d|\d{3,})[_.]\d+|17[_.]0|17[_.]([1-9]|\d{2,})|(1[8-9]|[2-9]\d|\d{3,})[_.]\d+)(?:[_.]\d+)?)|((?:Chrome).*OPR\/(74|(7[5-9]|[8-9]\d|\d{3,}))\.\d+\.\d+)|(Edge\/(80|(8[1-9]|9\d|\d{3,})|83|(8[4-9]|9\d|\d{3,}))(?:\.\d+)?)|((Chromium|Chrome)\/(80|(8[1-9]|9\d|\d{3,})|83|(8[4-9]|9\d|\d{3,}))\.\d+(?:\.\d+)?)|(Version\/(13\.1|13\.([2-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})\.\d+|14\.0|14\.([1-9]|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})\.\d+|15\.0|15\.([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+|16\.0|16\.([1-9]|\d{2,})|(1[7-9]|[2-9]\d|\d{3,})\.\d+|17\.0|17\.([1-9]|\d{2,})|(1[8-9]|[2-9]\d|\d{3,})\.\d+)(?:\.\d+)? Safari\/)|(Firefox\/(78|(79|[8-9]\d|\d{3,}))\.\d+\.\d+)|(Firefox\/(78|(79|[8-9]\d|\d{3,}))\.\d+(pre|[ab]\d+[a-z]*)?)/
2+
export const BROWSERLIST_REGEXP = /((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(13[_.]4|13[_.]([5-9]|\d{2,})|13[_.]7|13[_.]([8-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})[_.]\d+|14[_.]0|14[_.]([1-9]|\d{2,})|14[_.]4|14[_.]([5-9]|\d{2,})|14[_.]8|14[_.](9|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})[_.]\d+|15[_.]0|15[_.]([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})[_.]\d+|16[_.]0|16[_.]([1-9]|\d{2,})|(1[7-9]|[2-9]\d|\d{3,})[_.]\d+|17[_.]0|17[_.]([1-9]|\d{2,})|(1[8-9]|[2-9]\d|\d{3,})[_.]\d+)(?:[_.]\d+)?)|((?:Chrome).*OPR\/(74|(7[5-9]|[8-9]\d|\d{3,}))\.\d+\.\d+)|(Edge\/(80|(8[1-9]|9\d|\d{3,})|83|(8[4-9]|9\d|\d{3,}))(?:\.\d+)?)|((Chromium|Chrome)\/(80|(8[1-9]|9\d|\d{3,})|83|(8[4-9]|9\d|\d{3,}))\.\d+(?:\.\d+)?)|(Version\/(13\.1|13\.([2-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})\.\d+|14\.0|14\.([1-9]|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})\.\d+|15\.0|15\.([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+|16\.0|16\.([1-9]|\d{2,})|(1[7-9]|[2-9]\d|\d{3,})\.\d+|17\.0|17\.([1-9]|\d{2,})|(1[8-9]|[2-9]\d|\d{3,})\.\d+)(?:\.\d+)? Safari\/)|(Firefox\/(78|(79|[8-9]\d|\d{3,}))\.\d+\.\d+)|(Firefox\/(78|(79|[8-9]\d|\d{3,}))\.\d+(pre|[ab]\d+[a-z]*)?)/

src/app/record/components/work-form/work-form/work-type-menu.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ export const WorkTypeMenu: DeepSelectMenu[] = [
144144
value: WorkTypes.newspaperArticle,
145145
},
146146
{
147-
label: WorkTypesLabels[WorkTypes.lectureSpeech],
148-
value: WorkTypes.lectureSpeech,
147+
label: WorkTypesLabels[WorkTypes.publicSpeech],
148+
value: WorkTypes.publicSpeech,
149149
},
150150
{ label: WorkTypesLabels[WorkTypes.website], value: WorkTypes.website },
151151
{
@@ -287,7 +287,10 @@ export const WorkTypeMenu: DeepSelectMenu[] = [
287287
value: WorkCategories.teachingAndSupervision,
288288
description: $localize`:@@works.teachingDescription:Working with students`,
289289
content: [
290-
// No value for: Lecture ??
290+
{
291+
value: WorkTypes.lectureSpeech,
292+
label: WorkTypesLabels[WorkTypes.lectureSpeech],
293+
},
291294
{
292295
value: WorkTypes.learningObject,
293296
label: WorkTypesLabels[WorkTypes.learningObject],

src/app/types/works.endpoint.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export enum WorkTypes {
7777
musicalComposition = 'musical-composition',
7878
sound = 'sound',
7979
transcription = 'transcription',
80+
publicSpeech = 'public-speech'
8081
}
8182

8283
export const WorkCategoriesLabel = {
@@ -127,7 +128,7 @@ export const WorkTypesLabels = {
127128
[WorkTypes.dataManagementPlan]: $localize`:@@works.dataManagementPlan:Data management plan`,
128129
[WorkTypes.dataSet]: $localize`:@@works.plan:Dataset`,
129130
[WorkTypes.invention]: $localize`:@@works.invention:Invention`,
130-
[WorkTypes.lectureSpeech]: $localize`:@@works.speech:Talk, interview, podcast or speech`,
131+
[WorkTypes.lectureSpeech]: $localize`:@@works.speech:Lecture`,
131132
[WorkTypes.physicalObject]: $localize`:@@works.object:Physical object`,
132133
[WorkTypes.researchTechnique]: $localize`:@@works.technique:Research protocol or technique`,
133134
[WorkTypes.software]: $localize`:@@works.software:Software`,
@@ -148,6 +149,7 @@ export const WorkTypesLabels = {
148149
[WorkTypes.musicalComposition]: $localize`:@@works.musicalComposition:Musical composition`,
149150
[WorkTypes.sound]: $localize`:@@works.sound:Sound`,
150151
[WorkTypes.transcription]: $localize`:@@works.transcription:Transcription`,
152+
[WorkTypes.publicSpeech]: $localize`:@@works.publicSpeech:Talk, interview, podcast or speech`,
151153
}
152154

153155
export enum WorksTitleName {

src/locale/properties/works/works.en.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ works.artisticPerformance=Artistic output or performance
6666
works.dataManagementPlan=Data management plan
6767
works.plan=Dataset
6868
works.invention=Invention
69-
works.speech=Talk, interview, podcast or speech
69+
works.speech=Lecture
7070
works.object=Physical object
7171
works.technique=Research protocol or technique
7272
works.software=Software
@@ -278,3 +278,4 @@ works.academicPublication=Academic publications
278278
works.reviewAndEditing=Review and editing
279279
works.pleaseSelectWork=Please select a work type
280280
works.learningObject=Teaching material
281+
works.publicSpeech=Talk, interview, podcast or speech

0 commit comments

Comments
 (0)