geonetwork-ui 2.6.0-dev.01d2b5fc0 → 2.6.0-dev.01f702fed
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/index.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/base.converter.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/common/resource-types.mjs +17 -15
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +8 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +3 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +4 -4
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +2 -10
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +18 -11
- package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -1
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +7 -3
- package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +2 -2
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +2 -1
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +7 -3
- package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +2 -3
- package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +5 -5
- package/esm2022/libs/feature/map/src/lib/map-state-container/map-state-container.component.mjs +2 -2
- package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +2 -4
- package/esm2022/libs/feature/record/src/index.mjs +1 -2
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +5 -9
- package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +7 -11
- package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +6 -3
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +45 -14
- package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +8 -5
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -6
- package/esm2022/libs/feature/router/src/lib/default/constants.mjs +3 -1
- package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
- package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +10 -2
- package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -3
- package/esm2022/libs/feature/search/src/index.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +8 -7
- package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +13 -19
- package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -2
- package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +41 -0
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +26 -10
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +70 -1
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -3
- package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/index.mjs +4 -1
- package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +27 -6
- package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +22 -6
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +18 -7
- package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +163 -0
- package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +51 -0
- package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +29 -7
- package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +8 -5
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +3 -2
- package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +161 -0
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +22 -4
- package/esm2022/libs/ui/inputs/src/index.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.mjs +42 -0
- package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.mjs +2 -0
- package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +4 -3
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -9
- package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +43 -3
- package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +48 -11
- package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +15 -3
- package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +6 -6
- package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +4 -12
- package/esm2022/libs/ui/map/src/index.mjs +2 -1
- package/esm2022/libs/ui/map/src/lib/components/map-container/map-container.component.mjs +14 -3
- package/esm2022/libs/ui/map/src/lib/components/map-legend/map-legend.component.mjs +5 -1
- package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +79 -0
- package/esm2022/libs/ui/search/src/index.mjs +2 -1
- package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +53 -0
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +5 -4
- package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +11 -3
- package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +3 -3
- package/esm2022/libs/util/app-config/src/lib/app-config.mjs +2 -1
- package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
- package/esm2022/libs/util/data-fetcher/src/lib/data-fetcher.mjs +6 -2
- package/esm2022/libs/util/data-fetcher/src/lib/model.mjs +4 -1
- package/esm2022/libs/util/data-fetcher/src/lib/readers/wfs.mjs +30 -2
- package/esm2022/libs/util/shared/src/index.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/gn-ui-version.mjs +6 -0
- package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +33 -24
- package/esm2022/translations/de.json +39 -4
- package/esm2022/translations/en.json +40 -5
- package/esm2022/translations/es.json +39 -4
- package/esm2022/translations/fr.json +40 -5
- package/esm2022/translations/it.json +39 -5
- package/esm2022/translations/nl.json +39 -4
- package/esm2022/translations/pt.json +39 -4
- package/fesm2022/geonetwork-ui.mjs +1771 -634
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/index.d.ts +1 -0
- package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +21 -0
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +1 -0
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +23 -4
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +2 -2
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +6 -6
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
- package/libs/feature/record/src/index.d.ts +0 -1
- package/libs/feature/record/src/index.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +9 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +2 -3
- 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 +1 -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/external-viewer-button/external-viewer-button.component.d.ts +2 -1
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +7 -2
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts +2 -2
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts +3 -1
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts +7 -7
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/constants.d.ts +2 -0
- package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/router.config.d.ts +2 -0
- package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/state/router.facade.d.ts +5 -0
- package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
- package/libs/feature/search/src/index.d.ts +1 -1
- package/libs/feature/search/src/index.d.ts.map +1 -1
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/feature-search.module.d.ts +4 -2
- package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
- package/libs/feature/search/src/lib/record-url.token.d.ts +3 -1
- package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +21 -0
- package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -0
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +5 -3
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.d.ts +21 -0
- package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +3 -0
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts +9 -1
- package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +8 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts +43 -0
- package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts +11 -0
- package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +10 -2
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts +30 -0
- package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +4 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/index.d.ts +1 -1
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts +14 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts +6 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -24
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts +10 -3
- package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +9 -2
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +2 -0
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
- package/libs/ui/map/src/index.d.ts +1 -0
- package/libs/ui/map/src/index.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts +4 -2
- package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/map-legend/map-legend.component.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts +15 -0
- package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts.map +1 -0
- package/libs/ui/search/src/index.d.ts +1 -0
- package/libs/ui/search/src/index.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +17 -0
- package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -0
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/ui-search.module.d.ts +21 -19
- package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/data-fetcher.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/model.d.ts +3 -2
- package/libs/util/data-fetcher/src/lib/model.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts +1 -0
- package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts.map +1 -1
- 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/gn-ui-version.d.ts +3 -0
- package/libs/util/shared/src/lib/gn-ui-version.d.ts.map +1 -0
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +30 -23
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/index.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/base.converter.ts +1 -4
- package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +29 -15
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +2 -2
- 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.service+napitswallonia.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +8 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -3
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +1 -9
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +20 -12
- package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +22 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +26 -26
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +2 -2
- package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +5 -5
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +18 -2
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.html +1 -0
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +4 -0
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +1 -0
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +10 -8
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +4 -0
- package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +1 -2
- package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +2 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -2
- package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +1 -3
- package/src/libs/feature/record/src/index.ts +0 -1
- package/src/libs/feature/record/src/lib/data-view/data-view.component.html +14 -10
- package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -3
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +1 -1
- package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +4 -5
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html +2 -2
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +1 -0
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +22 -15
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +41 -7
- package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +5 -3
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +4 -7
- package/src/libs/feature/router/src/lib/default/constants.ts +2 -0
- package/src/libs/feature/router/src/lib/default/router.config.ts +2 -0
- package/src/libs/feature/router/src/lib/default/router.service.ts +10 -0
- package/src/libs/feature/router/src/lib/default/state/router.facade.ts +10 -1
- package/src/libs/feature/search/src/index.ts +1 -1
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +1 -7
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +16 -8
- package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -10
- package/src/libs/feature/search/src/lib/record-url.token.ts +10 -1
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.html +16 -0
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +59 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.css +6 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +24 -5
- package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +4 -5
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +99 -0
- package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
- package/src/libs/ui/elements/src/index.ts +3 -0
- package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +64 -38
- package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +26 -2
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +21 -18
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +20 -2
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +42 -10
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +29 -2
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.css +0 -0
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +156 -0
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +190 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.css +6 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +9 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +51 -0
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +30 -29
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +28 -2
- package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.html +3 -5
- package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +9 -9
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +9 -0
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +20 -7
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -4
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +3 -2
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +2 -1
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.css +0 -0
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +96 -0
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +183 -0
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +9 -0
- package/src/libs/ui/inputs/src/index.ts +1 -1
- package/src/libs/ui/inputs/src/lib/button/button.component.ts +2 -2
- package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.html +23 -0
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.ts +44 -0
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.ts +5 -0
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +6 -6
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +2 -1
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
- package/src/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.ts +46 -2
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +22 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +2 -2
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +43 -5
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -5
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -1
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +3 -7
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +13 -0
- package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.html +1 -1
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +17 -5
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +3 -3
- package/src/libs/ui/layout/src/lib/ui-layout.module.ts +1 -5
- package/src/libs/ui/map/src/index.ts +1 -0
- package/src/libs/ui/map/src/lib/components/map-container/map-container.component.ts +14 -0
- package/src/libs/ui/map/src/lib/components/map-legend/map-legend.component.ts +3 -0
- package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.css +0 -0
- package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.html +4 -0
- package/src/libs/{feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts → ui/map/src/lib/components/spatial-extent/spatial-extent.component.ts} +7 -8
- package/src/libs/ui/search/src/index.ts +1 -0
- package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.html +1 -1
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +24 -0
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +53 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +7 -4
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +2 -1
- package/src/libs/ui/search/src/lib/ui-search.module.ts +5 -0
- package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +4 -3
- package/src/libs/util/app-config/src/lib/app-config.ts +1 -0
- package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
- package/src/libs/util/data-fetcher/src/lib/data-fetcher.ts +3 -1
- package/src/libs/util/data-fetcher/src/lib/model.ts +11 -1
- package/src/libs/util/data-fetcher/src/lib/readers/wfs.ts +29 -3
- package/src/libs/util/shared/src/index.ts +1 -0
- package/src/libs/util/shared/src/lib/gn-ui-version.ts +8 -0
- package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +12 -3
- package/src/libs/util/shared/src/lib/links/link-utils.ts +50 -30
- package/tailwind.base.config.js +3 -0
- package/tailwind.base.css +39 -13
- package/translations/de.json +39 -4
- package/translations/en.json +40 -5
- package/translations/es.json +39 -4
- package/translations/fr.json +40 -5
- package/translations/it.json +39 -5
- package/translations/nl.json +39 -4
- package/translations/pt.json +39 -4
- package/translations/sk.json +39 -4
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +0 -79
- package/esm2022/libs/feature/record/src/lib/gn-ui-version.token.mjs +0 -3
- package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +0 -18
- package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +0 -16
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +0 -15
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +0 -1
- package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
- package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
- package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts +0 -9
- package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts.map +0 -1
- package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts +0 -8
- package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts.map +0 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +0 -1
- package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
- package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.html +0 -4
- package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.ts +0 -10
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.css +0 -3
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +0 -9
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.ts +0 -15
- /package/src/libs/feature/{editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.css → search/src/lib/results-hits/results-hits.container.component.css} +0 -0
|
@@ -1,112 +1,119 @@
|
|
|
1
|
-
import { DatasetOnlineResource, ServiceProtocol } from '../../../../../../libs/common/domain/src/lib/model/record';
|
|
1
|
+
import { DatasetOnlineResource, ServiceOnlineResource, ServiceProtocol } from '../../../../../../libs/common/domain/src/lib/model/record';
|
|
2
2
|
export declare const FORMATS: {
|
|
3
3
|
readonly csv: {
|
|
4
4
|
readonly extensions: readonly ["csv"];
|
|
5
5
|
readonly priority: 1;
|
|
6
|
-
readonly color: "#
|
|
6
|
+
readonly color: "#F6A924";
|
|
7
7
|
readonly mimeTypes: readonly ["text/csv", "application/csv"];
|
|
8
8
|
};
|
|
9
9
|
readonly excel: {
|
|
10
10
|
readonly extensions: readonly ["excel", "xls", "xlsx", "ms-excel", "openxmlformats-officedocument"];
|
|
11
11
|
readonly priority: 2;
|
|
12
|
-
readonly color: "#
|
|
12
|
+
readonly color: "#FFDE10";
|
|
13
13
|
readonly mimeTypes: readonly ["application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
|
|
14
14
|
};
|
|
15
15
|
readonly geojson: {
|
|
16
16
|
readonly extensions: readonly ["geojson"];
|
|
17
17
|
readonly priority: 3;
|
|
18
|
-
readonly color: "#
|
|
18
|
+
readonly color: "#293C6F";
|
|
19
19
|
readonly mimeTypes: readonly ["application/geo+json", "application/vnd.geo+json"];
|
|
20
20
|
};
|
|
21
21
|
readonly json: {
|
|
22
22
|
readonly extensions: readonly ["json"];
|
|
23
23
|
readonly priority: 3;
|
|
24
|
-
readonly color: "#
|
|
24
|
+
readonly color: "#84D0F0";
|
|
25
25
|
readonly mimeTypes: readonly ["application/json"];
|
|
26
26
|
};
|
|
27
27
|
readonly shp: {
|
|
28
28
|
readonly extensions: readonly ["shp", "shape", "zipped-shapefile"];
|
|
29
29
|
readonly priority: 4;
|
|
30
|
-
readonly color: "#
|
|
30
|
+
readonly color: "#009036";
|
|
31
31
|
readonly mimeTypes: readonly ["x-gis/x-shapefile"];
|
|
32
32
|
};
|
|
33
33
|
readonly gml: {
|
|
34
34
|
readonly extensions: readonly ["gml"];
|
|
35
35
|
readonly priority: 5;
|
|
36
|
-
readonly color: "#
|
|
36
|
+
readonly color: "#E75113";
|
|
37
37
|
readonly mimeTypes: readonly ["application/gml+xml", "text/xml; subtype=gml"];
|
|
38
38
|
};
|
|
39
39
|
readonly kml: {
|
|
40
40
|
readonly extensions: readonly ["kml", "kmz"];
|
|
41
41
|
readonly priority: 6;
|
|
42
|
-
readonly color: "#
|
|
42
|
+
readonly color: "#F4B5D0";
|
|
43
43
|
readonly mimeTypes: readonly ["application/vnd.google-earth.kml+xml", "application/vnd.google-earth.kmz"];
|
|
44
44
|
};
|
|
45
45
|
readonly gpkg: {
|
|
46
46
|
readonly extensions: readonly ["gpkg", "geopackage"];
|
|
47
47
|
readonly priority: 7;
|
|
48
|
-
readonly color: "#
|
|
48
|
+
readonly color: "#7D5D9F";
|
|
49
49
|
readonly mimeTypes: readonly ["application/geopackage+sqlite3"];
|
|
50
50
|
};
|
|
51
51
|
readonly zip: {
|
|
52
52
|
readonly extensions: readonly ["zip", "tar.gz"];
|
|
53
53
|
readonly priority: 8;
|
|
54
|
-
readonly color: "#
|
|
54
|
+
readonly color: "#B0CB52";
|
|
55
55
|
readonly mimeTypes: readonly ["application/zip", "application/x-zip"];
|
|
56
56
|
};
|
|
57
57
|
readonly pdf: {
|
|
58
58
|
readonly extensions: readonly ["pdf"];
|
|
59
59
|
readonly priority: 9;
|
|
60
|
-
readonly color: "#
|
|
60
|
+
readonly color: "#49579E";
|
|
61
61
|
readonly mimeTypes: readonly ["application/pdf"];
|
|
62
62
|
};
|
|
63
63
|
readonly jpg: {
|
|
64
64
|
readonly extensions: readonly ["jpg", "jpeg", "jfif", "pjpeg", "pjp"];
|
|
65
65
|
readonly priority: 9;
|
|
66
|
-
readonly color: "#
|
|
66
|
+
readonly color: "#C4A98F";
|
|
67
67
|
readonly mimeTypes: readonly ["image/jpg"];
|
|
68
68
|
};
|
|
69
69
|
readonly svg: {
|
|
70
70
|
readonly extensions: readonly ["svg"];
|
|
71
71
|
readonly priority: 10;
|
|
72
|
-
readonly color: "#
|
|
72
|
+
readonly color: "#EB6D82";
|
|
73
73
|
readonly mimeTypes: readonly ["image/svg+xml"];
|
|
74
74
|
};
|
|
75
75
|
readonly dxf: {
|
|
76
76
|
readonly extensions: readonly ["dxf"];
|
|
77
77
|
readonly priority: 11;
|
|
78
|
-
readonly color: "#
|
|
78
|
+
readonly color: "#DCCD00";
|
|
79
79
|
readonly mimeTypes: readonly ["application/x-dxf", "image/x-dxf"];
|
|
80
80
|
};
|
|
81
81
|
readonly html: {
|
|
82
82
|
readonly extensions: readonly ["html", "htm"];
|
|
83
83
|
readonly priority: 12;
|
|
84
|
-
readonly color: "#
|
|
84
|
+
readonly color: "#C0C9B6";
|
|
85
85
|
readonly mimeTypes: readonly ["text/html"];
|
|
86
86
|
};
|
|
87
87
|
readonly fgb: {
|
|
88
88
|
readonly extensions: readonly ["fgb", "flatgeobuf"];
|
|
89
89
|
readonly priority: 13;
|
|
90
|
-
readonly color: "#
|
|
90
|
+
readonly color: "#A8111C";
|
|
91
91
|
readonly mimeTypes: readonly ["application/flatgeobuf"];
|
|
92
92
|
};
|
|
93
93
|
readonly jsonfg: {
|
|
94
94
|
readonly extensions: readonly ["jsonfg", "jsonfgc"];
|
|
95
95
|
readonly priority: 14;
|
|
96
|
-
readonly color: "#
|
|
96
|
+
readonly color: "#009EE0";
|
|
97
97
|
readonly mimeTypes: readonly ["application/vnd.ogc.fg+json", "application/vnd.ogc.fg+json;compatibility=geojson"];
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
export type FileFormat = keyof typeof FORMATS;
|
|
101
101
|
export declare function getFormatPriority(linkFormat: FileFormat): number;
|
|
102
|
-
export declare function getLinkPriority(link: DatasetOnlineResource): number;
|
|
102
|
+
export declare function getLinkPriority(link: DatasetOnlineResource | ServiceOnlineResource): number;
|
|
103
103
|
export declare function getFileFormatFromServiceOutput(serviceOutput: string): FileFormat | null;
|
|
104
|
-
export declare function getFileFormat(link: DatasetOnlineResource): FileFormat;
|
|
105
|
-
export declare function isFormatInQueryParam(link: DatasetOnlineResource, alias: string): boolean;
|
|
104
|
+
export declare function getFileFormat(link: DatasetOnlineResource | ServiceOnlineResource): FileFormat;
|
|
105
|
+
export declare function isFormatInQueryParam(link: DatasetOnlineResource | ServiceOnlineResource, alias: string): boolean;
|
|
106
106
|
export declare function mimeTypeToFormat(mimeType: string): FileFormat;
|
|
107
|
-
export declare function checkFileFormat(link: DatasetOnlineResource, format: FileFormat): boolean;
|
|
107
|
+
export declare function checkFileFormat(link: DatasetOnlineResource | ServiceOnlineResource, format: FileFormat): boolean;
|
|
108
108
|
export declare function getBadgeColor(linkFormat: FileFormat): string;
|
|
109
|
-
export declare function getLinkLabel(link: DatasetOnlineResource): string;
|
|
110
|
-
export declare function getLayers(url: string, serviceProtocol: ServiceProtocol): Promise<
|
|
109
|
+
export declare function getLinkLabel(link: DatasetOnlineResource | ServiceOnlineResource): string;
|
|
110
|
+
export declare function getLayers(url: string, serviceProtocol: ServiceProtocol): Promise<{
|
|
111
|
+
name: string;
|
|
112
|
+
hasRecords?: boolean;
|
|
113
|
+
hasFeatures?: boolean;
|
|
114
|
+
hasVectorTiles?: boolean;
|
|
115
|
+
hasMapTiles?: boolean;
|
|
116
|
+
}[] | import("@camptocamp/ogc-client").WfsFeatureTypeFull[] | import("@camptocamp/ogc-client").WmsLayerFull[] | import("@camptocamp/ogc-client").WmtsLayer[]>;
|
|
117
|
+
export declare function wmsLayerFlatten(layerFull: any): any[];
|
|
111
118
|
export declare function getMimeTypeForFormat(format: FileFormat): string | null;
|
|
112
119
|
//# sourceMappingURL=link-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/links/link-utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,eAAe,EAChB,MAAM,2DAA2D,CAAA;AAUlE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgHV,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAA;AAE7C,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAUhE;AAED,wBAAgB,eAAe,
|
|
1
|
+
{"version":3,"file":"link-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/links/link-utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EAChB,MAAM,2DAA2D,CAAA;AAUlE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgHV,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAA;AAE7C,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAUhE;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,GAClD,MAAM,CAER;AAED,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,MAAM,GACpB,UAAU,GAAG,IAAI,CAgBnB;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,GAClD,UAAU,CAcZ;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,EACnD,KAAK,EAAE,MAAM,GACZ,OAAO,CAQT;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAO7D;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,EACnD,MAAM,EAAE,UAAU,GACjB,OAAO,CAQT;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAQ5D;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,GAClD,MAAM,CA0BR;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe;;;;;;8JAmC5E;AAED,wBAAgB,eAAe,CAAC,SAAS,KAAA,SAUxC;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAEtE"}
|
package/package.json
CHANGED
|
@@ -4,23 +4,37 @@ import {
|
|
|
4
4
|
ReuseType,
|
|
5
5
|
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
6
6
|
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
export const PossibleResourceTypes = {
|
|
8
|
+
application: 'reuse',
|
|
9
|
+
dataset: 'dataset',
|
|
10
|
+
interactiveMap: 'reuse',
|
|
11
|
+
map: 'reuse',
|
|
12
|
+
'map/static': 'reuse', // old index field
|
|
13
|
+
'map/interactive': 'reuse', // old index field
|
|
14
|
+
'map-interactive': 'reuse', // new index field since Oct 10, 2024
|
|
15
|
+
'map-static': 'reuse', // new index field
|
|
16
|
+
mapDigital: 'reuse',
|
|
17
|
+
series: 'dataset',
|
|
18
|
+
service: 'service',
|
|
19
|
+
staticMap: 'reuse',
|
|
20
|
+
} as const
|
|
21
|
+
|
|
22
|
+
type KindType = keyof typeof PossibleResourceTypes
|
|
23
|
+
type ResourceType = 'reuse' | 'dataset' | 'service'
|
|
24
|
+
type PossibleResourceTypesGrouped = {
|
|
25
|
+
[K in ResourceType]: KindType[]
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const PossibleResourceTypesDefinition = Object.entries(
|
|
29
|
+
PossibleResourceTypes
|
|
30
|
+
).reduce(
|
|
31
|
+
(acc, [key, val]) => ((acc[val] ??= []).push(key), acc),
|
|
32
|
+
{}
|
|
33
|
+
) as PossibleResourceTypesGrouped
|
|
21
34
|
|
|
35
|
+
export function getResourceType(type: string): RecordKind {
|
|
22
36
|
return (
|
|
23
|
-
|
|
37
|
+
PossibleResourceTypes[type as keyof typeof PossibleResourceTypes] ||
|
|
24
38
|
'dataset'
|
|
25
39
|
)
|
|
26
40
|
}
|
package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts
CHANGED
|
@@ -174,10 +174,10 @@ export const GEO2FRANCE_SERVICE_EAUXUSEES_RECORD: ServiceRecord = {
|
|
|
174
174
|
onlineResources: [
|
|
175
175
|
{
|
|
176
176
|
type: 'endpoint',
|
|
177
|
-
|
|
177
|
+
url: new URL(
|
|
178
178
|
'https://services.sandre.eaufrance.fr/geo/odp?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities'
|
|
179
179
|
),
|
|
180
|
-
|
|
180
|
+
accessServiceProtocol: 'wfs',
|
|
181
181
|
description:
|
|
182
182
|
'Ouvrages de dépollution - Système de traitement des eaux usées - France entière',
|
|
183
183
|
translations: {},
|
|
@@ -772,10 +772,10 @@ export const GEOCAT_CH_SERVICE_RECORD: ServiceRecord = {
|
|
|
772
772
|
},
|
|
773
773
|
{
|
|
774
774
|
type: 'endpoint',
|
|
775
|
-
|
|
775
|
+
url: new URL(
|
|
776
776
|
'https://services.geo.sg.ch/wss/service/SG00170_WMS/guest?request=GetCapabilities&service=WMS'
|
|
777
777
|
),
|
|
778
|
-
|
|
778
|
+
accessServiceProtocol: 'wms',
|
|
779
779
|
description:
|
|
780
780
|
'https://services.geo.sg.ch/wss/service/SG00170_WMS/guest?request=GetCapabilities&service=WMS',
|
|
781
781
|
translations: {
|
|
@@ -629,10 +629,10 @@ export const METAWAL_SERVICE_RECORD: ServiceRecord = {
|
|
|
629
629
|
{
|
|
630
630
|
description:
|
|
631
631
|
'Ce service ESRI-REST permet de visualiser la couche de données "Plan parcellaire cadastral - situation 01/01/2016" (uniquement les données du bâti et le parcellaire)',
|
|
632
|
-
|
|
632
|
+
url: new URL(
|
|
633
633
|
'https://geoservices.wallonie.be/arcgis/rest/services/PLAN_REGLEMENT/CADMAP_2016_PARCELLES/MapServer'
|
|
634
634
|
),
|
|
635
|
-
|
|
635
|
+
accessServiceProtocol: 'esriRest',
|
|
636
636
|
type: 'endpoint',
|
|
637
637
|
translations: {},
|
|
638
638
|
},
|
package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts
CHANGED
|
@@ -274,10 +274,10 @@ export const WALLONIE_SERVICE_NAPITSWALLONIA_RECORD: ServiceRecord = {
|
|
|
274
274
|
onlineResources: [
|
|
275
275
|
{
|
|
276
276
|
type: 'endpoint',
|
|
277
|
-
|
|
277
|
+
url: new URL(
|
|
278
278
|
'https://metawal.wallonie.be/geonetwork/api/collections/napits'
|
|
279
279
|
),
|
|
280
|
-
|
|
280
|
+
accessServiceProtocol: 'other',
|
|
281
281
|
description: "Point d'accès OGC API Records pour NAP-ITS-Wallonia.",
|
|
282
282
|
translations: {},
|
|
283
283
|
},
|
|
@@ -460,6 +460,11 @@ export class Gn4FieldMapper {
|
|
|
460
460
|
),
|
|
461
461
|
selectField<string>(sourceLink, 'description')
|
|
462
462
|
)
|
|
463
|
+
const descriptionLink = selectField<object>(sourceLink, 'descriptionObject')
|
|
464
|
+
const accessRestricted =
|
|
465
|
+
descriptionLink &&
|
|
466
|
+
'link' in descriptionLink &&
|
|
467
|
+
descriptionLink.link.toString().includes('#MD_RestrictionCode_restricted')
|
|
463
468
|
// no url: fail early
|
|
464
469
|
if (url === null) {
|
|
465
470
|
// TODO: collect errors at the record level?
|
|
@@ -485,6 +490,7 @@ export class Gn4FieldMapper {
|
|
|
485
490
|
type,
|
|
486
491
|
url: url,
|
|
487
492
|
accessServiceProtocol,
|
|
493
|
+
accessRestricted: accessRestricted,
|
|
488
494
|
}
|
|
489
495
|
case 'link':
|
|
490
496
|
return {
|
|
@@ -503,8 +509,8 @@ export class Gn4FieldMapper {
|
|
|
503
509
|
return {
|
|
504
510
|
...distribution,
|
|
505
511
|
type,
|
|
506
|
-
|
|
507
|
-
|
|
512
|
+
url: url,
|
|
513
|
+
accessServiceProtocol: accessServiceProtocol,
|
|
508
514
|
}
|
|
509
515
|
}
|
|
510
516
|
}
|
|
@@ -965,8 +965,8 @@ export function extractServiceOnlineResources(): ChainableFunction<
|
|
|
965
965
|
} else {
|
|
966
966
|
return {
|
|
967
967
|
type: 'endpoint',
|
|
968
|
-
|
|
969
|
-
protocol,
|
|
968
|
+
url: url,
|
|
969
|
+
accessServiceProtocol: protocol,
|
|
970
970
|
...(description && { description }),
|
|
971
971
|
translations,
|
|
972
972
|
}
|
|
@@ -1227,7 +1227,7 @@ export function writeLineage(record: DatasetRecord, rootEl: XmlElement) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
|
|
1229
1229
|
export function getServiceEndpointProtocol(endpoint: ServiceEndpoint): string {
|
|
1230
|
-
switch (endpoint.
|
|
1230
|
+
switch (endpoint.accessServiceProtocol.toLowerCase()) {
|
|
1231
1231
|
case 'wfs':
|
|
1232
1232
|
return 'OGC:WFS'
|
|
1233
1233
|
case 'wms':
|
|
@@ -1235,14 +1235,14 @@ export function getServiceEndpointProtocol(endpoint: ServiceEndpoint): string {
|
|
|
1235
1235
|
case 'wps':
|
|
1236
1236
|
return 'OGC:WPS'
|
|
1237
1237
|
default:
|
|
1238
|
-
return endpoint.
|
|
1238
|
+
return endpoint.accessServiceProtocol
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
1241
1241
|
|
|
1242
1242
|
export function createOnlineResource(onlineResource: ServiceOnlineResource) {
|
|
1243
1243
|
let linkageUrl, functionCode, protocol
|
|
1244
1244
|
if (onlineResource.type === 'endpoint') {
|
|
1245
|
-
linkageUrl = onlineResource.
|
|
1245
|
+
linkageUrl = onlineResource.url.toString()
|
|
1246
1246
|
protocol = getServiceEndpointProtocol(onlineResource)
|
|
1247
1247
|
functionCode = 'download'
|
|
1248
1248
|
} else {
|
|
@@ -299,14 +299,6 @@ export class ElasticsearchService {
|
|
|
299
299
|
|
|
300
300
|
private mustNotFilters(): Record<string, unknown>[] {
|
|
301
301
|
return [
|
|
302
|
-
{
|
|
303
|
-
...this.queryFilterOnValues('resourceType', [
|
|
304
|
-
'service',
|
|
305
|
-
'map',
|
|
306
|
-
'map/static',
|
|
307
|
-
'mapDigital',
|
|
308
|
-
]),
|
|
309
|
-
},
|
|
310
302
|
{
|
|
311
303
|
query_string: {
|
|
312
304
|
query:
|
|
@@ -429,7 +421,7 @@ export class ElasticsearchService {
|
|
|
429
421
|
must_not: this.mustNotFilters(),
|
|
430
422
|
},
|
|
431
423
|
},
|
|
432
|
-
_source: ['resourceTitleObject', 'uuid'],
|
|
424
|
+
_source: ['resourceTitleObject', 'uuid', 'resourceType'],
|
|
433
425
|
from: 0,
|
|
434
426
|
size: 20,
|
|
435
427
|
}
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
import { PublicationVersionError } from '../../../../../../libs/common/domain/src/lib/model/error'
|
|
15
15
|
import {
|
|
16
16
|
CatalogRecord,
|
|
17
|
+
DatasetFeatureType,
|
|
17
18
|
DatasetFeatureCatalog,
|
|
18
19
|
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
19
20
|
import {
|
|
@@ -141,24 +142,31 @@ export class Gn4Repository implements RecordsRepositoryInterface {
|
|
|
141
142
|
)
|
|
142
143
|
}
|
|
143
144
|
|
|
145
|
+
private mapEmbeddedFeatureCatalog(
|
|
146
|
+
featureTypes: Array<DatasetFeatureType>
|
|
147
|
+
): DatasetFeatureCatalog {
|
|
148
|
+
return {
|
|
149
|
+
featureTypes: featureTypes.map((featureType) => ({
|
|
150
|
+
name: featureType.typeName || '',
|
|
151
|
+
definition: featureType.definition || '',
|
|
152
|
+
attributes: Array.isArray(featureType.attributeTable)
|
|
153
|
+
? featureType.attributeTable.map((attr) => ({
|
|
154
|
+
name: attr.name,
|
|
155
|
+
title: attr.definition,
|
|
156
|
+
}))
|
|
157
|
+
: [],
|
|
158
|
+
})),
|
|
159
|
+
}
|
|
160
|
+
}
|
|
144
161
|
getFeatureCatalog(
|
|
145
162
|
record: CatalogRecord,
|
|
146
163
|
visited: Set<string> = new Set() // prevent looping
|
|
147
164
|
): Observable<DatasetFeatureCatalog | null> {
|
|
148
165
|
if (
|
|
149
|
-
record.extras &&
|
|
150
|
-
record.extras['featureTypes']
|
|
151
|
-
record.extras['featureTypes'][0]?.attributeTable &&
|
|
152
|
-
Array.isArray(record.extras['featureTypes'][0].attributeTable)
|
|
166
|
+
record.extras?.['featureTypes'] &&
|
|
167
|
+
Array.isArray(record.extras['featureTypes'])
|
|
153
168
|
) {
|
|
154
|
-
return of(
|
|
155
|
-
attributes: record.extras['featureTypes'][0]?.attributeTable?.map(
|
|
156
|
-
(attr) => ({
|
|
157
|
-
name: attr.name,
|
|
158
|
-
title: attr.definition,
|
|
159
|
-
})
|
|
160
|
-
),
|
|
161
|
-
} as DatasetFeatureCatalog)
|
|
169
|
+
return of(this.mapEmbeddedFeatureCatalog(record.extras['featureTypes']))
|
|
162
170
|
}
|
|
163
171
|
|
|
164
172
|
const featureCatalogIdentifier = record.extras[
|
|
@@ -2,6 +2,8 @@ import { Provider } from '@angular/core'
|
|
|
2
2
|
import { PlatformServiceInterface } from '../../../../../../libs/common/domain/src/lib/platform.service.interface'
|
|
3
3
|
import { Gn4PlatformService } from './platform/gn4-platform.service'
|
|
4
4
|
import { Gn4PlatformMapper } from './platform/gn4-platform.mapper'
|
|
5
|
+
import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
|
|
6
|
+
import { Gn4Repository } from './gn4-repository'
|
|
5
7
|
|
|
6
8
|
export function provideGn4(): Provider[] {
|
|
7
9
|
return [
|
|
@@ -9,6 +11,10 @@ export function provideGn4(): Provider[] {
|
|
|
9
11
|
provide: PlatformServiceInterface,
|
|
10
12
|
useClass: Gn4PlatformService,
|
|
11
13
|
},
|
|
14
|
+
{
|
|
15
|
+
provide: RecordsRepositoryInterface,
|
|
16
|
+
useClass: Gn4Repository,
|
|
17
|
+
},
|
|
12
18
|
Gn4PlatformMapper,
|
|
13
19
|
]
|
|
14
20
|
}
|
|
@@ -164,6 +164,7 @@ export interface DatasetServiceDistribution {
|
|
|
164
164
|
name?: string
|
|
165
165
|
description?: string
|
|
166
166
|
translations?: OnlineResourceTranslations
|
|
167
|
+
accessRestricted?: boolean
|
|
167
168
|
}
|
|
168
169
|
|
|
169
170
|
export interface DatasetDownloadDistribution {
|
|
@@ -178,6 +179,7 @@ export interface DatasetDownloadDistribution {
|
|
|
178
179
|
description?: string
|
|
179
180
|
accessServiceProtocol?: ServiceProtocol
|
|
180
181
|
translations?: OnlineResourceTranslations
|
|
182
|
+
accessRestricted?: boolean
|
|
181
183
|
}
|
|
182
184
|
|
|
183
185
|
export interface OnlineLinkResource {
|
|
@@ -186,6 +188,8 @@ export interface OnlineLinkResource {
|
|
|
186
188
|
name?: string
|
|
187
189
|
description?: string
|
|
188
190
|
translations?: OnlineResourceTranslations
|
|
191
|
+
mimeType?: string
|
|
192
|
+
accessRestricted?: boolean
|
|
189
193
|
}
|
|
190
194
|
|
|
191
195
|
export type DatasetOnlineResource = (
|
|
@@ -226,12 +230,18 @@ export interface DatasetRecord extends BaseRecord {
|
|
|
226
230
|
temporalExtents: Array<DatasetTemporalExtent>
|
|
227
231
|
spatialRepresentation?: SpatialRepresentationType
|
|
228
232
|
}
|
|
233
|
+
|
|
229
234
|
export type DatasetFeatureCatalog = {
|
|
230
|
-
|
|
235
|
+
featureTypes: Array<{
|
|
236
|
+
name: string
|
|
237
|
+
definition: string
|
|
238
|
+
attributes: Array<{ name: string; title: string }>
|
|
239
|
+
}>
|
|
231
240
|
}
|
|
241
|
+
|
|
232
242
|
export interface ServiceEndpoint {
|
|
233
|
-
|
|
234
|
-
|
|
243
|
+
url: URL
|
|
244
|
+
accessServiceProtocol: ServiceProtocol
|
|
235
245
|
type: 'endpoint'
|
|
236
246
|
description?: string
|
|
237
247
|
translations?: OnlineResourceTranslations
|
|
@@ -256,6 +266,15 @@ export interface ReuseRecord extends BaseRecord {
|
|
|
256
266
|
temporalExtents: Array<DatasetTemporalExtent>
|
|
257
267
|
}
|
|
258
268
|
|
|
269
|
+
export interface DatasetFeatureType {
|
|
270
|
+
aliases: string
|
|
271
|
+
code: string
|
|
272
|
+
isAbstract: string
|
|
273
|
+
typeName: string
|
|
274
|
+
definition: string
|
|
275
|
+
attributeTable: Array<{ name: string; definition: string }>
|
|
276
|
+
}
|
|
277
|
+
|
|
259
278
|
export type ReuseType = 'application' | 'map' | 'other'
|
|
260
279
|
|
|
261
280
|
export type OnlineResource = DatasetOnlineResource | ServiceOnlineResource
|