-
+

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

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

@@ -11,25 +11,18 @@
-
+
- - -
-
-
-
+
@@ -71,13 +64,16 @@
-
+
-
+
{{'DMP-LISTING.EMPTY-LIST' | translate}}
+
+ {{'DMP-LISTING.FILTERS.NO-ITEMS-FOUND' | translate}} +
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 73d7e3ae0..cc93b85fd 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 @@ -56,9 +56,9 @@ export class DmpListingComponent extends BaseListingComponent 0; + } + + get hasFilters(): boolean { + return (this.lookup.like != null && this.lookup.like != '') || this.lookup.statuses != null || + this.lookup.dmpReferenceSubQuery != null || this.lookup.dmpDescriptionTemplateSubQuery != null || + this.lookup.dmpBlueprintSubQuery != null || this.lookup.dmpUserSubQuery != null; + } + constructor( protected router: Router, protected route: ActivatedRoute, @@ -117,7 +127,10 @@ export class DmpListingComponent extends BaseListingComponent { const queryParams = this.route.snapshot.queryParams; - if (!this.lookup) this.lookup = queryParams['lookup'] ? this._parseLookupFromParams(queryParams) : this.initializeLookup(); + if (!this.lookup && queryParams['lookup']) { + this.lookup = this._parseLookupFromParams(queryParams) + this.filtersCount = this._countFilters(this.lookup); + } else if (!this.lookup) this.lookup = this.initializeLookup(); if ((this.formGroup.get('order')?.value == null || (!this.isAscending && !this.isDescending)) && this.lookup.order.items && this.lookup.order.items.length > 0) { @@ -172,7 +185,6 @@ export class DmpListingComponent extends BaseListingComponent(x => x.id), diff --git a/dmp-frontend/src/assets/i18n/baq.json b/dmp-frontend/src/assets/i18n/baq.json index 0502f8b09..084d6155b 100644 --- a/dmp-frontend/src/assets/i18n/baq.json +++ b/dmp-frontend/src/assets/i18n/baq.json @@ -672,6 +672,7 @@ "FILTERS": { "NAME": "Filters", "APPLY-FILTERS": "Apply filters", + "NO-ITEMS-FOUND": "Your search didn't match any items.", "STATUS": { "NAME": "Status", "TYPE": { diff --git a/dmp-frontend/src/assets/i18n/de.json b/dmp-frontend/src/assets/i18n/de.json index a4ee74610..b199a5352 100644 --- a/dmp-frontend/src/assets/i18n/de.json +++ b/dmp-frontend/src/assets/i18n/de.json @@ -672,6 +672,7 @@ "FILTERS": { "NAME": "Filters", "APPLY-FILTERS": "Apply filters", + "NO-ITEMS-FOUND": "Your search didn't match any items.", "STATUS": { "NAME": "Status", "TYPE": { diff --git a/dmp-frontend/src/assets/i18n/en.json b/dmp-frontend/src/assets/i18n/en.json index ffad49872..4745d74ca 100644 --- a/dmp-frontend/src/assets/i18n/en.json +++ b/dmp-frontend/src/assets/i18n/en.json @@ -672,6 +672,7 @@ "FILTERS": { "NAME": "Filters", "APPLY-FILTERS": "Apply filters", + "NO-ITEMS-FOUND": "Your search didn't match any items.", "STATUS": { "NAME": "Status", "TYPE": { diff --git a/dmp-frontend/src/assets/i18n/es.json b/dmp-frontend/src/assets/i18n/es.json index b86457ebf..947abd73b 100644 --- a/dmp-frontend/src/assets/i18n/es.json +++ b/dmp-frontend/src/assets/i18n/es.json @@ -672,6 +672,7 @@ "FILTERS": { "NAME": "Filters", "APPLY-FILTERS": "Apply filters", + "NO-ITEMS-FOUND": "Your search didn't match any items.", "STATUS": { "NAME": "Status", "TYPE": { diff --git a/dmp-frontend/src/assets/i18n/gr.json b/dmp-frontend/src/assets/i18n/gr.json index fe9c5c11d..fd100413e 100644 --- a/dmp-frontend/src/assets/i18n/gr.json +++ b/dmp-frontend/src/assets/i18n/gr.json @@ -672,6 +672,7 @@ "FILTERS": { "NAME": "Filters", "APPLY-FILTERS": "Apply filters", + "NO-ITEMS-FOUND": "Your search didn't match any items.", "STATUS": { "NAME": "Status", "TYPE": { diff --git a/dmp-frontend/src/assets/i18n/hr.json b/dmp-frontend/src/assets/i18n/hr.json index 49600f02b..271600511 100644 --- a/dmp-frontend/src/assets/i18n/hr.json +++ b/dmp-frontend/src/assets/i18n/hr.json @@ -672,6 +672,7 @@ "FILTERS": { "NAME": "Filters", "APPLY-FILTERS": "Apply filters", + "NO-ITEMS-FOUND": "Your search didn't match any items.", "STATUS": { "NAME": "Status", "TYPE": { diff --git a/dmp-frontend/src/assets/i18n/pl.json b/dmp-frontend/src/assets/i18n/pl.json index 573c99607..6123c7dd8 100644 --- a/dmp-frontend/src/assets/i18n/pl.json +++ b/dmp-frontend/src/assets/i18n/pl.json @@ -672,6 +672,7 @@ "FILTERS": { "NAME": "Filters", "APPLY-FILTERS": "Apply filters", + "NO-ITEMS-FOUND": "Your search didn't match any items.", "STATUS": { "NAME": "Status", "TYPE": { diff --git a/dmp-frontend/src/assets/i18n/pt.json b/dmp-frontend/src/assets/i18n/pt.json index dbb81c1f2..719fff093 100644 --- a/dmp-frontend/src/assets/i18n/pt.json +++ b/dmp-frontend/src/assets/i18n/pt.json @@ -672,6 +672,7 @@ "FILTERS": { "NAME": "Filters", "APPLY-FILTERS": "Apply filters", + "NO-ITEMS-FOUND": "Your search didn't match any items.", "STATUS": { "NAME": "Status", "TYPE": { diff --git a/dmp-frontend/src/assets/i18n/sk.json b/dmp-frontend/src/assets/i18n/sk.json index 4d4798b11..0182786cb 100644 --- a/dmp-frontend/src/assets/i18n/sk.json +++ b/dmp-frontend/src/assets/i18n/sk.json @@ -672,6 +672,7 @@ "FILTERS": { "NAME": "Filters", "APPLY-FILTERS": "Apply filters", + "NO-ITEMS-FOUND": "Your search didn't match any items.", "STATUS": { "NAME": "Status", "TYPE": { diff --git a/dmp-frontend/src/assets/i18n/sr.json b/dmp-frontend/src/assets/i18n/sr.json index 804ec8290..15d98337a 100644 --- a/dmp-frontend/src/assets/i18n/sr.json +++ b/dmp-frontend/src/assets/i18n/sr.json @@ -672,6 +672,7 @@ "FILTERS": { "NAME": "Filters", "APPLY-FILTERS": "Apply filters", + "NO-ITEMS-FOUND": "Your search didn't match any items.", "STATUS": { "NAME": "Status", "TYPE": { diff --git a/dmp-frontend/src/assets/i18n/tr.json b/dmp-frontend/src/assets/i18n/tr.json index 3fb7d1331..a19697185 100644 --- a/dmp-frontend/src/assets/i18n/tr.json +++ b/dmp-frontend/src/assets/i18n/tr.json @@ -672,6 +672,7 @@ "FILTERS": { "NAME": "Filters", "APPLY-FILTERS": "Apply filters", + "NO-ITEMS-FOUND": "Your search didn't match any items.", "STATUS": { "NAME": "Status", "TYPE": {