-
- clear -
+
+ + +

{{'DATASET-LISTING.TEXT-INFO' | translate}} {{'DATASET-LISTING.LINK-PUBLIC-DATASETS' | translate}} {{'DATASET-LISTING.TEXT-INFO-REST' | translate}}

{{'DATASET-LISTING.TEXT-INFO-PAR' | translate}}

@@ -13,7 +14,15 @@
-
+

{{(isPublic ? 'GENERAL.TITLES.EXPLORE' : 'GENERAL.TITLES.DATASETS') | translate}}

+
+
+ +
+
+
@@ -21,11 +30,11 @@
-
+
{{'DMP-LISTING.SORT-BY' | translate}}: - + {{enumUtils.toRecentActivityOrderString(order.MODIFIED)}} {{enumUtils.toRecentActivityOrderString(order.DATASETPUBLISHED)}} @@ -37,12 +46,12 @@
-
+
{{ 'GENERAL.ACTIONS.TAKE-A-TOUR'| translate }}
- + search {{formGroup.get('like').getError('backendError').message}} @@ -59,7 +68,7 @@
-
+
{{'DATASET-LISTING.EMPTY-LIST' | translate}}
diff --git a/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.scss b/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.scss index 0f3d9beb9..3d3d84403 100644 --- a/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.scss +++ b/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.scss @@ -19,6 +19,14 @@ position: relative; } +.header-title { + text-align: left; + font-size: 1.25rem; + font-weight: 300; + color: #212121; + padding: 0px; +} + .header-text-container { background: rgba(255, 255, 255, 0.7); position: absolute; @@ -146,7 +154,7 @@ font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02rem; - color: #2D72D6; + color: #2d72d6; cursor: pointer; } @@ -179,8 +187,8 @@ } ::ng-deep .sort-form .mat-form-field-wrapper { - background-color: white !important; - padding-bottom: 0 !important; + background-color: white !important; + padding-bottom: 0 !important; } ::ng-deep .mat-form-field-appearance-outline .mat-form-field-infix { diff --git a/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.ts b/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.ts index ee6d538fb..e91b0095d 100644 --- a/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.ts +++ b/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.ts @@ -46,6 +46,7 @@ export class DatasetListingComponent extends BaseComponent implements OnInit, IB totalCount: number; dmpSearchEnabled = true; listingItems: DatasetListingModel[] = []; + hasListingItems = null; isPublic: boolean = false; public isVisible = true @@ -195,6 +196,7 @@ export class DatasetListingComponent extends BaseComponent implements OnInit, IB // if (this._paginator.pageIndex === 0) { this.totalCount = result.totalCount; } this.totalCount = result.totalCount; this.listingItems = result.data; + this.hasListingItems = true; }); } @@ -211,6 +213,7 @@ export class DatasetListingComponent extends BaseComponent implements OnInit, IB // if (this._paginator.pageIndex === 0) { this.totalCount = result.totalCount; } // this.listingItems = this.listingItems.concat(result.data); this.listingItems = this.listingItems.length > 0 ? this.mergeTwoSortedLists(this.listingItems, result.data, this.formGroup.get('order').value) : result.data; + this.hasListingItems = true; }); } diff --git a/dmp-frontend/src/app/ui/dataset/overview/dataset-overview.component.html b/dmp-frontend/src/app/ui/dataset/overview/dataset-overview.component.html index 4fa8615cf..67c4f1e3f 100644 --- a/dmp-frontend/src/app/ui/dataset/overview/dataset-overview.component.html +++ b/dmp-frontend/src/app/ui/dataset/overview/dataset-overview.component.html @@ -48,12 +48,12 @@
- + diff --git a/dmp-frontend/src/app/ui/dmp/editor/available-profiles/available-profiles.component.ts b/dmp-frontend/src/app/ui/dmp/editor/available-profiles/available-profiles.component.ts index 12dea9dad..2e2476e77 100644 --- a/dmp-frontend/src/app/ui/dmp/editor/available-profiles/available-profiles.component.ts +++ b/dmp-frontend/src/app/ui/dmp/editor/available-profiles/available-profiles.component.ts @@ -53,6 +53,6 @@ export class AvailableProfilesComponent extends BaseComponent implements OnInit } isOptionSelected(profile: any) { - return this.formGroup.value.map(x => x.id).indexOf(profile.id) !== -1; + return this.formGroup.value ? this.formGroup.value.map(x => x.id).indexOf(profile.id) !== -1 : null; } } diff --git a/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.html b/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.html index b8f7f5971..6a0552c39 100644 --- a/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.html +++ b/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.html @@ -57,7 +57,7 @@
- + + +

