From c3d3dceb35be9d1581f4b05b58e05e1506d1d3b6 Mon Sep 17 00:00:00 2001 From: John Balasis <15860451+jBalasis@users.noreply.github.com> Date: Tue, 6 Sep 2022 13:43:41 +0000 Subject: [PATCH] longtitude and latitude are no longer mandatory --- src/app/domain/oa-description.ts | 4 ++-- .../sources-forms/datasource-update-form.component.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/domain/oa-description.ts b/src/app/domain/oa-description.ts index b2a9a32d3..6191df012 100755 --- a/src/app/domain/oa-description.ts +++ b/src/app/domain/oa-description.ts @@ -83,14 +83,14 @@ export const countryDesc = { export const longtitudeDesc = { desc: 'The (approximate) longtitude of your repository/journal\'s location', label: 'Longtitude', - mandatory: true, + mandatory: false, recommended: false }; export const latitudeDesc = { desc: 'The (approximate) latitude of your repository/journal\'s location', label: 'Latitude', - mandatory: true, + mandatory: false, recommended: false }; diff --git a/src/app/shared/reusablecomponents/sources-forms/datasource-update-form.component.ts b/src/app/shared/reusablecomponents/sources-forms/datasource-update-form.component.ts index c3f5c1dba..b3dc03e36 100755 --- a/src/app/shared/reusablecomponents/sources-forms/datasource-update-form.component.ts +++ b/src/app/shared/reusablecomponents/sources-forms/datasource-update-form.component.ts @@ -142,12 +142,12 @@ export class DatasourceUpdateFormComponent implements OnInit { // FIXME: Use eoscDatasourceType when we support the new model if (this.mode === 'cris') { - this.longtitudeDesc.mandatory = false; - this.latitudeDesc.mandatory = false; + // this.longtitudeDesc.mandatory = false; + // this.latitudeDesc.mandatory = false; this.datasourceTypeDesc.label = 'CRIS scope/type'; } else { - this.longtitudeDesc.mandatory = true; - this.latitudeDesc.mandatory = true; + // this.longtitudeDesc.mandatory = true; + // this.latitudeDesc.mandatory = true; this.datasourceTypeDesc.label = 'Data source type'; }