diff --git a/src/app/components/console/console.component.css b/src/app/components/console/console.component.css index f48fd90f..b53e7de0 100644 --- a/src/app/components/console/console.component.css +++ b/src/app/components/console/console.component.css @@ -2,6 +2,11 @@ border-radius: 4px !important; } +.not-curated { + background-color: orange; + color: white; +} + .banner { font-size: 14px; color: red; diff --git a/src/app/components/console/console.component.html b/src/app/components/console/console.component.html index 0a7cfb01..9ab8b0e7 100644 --- a/src/app/components/console/console.component.html +++ b/src/app/components/console/console.component.html @@ -122,14 +122,28 @@

Status - {{ study.status }} + + {{ study.status }} - Curated + + + {{ study.status }} - Not Curated + + + + + {{ study.status }} +
diff --git a/src/app/components/public/study/study.component.html b/src/app/components/public/study/study.component.html index 43fe2804..1c0744c6 100644 --- a/src/app/components/public/study/study.component.html +++ b/src/app/components/public/study/study.component.html @@ -72,6 +72,27 @@
+
+
+
+

+ info + This study ({{ requestedStudy }}) is publicly accessible upon request from the submitter(s). It is not curated by MetaboLights team, however it passes the minimum validation requirements of MetaboLights. +
+
+ If you have comments or suggestions, please get in touch with the submitter(s) or MetaboLights team ( + metabolights-help@ebi.ac.uk). + +

+
+
+
state.study.identifier) studyIdentifier; @select((state) => state.status.user) user; @select((state) => state.study.status) studyStatus; + @select((state) => state.study.curationRequest) curationRequestState; @select((state) => state.study.validation) studyValidation; @select((state) => state.status.currentTabIndex) currentIndex: number; @select((state) => state.study.investigationFailed) investigationFailed; @@ -35,6 +36,7 @@ export class PublicStudyComponent implements OnInit { status = "submitted"; tab = "descriptors"; requestedStudy: string = null; + curationRequest = "" studyError = false; validation: any = {}; files: any = null; @@ -139,6 +141,12 @@ export class PublicStudyComponent implements OnInit { } }); + this.curationRequestState.subscribe((value) => { + if(value){ + this.curationRequest = value; + } + }); + this.studyReviewerLink.subscribe((value) => { this.reviewerLink = value; }); diff --git a/src/app/components/store.ts b/src/app/components/store.ts index c25e84aa..dc083986 100644 --- a/src/app/components/store.ts +++ b/src/app/components/store.ts @@ -37,6 +37,7 @@ export const SHARED_INITIAL_STATE: Record = { info: "", configuration: "", isCurator: false, + curationRequest: null, user: null, error: false, message: "", diff --git a/src/app/components/study/actions.ts b/src/app/components/study/actions.ts index 8fca8d8c..de3e6976 100644 --- a/src/app/components/study/actions.ts +++ b/src/app/components/study/actions.ts @@ -5,6 +5,8 @@ export const SET_STUDY_ABSTRACT = "SET_STUDY_ABSTRACT"; export const SET_STUDY_SUBMISSION_DATE = "SET_STUDY_SUBMISSION_DATE"; export const SET_STUDY_RELEASE_DATE = "SET_STUDY_RELEASE_DATE"; export const SET_STUDY_STATUS = "SET_STUDY_STATUS"; +export const SET_STUDY_CURATION_REQUEST = "SET_STUDY_CURATION_REQUEST"; + export const SET_STUDY_REVIEWER_LINK = "SET_STUDY_REVIEWER_LINK"; export const SET_STUDY_PUBLICATIONS = "SET_STUDY_PUBLICATIONS"; diff --git a/src/app/components/study/status/status.component.css b/src/app/components/study/status/status.component.css index 5a244f18..83cda8c6 100644 --- a/src/app/components/study/status/status.component.css +++ b/src/app/components/study/status/status.component.css @@ -1,3 +1,7 @@ .error-message { color: red; } +.not-curated { + background-color: orange; + color: white; +} diff --git a/src/app/components/study/status/status.component.html b/src/app/components/study/status/status.component.html index fafdae3a..9cc36013 100644 --- a/src/app/components/study/status/status.component.html +++ b/src/app/components/study/status/status.component.html @@ -1,9 +1,32 @@
Status - {{ - status - }} +
+ + + {{ + status + }} - Curated + + + + + {{ + status + }} - Not Curated + + +
+ + + + {{ + status + }} + + + +
+
+
+
+

+ info + Your study ({{ requestedStudy }}) is publicly accessible. It is not curated by MetaboLights team, however it passes the minimum validation requirements of MetaboLights. +
+
+ If you have comments or suggestions, please get in touch with MetaboLights team ( + metabolights-help@ebi.ac.uk). +

+
+
+
@@ -277,6 +297,7 @@
+ diff --git a/src/app/components/study/study.component.ts b/src/app/components/study/study.component.ts index 63d01b2d..2931c0d7 100644 --- a/src/app/components/study/study.component.ts +++ b/src/app/components/study/study.component.ts @@ -17,6 +17,8 @@ export class StudyComponent implements OnInit, OnDestroy { @select((state) => state.study.validation) studyValidation; @select((state) => state.status.currentTabIndex) currentIndex: number; @select((state) => state.study.status) studyStatus; + @select((state) => state.study.curationRequest) curationRequestState; + @select((state) => state.study.obfuscationCode) studyObfuscationCode; @select((state) => state.status.bannerMessage) bannerMessage; @@ -28,6 +30,7 @@ export class StudyComponent implements OnInit, OnDestroy { requestedTab = 0; tab = "descriptors"; requestedStudy: string = null; + curationRequest = "" status = "submitted"; validation: any = {}; obfuscationCode: string = null; @@ -89,6 +92,12 @@ export class StudyComponent implements OnInit, OnDestroy { this.status = value; }); + this.curationRequestState.subscribe((value) => { + if(value){ + this.curationRequest = value; + } + }); + this.studyValidation.subscribe((value) => { this.validation = value; }); diff --git a/src/app/models/mtbl/mtbls/interfaces/study-detail.interface.ts b/src/app/models/mtbl/mtbls/interfaces/study-detail.interface.ts index 4a20369d..5b2672fb 100644 --- a/src/app/models/mtbl/mtbls/interfaces/study-detail.interface.ts +++ b/src/app/models/mtbl/mtbls/interfaces/study-detail.interface.ts @@ -6,6 +6,7 @@ export interface IStudyDetail { status: string; title: string; description: string; + curationRequest: string; } export interface IStudyDetailWrapper { diff --git a/src/app/models/mtbl/mtbls/interfaces/study-summary.interface.ts b/src/app/models/mtbl/mtbls/interfaces/study-summary.interface.ts index bcd99126..8f180a2f 100644 --- a/src/app/models/mtbl/mtbls/interfaces/study-summary.interface.ts +++ b/src/app/models/mtbl/mtbls/interfaces/study-summary.interface.ts @@ -10,6 +10,9 @@ export interface IStudySummary { /*Interface to represent the minute study information returned by our IsaInvestigation endpoint*/ export interface IMtblsStudySummaryInformation { studyStatus: string; + curationRequest: string; + modifiedTime: string; + statusUpdateTime: string; read_access: boolean; is_curator: boolean; write_access: boolean; diff --git a/src/app/services/editor.service.ts b/src/app/services/editor.service.ts index 03fdee5f..a39f974f 100644 --- a/src/app/services/editor.service.ts +++ b/src/app/services/editor.service.ts @@ -654,6 +654,12 @@ export class EditorService { study, }, }); + this.ngRedux.dispatch({ + type: "SET_STUDY_CURATION_REQUEST", + body: { + study, + }, + }); this.ngRedux.dispatch({ type: "SET_STUDY_REVIEWER_LINK", body: {