geonetwork-ui 2.8.0-dev.50da356b9 → 2.8.0-dev.5186798f7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.mjs +3 -3
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +24 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +7 -7
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +3 -2
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +4 -3
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/constant.mjs +1 -2
- package/esm2022/libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +26 -8
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +23 -3
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +2 -2
- package/esm2022/libs/feature/record/src/index.mjs +2 -1
- package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +13 -4
- package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +23 -8
- package/esm2022/libs/feature/record/src/lib/stac-view/stac-view.component.mjs +138 -0
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +14 -1
- package/esm2022/libs/feature/search/src/lib/constants.mjs +1 -2
- package/esm2022/libs/ui/elements/src/index.mjs +3 -1
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +1 -1
- package/esm2022/libs/ui/elements/src/lib/metadata-doi/metadata-doi.component.mjs +37 -0
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +5 -9
- package/esm2022/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.mjs +18 -0
- package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +5 -5
- package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
- package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +21 -7
- package/esm2022/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.mjs +35 -0
- package/esm2022/libs/ui/layout/src/lib/paginable.interface.mjs +1 -1
- package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +13 -5
- package/esm2022/libs/util/i18n/src/lib/date-locales.mjs +33 -0
- package/esm2022/libs/util/shared/src/index.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/humanize-date.directive.mjs +33 -0
- package/esm2022/libs/util/shared/src/lib/services/date.service.mjs +19 -2
- package/esm2022/translations/de.json +14 -4
- package/esm2022/translations/en.json +14 -4
- package/esm2022/translations/es.json +10 -0
- package/esm2022/translations/fr.json +14 -4
- package/esm2022/translations/it.json +15 -5
- package/esm2022/translations/nl.json +10 -0
- package/esm2022/translations/pt.json +10 -0
- package/esm2022/translations/sk.json +11 -1
- package/fesm2022/geonetwork-ui-date-locales-MYnkDJ5h.mjs +35 -0
- package/fesm2022/geonetwork-ui-date-locales-MYnkDJ5h.mjs.map +1 -0
- package/fesm2022/geonetwork-ui.mjs +522 -151
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +5 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/constant.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model.d.ts +1 -1
- package/libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +6 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +2 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +2 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
- package/libs/feature/record/src/index.d.ts +1 -0
- package/libs/feature/record/src/index.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +3 -2
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +3 -2
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/stac-view/stac-view.component.d.ts +35 -0
- package/libs/feature/record/src/lib/stac-view/stac-view.component.d.ts.map +1 -0
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts +28 -24
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/feature/search/src/lib/constants.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +2 -0
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-doi/metadata-doi.component.d.ts +8 -0
- package/libs/ui/elements/src/lib/metadata-doi/metadata-doi.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +0 -2
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.d.ts +8 -0
- package/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/index.d.ts +1 -0
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts +5 -0
- package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.d.ts +12 -0
- package/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/paginable.interface.d.ts +3 -3
- package/libs/ui/layout/src/lib/paginable.interface.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts +2 -1
- package/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts.map +1 -1
- package/libs/util/i18n/src/lib/date-locales.d.ts +5 -0
- package/libs/util/i18n/src/lib/date-locales.d.ts.map +1 -0
- package/libs/util/shared/src/index.d.ts +1 -0
- package/libs/util/shared/src/index.d.ts.map +1 -1
- package/libs/util/shared/src/lib/humanize-date.directive.d.ts +15 -0
- package/libs/util/shared/src/lib/humanize-date.directive.d.ts.map +1 -0
- package/libs/util/shared/src/lib/services/date.service.d.ts +4 -0
- package/libs/util/shared/src/lib/services/date.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +5 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/georhena.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.reuse.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +26 -0
- package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +13 -6
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +6 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +4 -2
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/constant.ts +0 -1
- package/src/libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model.ts +1 -1
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +8 -1
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +30 -5
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +3 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +30 -0
- package/src/libs/feature/editor/src/lib/fields.config.ts +1 -1
- package/src/libs/feature/record/src/index.ts +1 -0
- package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +7 -1
- package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +23 -4
- package/src/libs/feature/record/src/lib/stac-view/stac-view.component.css +3 -0
- package/src/libs/feature/record/src/lib/stac-view/stac-view.component.html +68 -0
- package/src/libs/feature/record/src/lib/stac-view/stac-view.component.ts +190 -0
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +30 -1
- package/src/libs/feature/search/src/lib/constants.ts +0 -1
- package/src/libs/ui/elements/src/index.ts +2 -0
- package/src/libs/ui/elements/src/lib/metadata-doi/metadata-doi.component.css +0 -0
- package/src/libs/ui/elements/src/lib/metadata-doi/metadata-doi.component.html +31 -0
- package/src/libs/ui/elements/src/lib/metadata-doi/metadata-doi.component.ts +30 -0
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +67 -21
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +2 -9
- package/src/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.css +0 -0
- package/src/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.html +13 -0
- package/src/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.ts +15 -0
- package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.html +1 -1
- package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +2 -2
- package/src/libs/ui/inputs/src/index.ts +1 -0
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +17 -1
- package/src/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.css +0 -0
- package/src/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.html +15 -0
- package/src/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.ts +41 -0
- package/src/libs/ui/layout/src/lib/paginable.interface.ts +3 -3
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +12 -6
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +4 -1
- package/src/libs/util/i18n/src/lib/date-locales.ts +63 -0
- package/src/libs/util/shared/src/index.ts +1 -0
- package/src/libs/util/shared/src/lib/humanize-date.directive.ts +35 -0
- package/src/libs/util/shared/src/lib/services/date.service.ts +27 -1
- package/translations/de.json +14 -4
- package/translations/en.json +14 -4
- package/translations/es.json +10 -0
- package/translations/fr.json +14 -4
- package/translations/it.json +15 -5
- package/translations/nl.json +10 -0
- package/translations/pt.json +10 -0
- package/translations/sk.json +11 -1
- package/esm2022/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.mjs +0 -59
- package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts +0 -11
- package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts.map +0 -1
- package/src/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.ts +0 -54
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/util/shared/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gCAAgC,CAAA;AAC9C,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/util/shared/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gCAAgC,CAAA;AAC9C,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,+BAA+B,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Renderer2, ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { DateService } from './services/date.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GnUiHumanizeDateDirective implements OnInit {
|
|
5
|
+
private dateService;
|
|
6
|
+
private el;
|
|
7
|
+
private renderer;
|
|
8
|
+
gnUiHumanizeDate: Date | string;
|
|
9
|
+
constructor(dateService: DateService, el: ElementRef, renderer: Renderer2);
|
|
10
|
+
ngOnInit(): Promise<void>;
|
|
11
|
+
private updateElement;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GnUiHumanizeDateDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GnUiHumanizeDateDirective, "[gnUiHumanizeDate]", never, { "gnUiHumanizeDate": { "alias": "gnUiHumanizeDate"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=humanize-date.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"humanize-date.directive.d.ts","sourceRoot":"","sources":["../../../../../src/libs/util/shared/src/lib/humanize-date.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAa,UAAU,EAAS,MAAM,EAAE,MAAM,eAAe,CAAA;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;;AAErD,qBAIa,yBAA0B,YAAW,MAAM;IAIpD,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,EAAE;IACV,OAAO,CAAC,QAAQ;IALT,gBAAgB,EAAE,IAAI,GAAG,MAAM,CAAA;gBAG9B,WAAW,EAAE,WAAW,EACxB,EAAE,EAAE,UAAU,EACd,QAAQ,EAAE,SAAS;IAGvB,QAAQ;YAIA,aAAa;yCAbhB,yBAAyB;2CAAzB,yBAAyB;CA2BrC"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { type Locale } from 'date-fns/locale';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class DateService {
|
|
4
5
|
private translateService;
|
|
6
|
+
dateLocales: Promise<Record<import("geonetwork-ui").LanguageCode2, Locale>>;
|
|
5
7
|
constructor(translateService: TranslateService);
|
|
6
8
|
private getDateObject;
|
|
7
9
|
private getLocaleAndDate;
|
|
10
|
+
private getDateLocale;
|
|
8
11
|
formatDate(date: Date | string, options?: Intl.DateTimeFormatOptions): string;
|
|
9
12
|
formatDateTime(date: Date | string, options?: Intl.DateTimeFormatOptions): string;
|
|
13
|
+
formatRelativeDateTime(date: Date | string): Promise<string>;
|
|
10
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateService, never>;
|
|
11
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<DateService>;
|
|
12
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.service.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/services/date.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;;
|
|
1
|
+
{"version":3,"file":"date.service.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/services/date.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAA;;AAK7C,qBAGa,WAAW;IAKV,OAAO,CAAC,gBAAgB;IAJpC,WAAW,iEAEV;gBAEmB,gBAAgB,EAAE,gBAAgB;IAEtD,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,gBAAgB;YASV,aAAa;IAM3B,UAAU,CACR,IAAI,EAAE,IAAI,GAAG,MAAM,EACnB,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,GACnC,MAAM;IAKT,cAAc,CACZ,IAAI,EAAE,IAAI,GAAG,MAAM,EACnB,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,GACnC,MAAM;IAKH,sBAAsB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;yCAjDvD,WAAW;6CAAX,WAAW;CA4DvB"}
|
package/package.json
CHANGED
|
@@ -56,7 +56,7 @@ export class DcatApConverter extends BaseConverter<string> {
|
|
|
56
56
|
spatialExtents: readSpatialExtents,
|
|
57
57
|
keywords: readKeywords,
|
|
58
58
|
topics: readTopics,
|
|
59
|
-
|
|
59
|
+
resourceIdentifiers: () => undefined,
|
|
60
60
|
recordUpdated: readRecordUpdated,
|
|
61
61
|
recordCreated: readRecordCreated,
|
|
62
62
|
resourceUpdated: readResourceUpdated,
|
|
@@ -96,7 +96,7 @@ export class DcatApConverter extends BaseConverter<string> {
|
|
|
96
96
|
recordUpdated: () => undefined,
|
|
97
97
|
recordCreated: () => undefined,
|
|
98
98
|
recordPublished: () => undefined,
|
|
99
|
-
|
|
99
|
+
resourceIdentifiers: () => undefined,
|
|
100
100
|
resourceUpdated: () => undefined,
|
|
101
101
|
resourceCreated: () => undefined,
|
|
102
102
|
resourcePublished: () => undefined,
|
|
@@ -70,7 +70,7 @@ export const GENERIC_DATASET_RECORD: DatasetRecord = {
|
|
|
70
70
|
recordCreated: new Date('2021-11-15T09:00:00'),
|
|
71
71
|
recordPublished: new Date('2022-01-01T10:00:00'),
|
|
72
72
|
recordUpdated: new Date('2022-02-01T15:12:00'),
|
|
73
|
-
|
|
73
|
+
resourceIdentifiers: [{ code: '2d974612-70b1-4662-a9f4-c43cbe453773' }],
|
|
74
74
|
resourceCreated: new Date('2022-09-01T14:18:19'),
|
|
75
75
|
resourceUpdated: new Date('2022-12-04T15:12:00'),
|
|
76
76
|
title: 'A very interesting dataset (un jeu de données très intéressant)',
|
package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ServiceRecord } from '../../../../../../libs/common/domain/src/lib/mode
|
|
|
2
2
|
|
|
3
3
|
export const GEO2FRANCE_SERVICE_EAUXUSEES_RECORD: ServiceRecord = {
|
|
4
4
|
uniqueIdentifier: 'be052079-f1f6-4f6f-a722-cbf11deb40eb',
|
|
5
|
-
|
|
5
|
+
resourceIdentifiers: [{ code: 'https://id.eaufrance.fr/meta/ODP_WFS' }],
|
|
6
6
|
kind: 'service',
|
|
7
7
|
otherLanguages: [],
|
|
8
8
|
defaultLanguage: 'fr',
|
|
@@ -146,6 +146,9 @@ Ce lot de données produit en 2019, a été numérisé à partir du PCI Vecteur
|
|
|
146
146
|
defaultLanguage: 'fr',
|
|
147
147
|
otherLanguages: [],
|
|
148
148
|
translations: {},
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
resourceIdentifiers: [
|
|
150
|
+
{
|
|
151
|
+
code: 'https://www.geoportail-urbanisme.gouv.fr/document/60036_PLU_20220329',
|
|
152
|
+
},
|
|
153
|
+
],
|
|
151
154
|
}
|
|
@@ -68,7 +68,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
|
|
|
68
68
|
abstract: `Perimeter der Alpenkonvention in der Schweiz. Die Alpenkonvention ist ein völkerrechtlicher Vertrag zwischen den acht Alpenländern Deutschland, Frankreich, Italien, Liechtenstein, Monaco, Österreich, Schweiz, Slowenien sowie der Europäischen Union. Das Ziel des Übereinkommens ist der Schutz der Alpen durch eine sektorübergreifende, ganzheitliche und nachhaltige Politik.`,
|
|
69
69
|
overviews: [],
|
|
70
70
|
topics: ['planningCadastre', 'planningCadastre_Planning'],
|
|
71
|
-
|
|
71
|
+
resourceIdentifiers: [{ code: 'ch.are.alpenkonvention' }],
|
|
72
72
|
keywords: [
|
|
73
73
|
{
|
|
74
74
|
thesaurus: {
|
|
@@ -2,7 +2,7 @@ import { ReuseRecord } from '../../../../../../libs/common/domain/src/lib/model/
|
|
|
2
2
|
|
|
3
3
|
export const GEORHENA_REUSE_SOLAIRE_RECORD: ReuseRecord = {
|
|
4
4
|
uniqueIdentifier: '015e6d20-0d69-4ae7-adfe-85c588aac141',
|
|
5
|
-
|
|
5
|
+
resourceIdentifiers: [{ code: '04_2022_301' }],
|
|
6
6
|
kind: 'reuse',
|
|
7
7
|
otherLanguages: ['de', 'en'],
|
|
8
8
|
defaultLanguage: 'fr',
|
|
@@ -71,7 +71,7 @@ Toutes ces données sont reprises dans BDR.`,
|
|
|
71
71
|
recordCreated: new Date('2019-04-02T12:34:35'),
|
|
72
72
|
recordUpdated: new Date('2022-06-16T05:01:21'),
|
|
73
73
|
resourceCreated: new Date('2002-01-01'),
|
|
74
|
-
|
|
74
|
+
resourceIdentifiers: [{ code: '2d974612-70b1-4662-a9f4-c43cbe453773' }],
|
|
75
75
|
resourceUpdated: new Date('2022-06-16'),
|
|
76
76
|
resourcePublished: new Date('2022-06-16'),
|
|
77
77
|
onlineResources: [
|
|
@@ -645,7 +645,7 @@ export const METAWAL_SERVICE_RECORD: ServiceRecord = {
|
|
|
645
645
|
},
|
|
646
646
|
recordCreated: new Date('2019-04-02T12:31:58'),
|
|
647
647
|
recordUpdated: new Date('2022-02-09T11:31:06.766Z'),
|
|
648
|
-
|
|
648
|
+
resourceIdentifiers: [{ code: '6d2b6fdb-f1ea-4d48-8697-a0c05512f1dc' }],
|
|
649
649
|
resourcePublished: new Date('2016-12-01'),
|
|
650
650
|
securityConstraints: [],
|
|
651
651
|
title:
|
|
@@ -2,7 +2,7 @@ import { ReuseRecord } from '../../../../../../libs/common/domain/src/lib/model/
|
|
|
2
2
|
|
|
3
3
|
export const WALLONIE_REUSE_SPW_RECORD: ReuseRecord = {
|
|
4
4
|
uniqueIdentifier: '83809bcd-1763-4d28-b820-2b9828083ba5',
|
|
5
|
-
|
|
5
|
+
resourceIdentifiers: [{ code: '83809bcd-1763-4d28-b820-2b9828083ba5' }],
|
|
6
6
|
kind: 'reuse',
|
|
7
7
|
otherLanguages: [],
|
|
8
8
|
defaultLanguage: 'fr',
|
package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ServiceRecord } from '../../../../../../libs/common/domain/src/lib/mode
|
|
|
2
2
|
|
|
3
3
|
export const WALLONIE_SERVICE_NAPITSWALLONIA_RECORD: ServiceRecord = {
|
|
4
4
|
uniqueIdentifier: 'fe1c1a3d-c75b-435c-a1d1-48426818f54d',
|
|
5
|
-
|
|
5
|
+
resourceIdentifiers: [{ code: 'fe1c1a3d-c75b-435c-a1d1-48426818f54d' }],
|
|
6
6
|
kind: 'service',
|
|
7
7
|
otherLanguages: [],
|
|
8
8
|
defaultLanguage: 'fr',
|
|
@@ -451,6 +451,32 @@ export class Gn4FieldMapper {
|
|
|
451
451
|
}),
|
|
452
452
|
}
|
|
453
453
|
},
|
|
454
|
+
resourceIdentifier: (output, source) => {
|
|
455
|
+
const identifiers = getAsArray(selectField(source, 'resourceIdentifier'))
|
|
456
|
+
|
|
457
|
+
if (!identifiers.length) return output
|
|
458
|
+
|
|
459
|
+
const mappedIdentifiers = identifiers
|
|
460
|
+
.map((id) => {
|
|
461
|
+
const code = selectField<string>(id, 'code')
|
|
462
|
+
const codeSpace = selectField<string>(id, 'codeSpace')
|
|
463
|
+
const link = selectField<string>(id, 'link')
|
|
464
|
+
|
|
465
|
+
return {
|
|
466
|
+
code,
|
|
467
|
+
...(codeSpace && { codeSpace }),
|
|
468
|
+
...(link && { url: link }),
|
|
469
|
+
}
|
|
470
|
+
})
|
|
471
|
+
.filter((id) => id !== null)
|
|
472
|
+
|
|
473
|
+
if (!mappedIdentifiers.length) return output
|
|
474
|
+
|
|
475
|
+
return {
|
|
476
|
+
...output,
|
|
477
|
+
resourceIdentifiers: mappedIdentifiers,
|
|
478
|
+
}
|
|
479
|
+
},
|
|
454
480
|
}
|
|
455
481
|
|
|
456
482
|
private genericField = (output) => output
|
|
@@ -92,7 +92,7 @@ export class Iso19139Converter extends BaseConverter<string> {
|
|
|
92
92
|
recordUpdated: readRecordUpdated,
|
|
93
93
|
recordCreated: () => undefined, // not supported in ISO19139
|
|
94
94
|
recordPublished: () => undefined, // not supported in ISO19139
|
|
95
|
-
|
|
95
|
+
resourceIdentifiers: readResourceIdentifier,
|
|
96
96
|
resourceUpdated: readResourceUpdated,
|
|
97
97
|
resourceCreated: readResourceCreated,
|
|
98
98
|
resourcePublished: readResourcePublished,
|
|
@@ -133,7 +133,7 @@ export class Iso19139Converter extends BaseConverter<string> {
|
|
|
133
133
|
recordUpdated: writeRecordUpdated,
|
|
134
134
|
recordCreated: () => undefined, // not supported in ISO19139
|
|
135
135
|
recordPublished: () => undefined, // not supported in ISO19139
|
|
136
|
-
|
|
136
|
+
resourceIdentifiers: writeResourceIdentifier,
|
|
137
137
|
resourceUpdated: writeResourceUpdated,
|
|
138
138
|
resourceCreated: writeResourceCreated,
|
|
139
139
|
resourcePublished: writeResourcePublished,
|
|
@@ -240,12 +240,19 @@ export class Iso19139Converter extends BaseConverter<string> {
|
|
|
240
240
|
const onlineResources = this.readers['onlineResources'](rootEl, tr)
|
|
241
241
|
const otherLanguages = this.readers['otherLanguages'](rootEl, tr)
|
|
242
242
|
const defaultLanguage = this.readers['defaultLanguage'](rootEl, tr)
|
|
243
|
-
const
|
|
243
|
+
const resourceIdentifiers = this.readers['resourceIdentifiers'](
|
|
244
|
+
rootEl,
|
|
245
|
+
tr
|
|
246
|
+
) as Array<{
|
|
247
|
+
code: string
|
|
248
|
+
codeSpace?: string
|
|
249
|
+
url?: string
|
|
250
|
+
}>
|
|
244
251
|
const spatialExtents = this.readers['spatialExtents'](rootEl, tr)
|
|
245
252
|
|
|
246
253
|
return {
|
|
247
254
|
uniqueIdentifier,
|
|
248
|
-
...(
|
|
255
|
+
...(resourceIdentifiers?.length > 0 && { resourceIdentifiers }),
|
|
249
256
|
kind,
|
|
250
257
|
otherLanguages,
|
|
251
258
|
defaultLanguage,
|
|
@@ -388,8 +395,8 @@ export class Iso19139Converter extends BaseConverter<string> {
|
|
|
388
395
|
this.writers['otherConstraints'](record, rootEl)
|
|
389
396
|
fieldChanged('onlineResources') &&
|
|
390
397
|
this.writers['onlineResources'](record, rootEl)
|
|
391
|
-
fieldChanged('
|
|
392
|
-
this.writers['
|
|
398
|
+
fieldChanged('resourceIdentifiers') &&
|
|
399
|
+
this.writers['resourceIdentifiers'](record, rootEl)
|
|
393
400
|
|
|
394
401
|
if (record.kind === 'dataset') {
|
|
395
402
|
fieldChanged('status') && this.writers['status'](record, rootEl)
|
|
@@ -1183,8 +1183,10 @@ export function readDefaultLanguage(rootEl: XmlElement): LanguageCode {
|
|
|
1183
1183
|
)(rootEl)
|
|
1184
1184
|
}
|
|
1185
1185
|
|
|
1186
|
-
export function readResourceIdentifier(
|
|
1187
|
-
|
|
1186
|
+
export function readResourceIdentifier(
|
|
1187
|
+
rootEl: XmlElement
|
|
1188
|
+
): Array<{ code: string; codeSpace?: string; url?: string }> {
|
|
1189
|
+
const code = pipe(
|
|
1188
1190
|
findIdentification(),
|
|
1189
1191
|
findNestedElement(
|
|
1190
1192
|
'gmd:citation',
|
|
@@ -1195,4 +1197,6 @@ export function readResourceIdentifier(rootEl: XmlElement): string {
|
|
|
1195
1197
|
),
|
|
1196
1198
|
extractCharacterString()
|
|
1197
1199
|
)(rootEl)
|
|
1200
|
+
|
|
1201
|
+
return code ? [{ code }] : []
|
|
1198
1202
|
}
|
|
@@ -1502,14 +1502,16 @@ export function writeResourceIdentifier(
|
|
|
1502
1502
|
record: DatasetRecord,
|
|
1503
1503
|
rootEl: XmlElement
|
|
1504
1504
|
) {
|
|
1505
|
+
const firstIdentifier = record.resourceIdentifiers?.[0]?.code
|
|
1506
|
+
|
|
1505
1507
|
pipe(
|
|
1506
1508
|
findOrCreateIdentification(),
|
|
1507
1509
|
findNestedChildOrCreate('gmd:citation', 'gmd:CI_Citation'),
|
|
1508
1510
|
removeChildrenByName('gmd:identifier'),
|
|
1509
|
-
|
|
1511
|
+
firstIdentifier
|
|
1510
1512
|
? pipe(
|
|
1511
1513
|
createNestedChild('gmd:identifier', 'gmd:MD_Identifier', 'gmd:code'),
|
|
1512
|
-
writeCharacterString(
|
|
1514
|
+
writeCharacterString(firstIdentifier)
|
|
1513
1515
|
)
|
|
1514
1516
|
: noop
|
|
1515
1517
|
)(rootEl)
|
|
@@ -113,6 +113,12 @@ export interface INSPIRE_topic {
|
|
|
113
113
|
label: string
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
export interface ResourceIdentifier {
|
|
117
|
+
code: string
|
|
118
|
+
codeSpace?: string
|
|
119
|
+
url?: string
|
|
120
|
+
}
|
|
121
|
+
|
|
116
122
|
export interface BaseRecord {
|
|
117
123
|
uniqueIdentifier: Uuid
|
|
118
124
|
ownerOrganization: Organization
|
|
@@ -135,7 +141,8 @@ export interface BaseRecord {
|
|
|
135
141
|
updateFrequency?: UpdateFrequency
|
|
136
142
|
|
|
137
143
|
// information related to the resource (dataset, service)
|
|
138
|
-
|
|
144
|
+
|
|
145
|
+
resourceIdentifiers?: Array<ResourceIdentifier>
|
|
139
146
|
contactsForResource: Array<Individual>
|
|
140
147
|
resourceCreated?: Date
|
|
141
148
|
resourcePublished?: Date
|
|
@@ -7,6 +7,9 @@ import {
|
|
|
7
7
|
WfsEndpoint,
|
|
8
8
|
WfsVersion,
|
|
9
9
|
TmsEndpoint,
|
|
10
|
+
StacEndpoint,
|
|
11
|
+
GetCollectionItemsOptions,
|
|
12
|
+
StacItemsDocument,
|
|
10
13
|
} from '@camptocamp/ogc-client'
|
|
11
14
|
import {
|
|
12
15
|
BaseReader,
|
|
@@ -97,16 +100,27 @@ export class DataService {
|
|
|
97
100
|
if (!featureType) {
|
|
98
101
|
throw new Error('wfs.featuretype.notfound')
|
|
99
102
|
}
|
|
103
|
+
|
|
104
|
+
const wfsVersion = endpoint.getVersion()
|
|
105
|
+
const addSrsName = wfsVersion === '1.1.0' || wfsVersion === '2.0.0'
|
|
106
|
+
const defaultCrs = featureType.defaultCrs
|
|
107
|
+
|
|
108
|
+
const shouldAddOutputCrs = addSrsName && defaultCrs
|
|
109
|
+
|
|
100
110
|
return {
|
|
101
|
-
all: featureType.outputFormats.reduce(
|
|
102
|
-
|
|
111
|
+
all: featureType.outputFormats.reduce((prev, curr) => {
|
|
112
|
+
const isJsonFormat = curr.toLowerCase().includes('json')
|
|
113
|
+
return {
|
|
103
114
|
...prev,
|
|
104
115
|
[curr]: endpoint.getFeatureUrl(featureType.name, {
|
|
105
116
|
outputFormat: curr,
|
|
117
|
+
...(shouldAddOutputCrs &&
|
|
118
|
+
!isJsonFormat && {
|
|
119
|
+
outputCrs: defaultCrs,
|
|
120
|
+
}),
|
|
106
121
|
}),
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
),
|
|
122
|
+
}
|
|
123
|
+
}, {}),
|
|
110
124
|
geojson: endpoint.supportsJson(featureType.name)
|
|
111
125
|
? endpoint.getFeatureUrl(featureType.name, {
|
|
112
126
|
asJson: true,
|
|
@@ -233,6 +247,17 @@ export class DataService {
|
|
|
233
247
|
})
|
|
234
248
|
}
|
|
235
249
|
|
|
250
|
+
async getItemsFromStacApi(
|
|
251
|
+
url: string,
|
|
252
|
+
options: GetCollectionItemsOptions
|
|
253
|
+
): Promise<StacItemsDocument> {
|
|
254
|
+
return await StacEndpoint.getItemsFromUrl(url, options)
|
|
255
|
+
.then((response) => response)
|
|
256
|
+
.catch(() => {
|
|
257
|
+
throw new Error(`ogc.unreachable.unknown`)
|
|
258
|
+
})
|
|
259
|
+
}
|
|
260
|
+
|
|
236
261
|
async getGeodataLinksFromTms(
|
|
237
262
|
tmsLink: DatasetServiceDistribution,
|
|
238
263
|
keepOriginalLink = false
|
package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html
CHANGED
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
(valueChange)="valueChange.emit($event)"
|
|
70
70
|
></gn-ui-form-field-overviews>
|
|
71
71
|
</ng-container>
|
|
72
|
-
<ng-container *ngSwitchCase="'
|
|
72
|
+
<ng-container *ngSwitchCase="'resourceIdentifiers'">
|
|
73
73
|
<gn-ui-form-field-simple
|
|
74
74
|
[type]="'text'"
|
|
75
|
-
[value]="
|
|
76
|
-
(valueChange)="
|
|
75
|
+
[value]="valueAsResourceIdentifierCode"
|
|
76
|
+
(valueChange)="handleResourceIdentifierChange($event)"
|
|
77
77
|
></gn-ui-form-field-simple>
|
|
78
78
|
</ng-container>
|
|
79
79
|
<ng-container *ngSwitchCase="'resourceCreated'">
|
package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts
CHANGED
|
@@ -142,4 +142,34 @@ export class FormFieldComponent {
|
|
|
142
142
|
get valueAsOnlineResources() {
|
|
143
143
|
return this.value as Array<OnlineResource>
|
|
144
144
|
}
|
|
145
|
+
get valueAsResourceIdentifierCode() {
|
|
146
|
+
const identifiers = this.value as Array<{
|
|
147
|
+
code: string
|
|
148
|
+
codeSpace?: string
|
|
149
|
+
url?: string
|
|
150
|
+
}>
|
|
151
|
+
return identifiers?.[0]?.code || ''
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
handleResourceIdentifierChange(code: string) {
|
|
155
|
+
const identifiers = this.value as Array<{
|
|
156
|
+
code: string
|
|
157
|
+
codeSpace?: string
|
|
158
|
+
url?: string
|
|
159
|
+
}>
|
|
160
|
+
|
|
161
|
+
if (!code) {
|
|
162
|
+
this.valueChange.emit(identifiers?.slice(1) || [])
|
|
163
|
+
return
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if (identifiers?.[0]) {
|
|
167
|
+
this.valueChange.emit([
|
|
168
|
+
{ ...identifiers[0], code },
|
|
169
|
+
...identifiers.slice(1),
|
|
170
|
+
])
|
|
171
|
+
} else {
|
|
172
|
+
this.valueChange.emit([{ code }])
|
|
173
|
+
}
|
|
174
|
+
}
|
|
145
175
|
}
|
|
@@ -81,7 +81,7 @@ export const RECORD_RESOURCE_CREATED_FIELD: EditorField = {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
export const RESOURCE_IDENTIFIER_FIELD: EditorField = {
|
|
84
|
-
model: '
|
|
84
|
+
model: 'resourceIdentifiers',
|
|
85
85
|
formFieldConfig: {
|
|
86
86
|
labelKey: marker('editor.record.form.field.resourceIdentifier'),
|
|
87
87
|
},
|
|
@@ -8,3 +8,4 @@ export * from './lib/external-viewer-button/external-viewer-button.component'
|
|
|
8
8
|
export * from './lib/gpf-api-dl/gpf-api-dl.component'
|
|
9
9
|
export * from './lib/map-view/map-view.component'
|
|
10
10
|
export * from './lib/record-meta/record-meta.component'
|
|
11
|
+
export * from './lib/stac-view/stac-view.component'
|
package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { MdViewFacade } from '../state'
|
|
|
12
12
|
import { CopyTextButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
13
13
|
import { CommonModule } from '@angular/common'
|
|
14
14
|
import { TranslatePipe } from '@ngx-translate/core'
|
|
15
|
-
import { GEONETWORK_UI_TAG_NAME } from '../../../../../../libs/util/shared/src'
|
|
15
|
+
import { GEONETWORK_UI_TAG_NAME, PROXY_PATH } from '../../../../../../libs/util/shared/src'
|
|
16
16
|
|
|
17
17
|
export const WEB_COMPONENT_EMBEDDER_URL = new InjectionToken<string>(
|
|
18
18
|
'webComponentEmbedderUrl'
|
|
@@ -60,6 +60,9 @@ export class DataViewPermalinkComponent {
|
|
|
60
60
|
url.searchParams.append('e', `gn-dataset-view-map`)
|
|
61
61
|
}
|
|
62
62
|
url.searchParams.append('a', `api-url=${this.config.basePath}`)
|
|
63
|
+
if (this.proxyPath) {
|
|
64
|
+
url.searchParams.append('a', `proxy-path=${this.proxyPath}`)
|
|
65
|
+
}
|
|
63
66
|
url.searchParams.append('a', `dataset-id=${metadata.uniqueIdentifier}`)
|
|
64
67
|
url.searchParams.append('a', `primary-color=#0f4395`)
|
|
65
68
|
url.searchParams.append('a', `secondary-color=#8bc832`)
|
|
@@ -72,6 +75,9 @@ export class DataViewPermalinkComponent {
|
|
|
72
75
|
constructor(
|
|
73
76
|
@Inject(Configuration) private config: Configuration,
|
|
74
77
|
@Optional()
|
|
78
|
+
@Inject(PROXY_PATH)
|
|
79
|
+
private proxyPath: string,
|
|
80
|
+
@Optional()
|
|
75
81
|
@Inject(WEB_COMPONENT_EMBEDDER_URL)
|
|
76
82
|
protected wcEmbedderBaseUrl: string,
|
|
77
83
|
private facade: MdViewFacade
|
package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
Component,
|
|
4
4
|
Inject,
|
|
5
5
|
Input,
|
|
6
|
+
Optional,
|
|
6
7
|
} from '@angular/core'
|
|
7
8
|
import { Configuration } from '../../../../../../libs/data-access/gn4/src'
|
|
8
9
|
import { MdViewFacade } from '../state'
|
|
@@ -10,7 +11,7 @@ import { BehaviorSubject, combineLatest, map } from 'rxjs'
|
|
|
10
11
|
import { CopyTextButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
11
12
|
import { CommonModule } from '@angular/common'
|
|
12
13
|
import { TranslatePipe } from '@ngx-translate/core'
|
|
13
|
-
import { GEONETWORK_UI_TAG_NAME } from '../../../../../../libs/util/shared/src'
|
|
14
|
+
import { GEONETWORK_UI_TAG_NAME, PROXY_PATH } from '../../../../../../libs/util/shared/src'
|
|
14
15
|
|
|
15
16
|
@Component({
|
|
16
17
|
selector: 'gn-ui-data-view-web-component',
|
|
@@ -42,7 +43,12 @@ export class DataViewWebComponentComponent {
|
|
|
42
43
|
api-url="${new URL(
|
|
43
44
|
this.config.basePath,
|
|
44
45
|
window.location.origin
|
|
45
|
-
).toString()}"
|
|
46
|
+
).toString()}"${
|
|
47
|
+
this.proxyPath
|
|
48
|
+
? `
|
|
49
|
+
proxy-path="${this.proxyPath}"`
|
|
50
|
+
: ''
|
|
51
|
+
}
|
|
46
52
|
dataset-id="${metadata.uniqueIdentifier}"
|
|
47
53
|
aggregation="${aggregation}"
|
|
48
54
|
x-property="${xProperty}"
|
|
@@ -65,7 +71,12 @@ export class DataViewWebComponentComponent {
|
|
|
65
71
|
api-url="${new URL(
|
|
66
72
|
this.config.basePath,
|
|
67
73
|
window.location.origin
|
|
68
|
-
).toString()}"
|
|
74
|
+
).toString()}"${
|
|
75
|
+
this.proxyPath
|
|
76
|
+
? `
|
|
77
|
+
proxy-path="${this.proxyPath}"`
|
|
78
|
+
: ''
|
|
79
|
+
}
|
|
69
80
|
dataset-id="${metadata.uniqueIdentifier}"
|
|
70
81
|
primary-color="#0f4395"
|
|
71
82
|
secondary-color="#8bc832"
|
|
@@ -82,7 +93,12 @@ export class DataViewWebComponentComponent {
|
|
|
82
93
|
api-url="${new URL(
|
|
83
94
|
this.config.basePath,
|
|
84
95
|
window.location.origin
|
|
85
|
-
).toString()}"
|
|
96
|
+
).toString()}"${
|
|
97
|
+
this.proxyPath
|
|
98
|
+
? `
|
|
99
|
+
proxy-path="${this.proxyPath}"`
|
|
100
|
+
: ''
|
|
101
|
+
}
|
|
86
102
|
dataset-id="${metadata.uniqueIdentifier}"
|
|
87
103
|
primary-color="#0f4395"
|
|
88
104
|
secondary-color="#8bc832"
|
|
@@ -97,6 +113,9 @@ export class DataViewWebComponentComponent {
|
|
|
97
113
|
|
|
98
114
|
constructor(
|
|
99
115
|
@Inject(Configuration) private config: Configuration,
|
|
116
|
+
@Optional()
|
|
117
|
+
@Inject(PROXY_PATH)
|
|
118
|
+
private proxyPath: string,
|
|
100
119
|
private facade: MdViewFacade
|
|
101
120
|
) {}
|
|
102
121
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<div class="mt-6 bg-white border border-gray-300 overflow-hidden rounded-lg">
|
|
2
|
+
<div
|
|
3
|
+
class="w-full min-h-[366px] flex md:flex-row flex-col border-b border-gray-300"
|
|
4
|
+
>
|
|
5
|
+
<div class="md:w-1/2 w-full flex-1 flex flex-col">
|
|
6
|
+
<gn-ui-date-range-inputs
|
|
7
|
+
[temporalExtent]="currentTemporalExtent$ | async"
|
|
8
|
+
(temporalExtentChange)="onTemporalExtentChange($event)"
|
|
9
|
+
></gn-ui-date-range-inputs>
|
|
10
|
+
|
|
11
|
+
<div class="mt-auto mb-8 mx-8" *ngIf="isFilterModified">
|
|
12
|
+
<gn-ui-button
|
|
13
|
+
id="reset-filters-button"
|
|
14
|
+
type="light"
|
|
15
|
+
(buttonClick)="onResetFilters()"
|
|
16
|
+
>
|
|
17
|
+
<span translate>stac.filter.reset</span>
|
|
18
|
+
<ng-icon name="matDeleteOutline" class="ml-2"></ng-icon>
|
|
19
|
+
</gn-ui-button>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div class="md:w-1/2 w-full min-h-[280px] flex items-center justify-center">
|
|
24
|
+
<span>Map...</span>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div
|
|
28
|
+
class="relative mx-5 my-[30px] min-h-[274px] flex items-center justify-center flex-col"
|
|
29
|
+
>
|
|
30
|
+
<!-- Keep grid outside ngIf to keep items$ observable alive -->
|
|
31
|
+
<gn-ui-stac-items-result-grid
|
|
32
|
+
[items]="items$ | async"
|
|
33
|
+
></gn-ui-stac-items-result-grid>
|
|
34
|
+
<div
|
|
35
|
+
*ngIf="(items$ | async)?.length > 0; else noResultsOrError"
|
|
36
|
+
class="mt-[20px] mx-auto flex justify-center"
|
|
37
|
+
>
|
|
38
|
+
<gn-ui-previous-next-buttons
|
|
39
|
+
[listComponent]="this"
|
|
40
|
+
[displayLabels]="true"
|
|
41
|
+
></gn-ui-previous-next-buttons>
|
|
42
|
+
</div>
|
|
43
|
+
<ng-template #noResultsOrError>
|
|
44
|
+
<gn-ui-popup-alert
|
|
45
|
+
*ngIf="error"
|
|
46
|
+
type="warning"
|
|
47
|
+
icon="matErrorOutlineOutline"
|
|
48
|
+
class="absolute left-0 top-0 w-full block"
|
|
49
|
+
>
|
|
50
|
+
<span translate>{{ error }}</span>
|
|
51
|
+
</gn-ui-popup-alert>
|
|
52
|
+
<div
|
|
53
|
+
*ngIf="!error"
|
|
54
|
+
class="flex items-center justify-center flex-col h-full gap-[10px]"
|
|
55
|
+
>
|
|
56
|
+
<h2 class="text-center text-xl" translate>stac.results.noResults</h2>
|
|
57
|
+
<gn-ui-button
|
|
58
|
+
id="no-results-button"
|
|
59
|
+
type="secondary"
|
|
60
|
+
(buttonClick)="onResetFilters()"
|
|
61
|
+
>
|
|
62
|
+
<span translate>stac.filter.reset</span>
|
|
63
|
+
<ng-icon name="matDeleteOutline" class="ml-2"></ng-icon>
|
|
64
|
+
</gn-ui-button>
|
|
65
|
+
</div>
|
|
66
|
+
</ng-template>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|