diff --git a/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html b/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html index f24145348a..ec4dcd879a 100644 --- a/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +++ b/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html @@ -4,11 +4,12 @@ > record.metadata.about

-
+

@@ -32,7 +33,10 @@ *ngIf="metadata.lineage" [title]="'record.metadata.origin' | translate" > -

+

{{ metadata.lineage }}

record.metadata.updatedOn

-

+

{{ metadata.recordUpdated && metadata.recordUpdated.toLocaleString() }}

record.metadata.updateFrequency

-

+

domain.record.updateFrequency.{{ metadata.updateFrequency }}

record.metadata.updateStatus

-

+

domain.record.status.{{ metadata.status }}

@@ -63,7 +67,11 @@ record.metadata.isOpenData - + {{ usage }} @@ -79,7 +87,7 @@

record.metadata.sheet

open_in_new {{ metadata.landingPage }} diff --git a/libs/ui/elements/src/lib/metadata-info/metadata-info.component.spec.ts b/libs/ui/elements/src/lib/metadata-info/metadata-info.component.spec.ts index 19b3ffbc84..eaba09c8d0 100644 --- a/libs/ui/elements/src/lib/metadata-info/metadata-info.component.spec.ts +++ b/libs/ui/elements/src/lib/metadata-info/metadata-info.component.spec.ts @@ -43,7 +43,7 @@ describe('MetadataInfoComponent', () => { }) it('should not display the abstract section', () => { const displayedElement = - fixture.nativeElement.querySelector('.md-description') + fixture.nativeElement.querySelector('.md-description p') expect(displayedElement).toBeFalsy() }) }) @@ -69,7 +69,7 @@ describe('MetadataInfoComponent', () => { }) it('should display the abstract section', () => { const displayedElement = - fixture.nativeElement.querySelector('.md-description') + fixture.nativeElement.querySelector('.md-description p') expect(displayedElement).toBeTruthy() }) }) diff --git a/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts b/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts index ad4c10b951..98bcb397db 100644 --- a/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +++ b/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts @@ -5,10 +5,7 @@ import { Input, Output, } from '@angular/core' -import { - DatasetDistribution, - DatasetRecord, -} from '@geonetwork-ui/common/domain/record' +import { DatasetRecord } from '@geonetwork-ui/common/domain/record' @Component({ selector: 'gn-ui-metadata-info', diff --git a/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.html b/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.html index 9968e2c066..9c07e761f8 100644 --- a/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.html +++ b/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.html @@ -15,7 +15,7 @@