{{'DMP-LISTING.TEXT-INFO' | translate}}

{{'DMP-LISTING.TEXT-INFO-QUESTION' | translate}} {{'DMP-LISTING.LINK-ZENODO' | translate}} {{'DMP-LISTING.GET-IDEA' | translate}}

-
+

{{(isPublic ? 'GENERAL.TITLES.EXPLORE-PLANS' : 'GENERAL.TITLES.PLANS') | translate}}

+
@@ -16,11 +18,11 @@
-
+
{{'DMP-LISTING.SORT-BY' | translate}}: - + {{enumUtils.toRecentActivityOrderString(order.MODIFIED)}} {{enumUtils.toRecentActivityOrderString(order.PUBLISHED)}} @@ -32,13 +34,11 @@
-
- {{ 'GENERAL.ACTIONS.TAKE-A-TOUR'| translate }} -
+ +
{{ 'GENERAL.ACTIONS.TAKE-A-TOUR'| translate }}
- search {{'GENERAL.ACTIONS.LOAD-MORE' | translate}}
-
+
{{'DMP-LISTING.EMPTY-LIST' | translate}}
diff --git a/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.scss b/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.scss index efbc38c53..bbc48f591 100644 --- a/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.scss +++ b/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.scss @@ -81,6 +81,14 @@ position: relative; } +.header-title { + text-align: left; + font-size: 1.25rem; + font-weight: 300; + color: #212121; + padding: 0px; +} + .header-text-container { background: rgba(255, 255, 255, 0.7); position: absolute; @@ -133,7 +141,7 @@ letter-spacing: 0px; color: #212121; padding-left: 40px; - padding-top: 36px; + padding-top: 38px; padding-bottom: 36px; padding-right: 55px; opacity: 1; @@ -190,7 +198,7 @@ right: 0px; z-index: 100; width: 37px; - transition: right .3s; + transition: right 0.3s; transition-timing-function: ease-in-out; } @@ -225,7 +233,8 @@ color: black; } -.pointer:hover, .zenodo-link:hover { +.pointer:hover, +.zenodo-link:hover { color: #00b29f; } @@ -235,8 +244,8 @@ } ::ng-deep .sort-form .mat-form-field-wrapper { - background-color: white !important; - padding-bottom: 0 !important; + background-color: white !important; + padding-bottom: 0 !important; } ::ng-deep .mat-form-field-appearance-outline .mat-form-field-infix { @@ -252,7 +261,7 @@ font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02rem; - color: #2D72D6; + color: #2d72d6; cursor: pointer; } diff --git a/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.ts b/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.ts index 15763b446..3fa5aac45 100644 --- a/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.ts +++ b/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.ts @@ -52,6 +52,7 @@ export class DmpListingComponent extends BaseComponent implements OnInit, IBread groupLabel: string; isPublic: boolean = false; public isVisible = true + hasListingItems = null; startIndex: number = 0; pageSize: number = 5; @@ -236,6 +237,7 @@ export class DmpListingComponent extends BaseComponent implements OnInit, IBread return item; }); this.listingItems = result.data; + this.hasListingItems = true; this.totalCount = result.totalCount; }); } @@ -260,6 +262,7 @@ export class DmpListingComponent extends BaseComponent implements OnInit, IBread }); // this.listingItems = this.listingItems.concat(result.data); this.listingItems = this.mergeTwoSortedLists(this.listingItems, result.data, this.formGroup.get('order').value); + this.hasListingItems = true; }); } diff --git a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.html b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.html index a6e33ce0a..8ad60977a 100644 --- a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.html +++ b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.html @@ -25,7 +25,7 @@
{{dataset.label}}
- {{'GENERAL.ACTIONS.SHOW-MORE' | translate}} + {{'GENERAL.ACTIONS.SHOW-MORE' | translate}}
open_in_new{{'DMP-LISTING.ACTIONS.EXPORT' | translate}} diff --git a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html index 23345a6ff..f510872ca 100644 --- a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html +++ b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html @@ -51,12 +51,12 @@
- + diff --git a/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-field/form-field.component.ts b/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-field/form-field.component.ts index dc3e4b75e..df86a9ae9 100644 --- a/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-field/form-field.component.ts +++ b/dmp-frontend/src/app/ui/misc/dataset-description-form/components/form-field/form-field.component.ts @@ -346,11 +346,17 @@ export class FormFieldComponent extends BaseComponent implements OnInit { parseTags() { let stringValue = this.form.get('value').value; - stringValue = (stringValue).replace(new RegExp('{', 'g'), '{"').replace(new RegExp('=', 'g'), '":"').replace(new RegExp(',', 'g'), '",').replace(new RegExp(', ', 'g'), ', "').replace(new RegExp('}', 'g'), '"}'); - stringValue = stringValue.replace(new RegExp('}"', 'g'), '}').replace(new RegExp('"{', 'g'), '{'); - console.log(stringValue); + if (typeof stringValue === 'string') { + stringValue = (stringValue).replace(new RegExp('{', 'g'), '{"').replace(new RegExp('=', 'g'), '":"').replace(new RegExp(',', 'g'), '",').replace(new RegExp(', ', 'g'), ', "').replace(new RegExp('}', 'g'), '"}'); + stringValue = stringValue.replace(new RegExp('}"', 'g'), '}').replace(new RegExp('"{', 'g'), '{'); + } else if (stringValue instanceof Array) { + const tempArray = new Array(); + for (let stringTag of stringValue) { + tempArray.push(JSON.parse(stringTag)); + } + stringValue = JSON.stringify(tempArray); + } const tagArray = JSON.parse(stringValue); - console.log(tagArray); this.form.patchValue({'value': tagArray}); } diff --git a/dmp-frontend/src/app/ui/sidebar/sidebar.component.html b/dmp-frontend/src/app/ui/sidebar/sidebar.component.html index 8f6b468e9..59c961998 100644 --- a/dmp-frontend/src/app/ui/sidebar/sidebar.component.html +++ b/dmp-frontend/src/app/ui/sidebar/sidebar.component.html @@ -17,7 +17,7 @@ {{ groupMenuRoute.icon }} - {{groupMenuRoute.title | translate}} + {{groupMenuRoute.title | translate}} open_in_new {{ groupMenuRoute.icon }} @@ -25,11 +25,11 @@ {{ groupMenuRoute.icon }} - {{groupMenuRoute.title | translate}} + {{groupMenuRoute.title | translate}} open_in_new {{ groupMenuRoute.icon }} - {{groupMenuRoute.title | translate}} + {{groupMenuRoute.title | translate}} open_in_new
diff --git a/dmp-frontend/src/app/ui/sidebar/sidebar.component.scss b/dmp-frontend/src/app/ui/sidebar/sidebar.component.scss index 5909d05b7..e8bb8630c 100644 --- a/dmp-frontend/src/app/ui/sidebar/sidebar.component.scss +++ b/dmp-frontend/src/app/ui/sidebar/sidebar.component.scss @@ -9,7 +9,7 @@ $mat-card-header-size: 30px !default; } .nav-list-item { -// margin-top: 20px; + // margin-top: 20px; } .login { @@ -21,36 +21,42 @@ $mat-card-header-size: 30px !default; } .firstSubtitle { - margin-top: 20px; + margin-top: 20px; } .icon-mask { - color: #6b6b6b; - transform: translate(-8px, 8px); + color: #6b6b6b; + transform: translate(-8px, 8px); } -.active a{ - font-weight: 700; +.active a { + font-weight: 700; } -.active a i{ - color: #23BCBA; +.active a i { + color: #23bcba; } .inner-line { - margin-left: 12px; - margin-right: 10px; - width: 20px; - height: 13px; - border-left: 1px solid #CCCCCC; - border-bottom: 1px solid #CCCCCC; + margin-left: 12px; + margin-right: 10px; + width: 20px; + height: 13px; + border-left: 1px solid #cccccc; + border-bottom: 1px solid #cccccc; +} + +.icon-external { + font-size: 1rem; + padding-left: 0.4rem !important; + color: #6b6b6b; } mat-list-item { - display: flex !important; - height: auto !important; + display: flex !important; + height: auto !important; } ::ng-deep .mat-list-item-content { - width: 100% !important; + width: 100% !important; } diff --git a/dmp-frontend/src/assets/splash/about/contributors.html b/dmp-frontend/src/assets/splash/about/contributors.html index de730366f..09c2196bd 100644 --- a/dmp-frontend/src/assets/splash/about/contributors.html +++ b/dmp-frontend/src/assets/splash/about/contributors.html @@ -33,7 +33,10 @@ @@ -132,7 +135,10 @@
Unless otherwise indicated, all materials created by OpenAIRE are licenced under
  - +
diff --git a/dmp-frontend/src/assets/splash/about/faqs.html b/dmp-frontend/src/assets/splash/about/faqs.html index c3a1859a7..6c4b51988 100644 --- a/dmp-frontend/src/assets/splash/about/faqs.html +++ b/dmp-frontend/src/assets/splash/about/faqs.html @@ -34,7 +34,10 @@ @@ -198,7 +201,10 @@
Unless otherwise indicated, all materials created by OpenAIRE are licenced under
  - +
diff --git a/dmp-frontend/src/assets/splash/about/how-it-works.html b/dmp-frontend/src/assets/splash/about/how-it-works.html index 53e09490b..24507201c 100644 --- a/dmp-frontend/src/assets/splash/about/how-it-works.html +++ b/dmp-frontend/src/assets/splash/about/how-it-works.html @@ -33,7 +33,10 @@ @@ -152,7 +155,10 @@
Unless otherwise indicated, all materials created by OpenAIRE are licenced under
  - +
@@ -164,4 +170,4 @@ - \ No newline at end of file + diff --git a/dmp-frontend/src/assets/splash/contact.html b/dmp-frontend/src/assets/splash/contact.html index 7c2859983..06b4e1e05 100644 --- a/dmp-frontend/src/assets/splash/contact.html +++ b/dmp-frontend/src/assets/splash/contact.html @@ -34,7 +34,10 @@ @@ -134,7 +137,10 @@
Unless otherwise indicated, all materials created by OpenAIRE are licenced under
  - +
diff --git a/dmp-frontend/src/assets/splash/css/styles.css b/dmp-frontend/src/assets/splash/css/styles.css index 02cacc8d5..1d9df2a13 100644 --- a/dmp-frontend/src/assets/splash/css/styles.css +++ b/dmp-frontend/src/assets/splash/css/styles.css @@ -361,3 +361,7 @@ hr { padding-left: 0px !important; transform: scale(0.45); } + +.ext-link-icon { + margin-left: .2rem; +} diff --git a/dmp-frontend/src/assets/splash/index.html b/dmp-frontend/src/assets/splash/index.html index ce9a7b8a0..7e38eb944 100644 --- a/dmp-frontend/src/assets/splash/index.html +++ b/dmp-frontend/src/assets/splash/index.html @@ -34,7 +34,10 @@ @@ -268,8 +271,12 @@
@@ -396,7 +403,10 @@
Unless otherwise indicated, all materials created by OpenAIRE are licenced under
  - +