geonetwork-ui 2.4.0-dev.fe59f179 → 2.4.1-dev.4e8752d34
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/README.md +1 -7
- package/esm2022/libs/api/metadata-converter/src/index.mjs +4 -1
- package/esm2022/libs/api/metadata-converter/src/lib/common/distribution.mapper.mjs +3 -1
- package/esm2022/libs/api/metadata-converter/src/lib/common/license.mjs +64 -0
- package/esm2022/libs/api/metadata-converter/src/lib/common/resource-types.mjs +38 -0
- package/esm2022/libs/api/metadata-converter/src/lib/common/url.mjs +14 -0
- package/esm2022/libs/api/metadata-converter/src/lib/convert-utils.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.mjs +270 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/index.mjs +2 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.mjs +17 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.mjs +227 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.mjs +57 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.mjs +96 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.mjs +2 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.mjs +47 -0
- package/esm2022/libs/api/metadata-converter/src/lib/find-converter.mjs +11 -1
- package/esm2022/libs/api/metadata-converter/src/lib/function-utils.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/atomic-operations.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.converter.mjs +7 -6
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +40 -20
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/metadata-url.service.mjs +5 -5
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/elasticsearch.model.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.mjs +14 -8
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +39 -12
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +58 -43
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +156 -98
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +143 -29
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.mjs +31 -0
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/role.mapper.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/status.mapper.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/update-frequency.mapper.mjs +6 -62
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +198 -105
- package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +118 -24
- package/esm2022/libs/api/repository/src/lib/gn4/auth/auth.service.mjs +36 -9
- package/esm2022/libs/api/repository/src/lib/gn4/auth/gravatar.service.mjs +5 -5
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/date-range.utils.mjs +12 -0
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +50 -25
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/index.mjs +2 -1
- package/esm2022/libs/api/repository/src/lib/gn4/favorites/favorites.service.mjs +4 -4
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +153 -40
- package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.mjs +4 -4
- package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.mjs +5 -5
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +15 -5
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +82 -10
- package/esm2022/libs/api/repository/src/lib/gn4/selection/selection.service.mjs +4 -4
- package/esm2022/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.mjs +4 -4
- package/esm2022/libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/error/index.mjs +2 -0
- package/esm2022/libs/common/domain/src/lib/model/error/publication-version.error.mjs +8 -0
- package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +46 -19
- package/esm2022/libs/common/domain/src/lib/model/record/index.mjs +2 -1
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +27 -1
- package/esm2022/libs/common/domain/src/lib/model/record/organization.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/record/translation.model.mjs +2 -0
- package/esm2022/libs/common/domain/src/lib/model/search/filter.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/search/sort-by.model.mjs +2 -1
- package/esm2022/libs/common/domain/src/lib/model/user/user.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
- package/esm2022/libs/data-access/gn4/src/fixtures/site.fixtures.mjs +5 -5
- package/esm2022/libs/data-access/gn4/src/fixtures/ui.fixtures.mjs +3 -3
- package/esm2022/libs/data-access/gn4/src/openapi/api/atom.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/customstyle.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/formatters.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/groups.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/harvesters.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/identifiers.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/languages.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/links.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/logos.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/mapservers.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/mapservices.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/me.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/operations.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/pages.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/processes.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +7 -11
- package/esm2022/libs/data-access/gn4/src/openapi/api/regions.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/registries.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/related.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/search.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/selections.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/site.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/sources.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/standards.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/status.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/tags.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/tools.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/ui.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/userfeedback.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/users.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/usersearches.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api/userselections.api.service.mjs +6 -6
- package/esm2022/libs/data-access/gn4/src/openapi/api.module.mjs +7 -7
- package/esm2022/libs/data-access/gn4/src/openapi/configuration.mjs +1 -1
- package/esm2022/libs/feature/auth/src/lib/feature-auth.module.mjs +4 -4
- package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +17 -21
- package/esm2022/libs/feature/catalog/src/lib/my-org/my-org.service.mjs +4 -4
- package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +41 -16
- package/esm2022/libs/feature/catalog/src/lib/records/records.service.mjs +4 -4
- package/esm2022/libs/feature/catalog/src/lib/site-title/site-title.component.mjs +6 -6
- package/esm2022/libs/feature/catalog/src/lib/source-label/source-label.component.mjs +5 -5
- package/esm2022/libs/feature/catalog/src/lib/sources/sources.service.mjs +4 -4
- package/esm2022/libs/feature/dataviz/src/index.mjs +1 -2
- package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +18 -11
- package/esm2022/libs/feature/dataviz/src/lib/figure/figure-container/figure-container.component.mjs +7 -6
- package/esm2022/libs/feature/dataviz/src/lib/figure/figure.service.mjs +4 -4
- package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +38 -51
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +20 -9
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +16 -10
- package/esm2022/libs/feature/editor/src/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +6 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +32 -10
- package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +21 -5
- package/esm2022/libs/feature/editor/src/lib/+state/editor.models.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.reducer.mjs +31 -3
- package/esm2022/libs/feature/editor/src/lib/+state/editor.selectors.mjs +17 -6
- package/esm2022/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.mjs +68 -0
- package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +16 -0
- package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +88 -0
- package/esm2022/libs/feature/editor/src/lib/components/import-record/import-record.component.mjs +113 -0
- package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +85 -0
- package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +73 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.mjs +76 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints-shortcuts/constraints.utils.mjs +35 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints-shortcuts/form-field-constraints-shortcuts.component.mjs +130 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.mjs +109 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +157 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date/form-field-date.component.mjs +19 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.mjs +5 -5
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +32 -41
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +34 -51
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +79 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.mjs +157 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.mjs +196 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.mjs +44 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +110 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +14 -18
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +12 -30
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +117 -6
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-toggle/form-field-spatial-toggle.component.mjs +44 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +53 -70
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +50 -72
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +71 -49
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +16 -10
- package/esm2022/libs/feature/editor/src/lib/components/wizard/wizard.component.mjs +6 -6
- package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +12 -12
- package/esm2022/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.mjs +5 -5
- package/esm2022/libs/feature/editor/src/lib/expressions.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +10 -8
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +279 -57
- package/esm2022/libs/feature/editor/src/lib/models/editor-config.model.mjs +2 -0
- package/esm2022/libs/feature/editor/src/lib/models/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +20 -11
- package/esm2022/libs/feature/editor/src/lib/services/wizard.service.mjs +5 -5
- package/esm2022/libs/feature/map/src/index.mjs +2 -9
- package/esm2022/libs/feature/map/src/lib/+state/map.actions.mjs +4 -7
- package/esm2022/libs/feature/map/src/lib/+state/map.facade.mjs +13 -19
- package/esm2022/libs/feature/map/src/lib/+state/map.reducer.mjs +13 -44
- package/esm2022/libs/feature/map/src/lib/+state/map.selectors.mjs +3 -2
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +9 -9
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +21 -20
- package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +26 -17
- package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +18 -17
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +21 -16
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +19 -14
- package/esm2022/libs/feature/map/src/lib/constant/index.mjs +1 -2
- package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +12 -75
- package/esm2022/libs/feature/map/src/lib/geocoding/geocoding.component.mjs +44 -30
- package/esm2022/libs/feature/map/src/lib/geocoding.service.mjs +6 -6
- package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +65 -22
- package/esm2022/libs/feature/map/src/lib/map-state-container/map-state-container.component.mjs +27 -0
- package/esm2022/libs/feature/map/src/lib/style/map-style.fixtures.mjs +3 -3
- package/esm2022/libs/feature/map/src/lib/style/map-style.service.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +14 -173
- package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +4 -4
- package/esm2022/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.mjs +4 -4
- package/esm2022/libs/feature/notifications/src/lib/notifications.service.mjs +6 -5
- package/esm2022/libs/feature/record/src/index.mjs +4 -1
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +17 -10
- package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +51 -30
- package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +27 -11
- package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +59 -23
- package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +28 -22
- package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +24 -51
- package/esm2022/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.mjs +169 -0
- package/esm2022/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.mjs +45 -0
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +81 -57
- package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +45 -0
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +5 -5
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +17 -7
- package/esm2022/libs/feature/router/src/lib/default/constants.mjs +1 -1
- package/esm2022/libs/feature/router/src/lib/default/container/search-router.container.directive.mjs +6 -6
- package/esm2022/libs/feature/router/src/lib/default/router.module.mjs +5 -5
- package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +5 -5
- package/esm2022/libs/feature/router/src/lib/default/services/router-search.service.mjs +4 -4
- package/esm2022/libs/feature/router/src/lib/default/state/query-params.utils.mjs +50 -0
- package/esm2022/libs/feature/router/src/lib/default/state/router.effects.mjs +8 -8
- package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -8
- package/esm2022/libs/feature/search/src/index.mjs +3 -1
- package/esm2022/libs/feature/search/src/lib/constants.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/facets/facets-container/facets-container.component.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/facets/facets.module.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/facets/facets.service.mjs +5 -5
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +7 -7
- package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +22 -19
- package/esm2022/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.mjs +30 -8
- package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +6 -6
- package/esm2022/libs/feature/search/src/lib/records-metrics/records-metrics.component.mjs +5 -5
- package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/results-layout/results-layout.component.mjs +5 -5
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +15 -10
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +55 -10
- package/esm2022/libs/feature/search/src/lib/search-filters-summary/search-filters-summary.component.mjs +67 -0
- package/esm2022/libs/feature/search/src/lib/search-filters-summary-item/search-filters-summary-item.component.mjs +84 -0
- package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +9 -5
- package/esm2022/libs/feature/search/src/lib/state/actions.mjs +1 -1
- package/esm2022/libs/feature/search/src/lib/state/container/search-state.container.directive.mjs +6 -6
- package/esm2022/libs/feature/search/src/lib/state/effects.mjs +6 -6
- package/esm2022/libs/feature/search/src/lib/state/reducer.mjs +1 -1
- package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +12 -10
- package/esm2022/libs/feature/search/src/lib/state/selectors.mjs +1 -9
- package/esm2022/libs/feature/search/src/lib/utils/operators/search.operator.mjs +1 -1
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +63 -8
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +19 -8
- package/esm2022/libs/feature/search/src/lib/utils/service/search.service.mjs +4 -4
- package/esm2022/libs/ui/catalog/src/index.mjs +1 -2
- package/esm2022/libs/ui/catalog/src/lib/catalog-title/catalog-title.component.mjs +6 -5
- package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +15 -19
- package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +17 -7
- package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +9 -9
- package/esm2022/libs/ui/catalog/src/lib/organisations-result/organisations-result.component.mjs +6 -5
- package/esm2022/libs/ui/dataviz/src/lib/chart/chart.component.mjs +6 -6
- package/esm2022/libs/ui/dataviz/src/lib/figure/figure.component.mjs +7 -7
- package/esm2022/libs/ui/dataviz/src/lib/table/table.component.mjs +6 -6
- package/esm2022/libs/ui/dataviz/src/lib/table/table.fixtures.mjs +3 -3
- package/esm2022/libs/ui/dataviz/src/lib/ui-dataviz.module.mjs +33 -7
- package/esm2022/libs/ui/elements/src/index.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +28 -9
- package/esm2022/libs/ui/elements/src/lib/avatar/avatar.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.mjs +27 -0
- package/esm2022/libs/ui/elements/src/lib/content-ghost/content-ghost.component.mjs +6 -5
- package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +20 -9
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +40 -12
- package/esm2022/libs/ui/elements/src/lib/error/error.component.mjs +25 -7
- package/esm2022/libs/ui/elements/src/lib/image-input/image-input.component.mjs +213 -0
- package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +17 -9
- package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +18 -8
- package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +8 -9
- package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +7 -5
- package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +7 -6
- package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +28 -8
- package/esm2022/libs/ui/elements/src/lib/metadata-info/linkify.directive.mjs +7 -6
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +43 -15
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +16 -15
- package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +10 -8
- package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +38 -7
- package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +40 -35
- package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +20 -11
- package/esm2022/libs/ui/elements/src/lib/thumbnail/thumbnail.component.mjs +6 -6
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +40 -106
- package/esm2022/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.mjs +6 -6
- package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +29 -11
- package/esm2022/libs/ui/elements/src/lib/user-preview/user-preview.component.mjs +5 -5
- package/esm2022/libs/ui/inputs/src/index.mjs +6 -2
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +53 -18
- package/esm2022/libs/ui/inputs/src/lib/badge/badge.component.mjs +21 -5
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +11 -4
- package/esm2022/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.mjs +7 -7
- package/esm2022/libs/ui/inputs/src/lib/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/chips-input/chips-input.component.mjs +5 -5
- package/esm2022/libs/ui/inputs/src/lib/copy-text-button/copy-text-button.component.mjs +10 -7
- package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +23 -6
- package/esm2022/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.mjs +65 -0
- package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +24 -8
- package/esm2022/libs/ui/inputs/src/lib/drag-and-drop-file-input/drag-and-drop-file-input.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +8 -8
- package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +25 -9
- package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +28 -26
- package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +108 -0
- package/esm2022/libs/ui/inputs/src/lib/files-drop/files-drop.directive.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +7 -7
- package/esm2022/libs/ui/inputs/src/lib/search-input/search-input.component.mjs +19 -7
- package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +8 -6
- package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +37 -0
- package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +9 -23
- package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +8 -19
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +49 -59
- package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +88 -0
- package/esm2022/libs/ui/inputs/src/lib/viewport-intersector/viewport-intersector.component.mjs +5 -5
- package/esm2022/libs/ui/layout/src/index.mjs +8 -1
- package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +5 -5
- package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +20 -15
- package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +27 -22
- package/esm2022/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.mjs +9 -7
- package/esm2022/libs/ui/layout/src/lib/expandable-panel-button/expandable-panel-button.component.mjs +8 -6
- package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +9 -6
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.mjs +6 -4
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +12 -8
- package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +6 -6
- package/esm2022/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.mjs +29 -0
- package/esm2022/libs/ui/layout/src/lib/paginable.interface.mjs +2 -0
- package/esm2022/libs/ui/layout/src/lib/pagination/pagination.component.mjs +52 -0
- package/esm2022/libs/ui/layout/src/lib/pagination-buttons/pagination-buttons.component.mjs +52 -0
- package/esm2022/libs/ui/layout/src/lib/pagination-dots/pagination-dots.component.mjs +36 -0
- package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +26 -0
- package/esm2022/libs/ui/layout/src/lib/sortable-list/sortable-list.component.mjs +35 -0
- package/esm2022/libs/ui/layout/src/lib/sticky-header/sticky-header.component.mjs +6 -6
- package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +17 -26
- package/esm2022/libs/ui/map/src/index.mjs +5 -3
- package/esm2022/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.mjs +10 -8
- package/esm2022/libs/ui/map/src/lib/components/map-container/map-container.component.mjs +147 -0
- package/esm2022/libs/ui/map/src/lib/components/map-container/map-settings.token.mjs +13 -0
- package/esm2022/libs/ui/map/src/lib/components/map-legend/map-legend.component.mjs +32 -0
- package/esm2022/libs/ui/map/src/lib/map-utils.mjs +37 -0
- package/esm2022/libs/ui/search/src/lib/facets/facet-block/facet-block.component.mjs +7 -7
- package/esm2022/libs/ui/search/src/lib/facets/facet-item/facet-item.component.mjs +6 -6
- package/esm2022/libs/ui/search/src/lib/facets/facet-list/facet-list.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/facets/facets.module.mjs +4 -4
- package/esm2022/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.mjs +7 -7
- package/esm2022/libs/ui/search/src/lib/record-metric/record-metric.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/record-preview/record-preview.component.mjs +5 -5
- package/esm2022/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.mjs +8 -7
- package/esm2022/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +10 -9
- package/esm2022/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.mjs +3 -3
- 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-list/results-layout.config.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/results-list/results-list.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/results-list-item/results-list-item.component.mjs +5 -5
- package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +59 -0
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +102 -40
- package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +34 -12
- package/esm2022/libs/ui/widgets/src/index.mjs +2 -1
- package/esm2022/libs/ui/widgets/src/lib/color-scale/color-scale.component.mjs +3 -3
- package/esm2022/libs/ui/widgets/src/lib/loading-mask/loading-mask.component.mjs +7 -6
- package/esm2022/libs/ui/widgets/src/lib/popover/popover.component.mjs +68 -0
- package/esm2022/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.mjs +8 -8
- package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +5 -5
- package/esm2022/libs/ui/widgets/src/lib/spinning-loader/spinning-loader.component.mjs +5 -5
- package/esm2022/libs/ui/widgets/src/lib/step-bar/step-bar.component.mjs +5 -5
- package/esm2022/libs/ui/widgets/src/lib/ui-widgets.module.mjs +9 -34
- package/esm2022/libs/util/app-config/src/index.mjs +2 -1
- package/esm2022/libs/util/app-config/src/lib/app-config.mjs +9 -2
- package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +11 -10
- package/esm2022/libs/util/app-config/src/lib/map-layers.mjs +33 -0
- package/esm2022/libs/util/app-config/src/lib/model.mjs +1 -1
- package/esm2022/libs/util/app-config/src/lib/parse-utils.mjs +1 -1
- package/esm2022/libs/util/data-fetcher/src/lib/data-fetcher.mjs +1 -1
- package/esm2022/libs/util/data-fetcher/src/lib/headers.mjs +1 -1
- package/esm2022/libs/util/data-fetcher/src/lib/model.mjs +3 -3
- package/esm2022/libs/util/data-fetcher/src/lib/readers/base-file.mjs +1 -1
- package/esm2022/libs/util/data-fetcher/src/lib/readers/csv.mjs +1 -1
- package/esm2022/libs/util/data-fetcher/src/lib/readers/excel.mjs +1 -1
- package/esm2022/libs/util/data-fetcher/src/lib/readers/geojson.mjs +1 -1
- package/esm2022/libs/util/data-fetcher/src/lib/readers/gml.mjs +1 -1
- package/esm2022/libs/util/data-fetcher/src/lib/readers/json.mjs +1 -1
- package/esm2022/libs/util/data-fetcher/src/lib/sql-utils.mjs +1 -1
- package/esm2022/libs/util/data-fetcher/src/lib/utils.mjs +13 -11
- package/esm2022/libs/util/i18n/src/index.mjs +2 -1
- package/esm2022/libs/util/i18n/src/lib/i18n.constants.mjs +1 -38
- package/esm2022/libs/util/i18n/src/lib/i18n.interceptor.mjs +4 -4
- package/esm2022/libs/util/i18n/src/lib/lang.service.mjs +6 -6
- package/esm2022/libs/util/i18n/src/lib/language-codes.mjs +40 -0
- package/esm2022/libs/util/i18n/src/lib/util-i18n.module.mjs +6 -6
- package/esm2022/libs/util/shared/src/lib/image-fallback.directive.mjs +5 -5
- package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +6 -4
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +17 -17
- package/esm2022/libs/util/shared/src/lib/services/log.service.mjs +3 -3
- package/esm2022/libs/util/shared/src/lib/services/proxy.service.mjs +12 -9
- package/esm2022/libs/util/shared/src/lib/services/theme.service.mjs +5 -4
- package/esm2022/libs/util/shared/src/lib/util-shared.module.mjs +4 -4
- package/esm2022/libs/util/shared/src/lib/utils/bytes-convert.mjs +4 -1
- package/esm2022/libs/util/shared/src/lib/utils/format-fields.mjs +9 -0
- package/esm2022/libs/util/shared/src/lib/utils/geojson.mjs +1 -1
- package/esm2022/libs/util/shared/src/lib/utils/image-resize.mjs +1 -1
- package/esm2022/libs/util/shared/src/lib/utils/index.mjs +3 -1
- package/esm2022/libs/util/shared/src/lib/utils/no-duplicate-file-name.mjs +19 -0
- package/esm2022/libs/util/shared/src/lib/utils/parse.mjs +1 -1
- package/esm2022/libs/util/shared/src/lib/utils/temporal-extent-union.mjs +1 -1
- package/esm2022/libs/util/shared/src/lib/utils/url.mjs +1 -1
- package/esm2022/translations/de.json +196 -47
- package/esm2022/translations/en.json +241 -76
- package/esm2022/translations/es.json +174 -25
- package/esm2022/translations/fr.json +268 -103
- package/esm2022/translations/it.json +179 -30
- package/esm2022/translations/nl.json +174 -25
- package/esm2022/translations/pt.json +174 -25
- package/fesm2022/geonetwork-ui.mjs +13429 -8134
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/index.d.ts +3 -0
- package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/common/distribution.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/common/license.d.ts +3 -0
- package/libs/api/metadata-converter/src/lib/common/license.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +5 -0
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/common/url.d.ts +7 -0
- package/libs/api/metadata-converter/src/lib/common/url.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.d.ts +13 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/index.d.ts +2 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/index.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.d.ts +16 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.d.ts +21 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.d.ts +15 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.d.ts +8 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.d.ts +2 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.d.ts +6 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/find-converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/function-utils.d.ts +1 -1
- package/libs/api/metadata-converter/src/lib/function-utils.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts +4 -4
- package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts +3 -3
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/elasticsearch.model.d.ts +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/elasticsearch.model.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts +2 -6
- package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +12 -10
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +7 -4
- package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts +6 -4
- package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts +4 -2
- 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 +25 -9
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts +5 -0
- package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/iso19139/utils/update-frequency.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +26 -18
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +106 -4
- package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/auth/auth.service.d.ts +14 -2
- package/libs/api/repository/src/lib/gn4/auth/auth.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/date-range.utils.d.ts +4 -0
- package/libs/api/repository/src/lib/gn4/elasticsearch/date-range.utils.d.ts.map +1 -0
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +5 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/index.d.ts +1 -0
- package/libs/api/repository/src/lib/gn4/elasticsearch/index.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +31 -13
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +13 -5
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.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/error/index.d.ts +2 -0
- package/libs/common/domain/src/lib/model/error/index.d.ts.map +1 -0
- package/libs/common/domain/src/lib/model/error/publication-version.error.d.ts +5 -0
- package/libs/common/domain/src/lib/model/error/publication-version.error.d.ts.map +1 -0
- package/libs/common/domain/src/lib/model/record/contact.model.d.ts +3 -2
- package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/index.d.ts +1 -0
- package/libs/common/domain/src/lib/model/record/index.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +38 -15
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/organization.model.d.ts +2 -0
- package/libs/common/domain/src/lib/model/record/organization.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/translation.model.d.ts +26 -0
- package/libs/common/domain/src/lib/model/record/translation.model.d.ts.map +1 -0
- package/libs/common/domain/src/lib/model/search/filter.model.d.ts +16 -1
- package/libs/common/domain/src/lib/model/search/filter.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/search/sort-by.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/user/user.model.d.ts +1 -1
- package/libs/common/domain/src/lib/model/user/user.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/platform.service.interface.d.ts +17 -1
- package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +29 -0
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
- package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts +2 -2
- package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts.map +1 -1
- package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts +1 -1
- package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/groupPrivilege.api.model.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/jsonNode.api.model.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/link.api.model.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/metadataResource.api.model.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/metadataResourceExternalManagementProperties.api.model.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/metadataStatusParameter.api.model.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/operation.api.model.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/pageProperties.api.model.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/publicationOption.api.model.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/setting.api.model.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/status.api.model.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/statusValue.api.model.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/user.api.model.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/userGroup.api.model.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/userGroupId.api.model.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/userSecurity.api.model.d.ts.map +1 -1
- package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts +8 -8
- package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts.map +1 -1
- package/libs/feature/catalog/src/lib/organisations/organisations.component.d.ts +10 -3
- package/libs/feature/catalog/src/lib/organisations/organisations.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/index.d.ts +0 -1
- package/libs/feature/dataviz/src/index.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +3 -3
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/figure/figure-container/figure-container.component.d.ts +1 -1
- package/libs/feature/dataviz/src/lib/figure/figure-container/figure-container.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.d.ts +14 -21
- package/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +9 -7
- 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 +4 -4
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
- package/libs/feature/editor/src/index.d.ts +1 -0
- package/libs/feature/editor/src/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +37 -7
- package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +21 -8
- package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +15 -7
- package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.models.d.ts +9 -1
- package/libs/feature/editor/src/lib/+state/editor.models.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts +8 -3
- package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts +12 -9
- package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.d.ts +16 -0
- package/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts +8 -0
- package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts +33 -0
- package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts +34 -0
- package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts +15 -0
- package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +17 -0
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.d.ts +18 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints-shortcuts/constraints.utils.d.ts +6 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints-shortcuts/constraints.utils.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints-shortcuts/form-field-constraints-shortcuts.component.d.ts +32 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints-shortcuts/form-field-constraints-shortcuts.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.d.ts +38 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +41 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date/form-field-date.component.d.ts +9 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date/form-field-date.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts +11 -19
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +15 -34
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +15 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts +38 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.d.ts +47 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts +14 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +34 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +4 -6
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts +5 -10
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.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 +24 -0
- 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/editor/src/lib/components/record-form/form-field/form-field-spatial-toggle/form-field-spatial-toggle.component.d.ts +14 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-toggle/form-field-spatial-toggle.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +10 -16
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +6 -6
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +20 -20
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +1 -2
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +7 -7
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/expressions.d.ts +1 -1
- package/libs/feature/editor/src/lib/expressions.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/feature-editor.module.d.ts +2 -1
- package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/fields.config.d.ts +64 -2
- package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/models/editor-config.model.d.ts +45 -0
- package/libs/feature/editor/src/lib/models/editor-config.model.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/models/index.d.ts +1 -0
- package/libs/feature/editor/src/lib/models/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/services/editor.service.d.ts +8 -3
- package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
- package/libs/feature/map/src/index.d.ts +1 -8
- package/libs/feature/map/src/index.d.ts.map +1 -1
- package/libs/feature/map/src/lib/+state/map.actions.d.ts +13 -39
- package/libs/feature/map/src/lib/+state/map.actions.d.ts.map +1 -1
- package/libs/feature/map/src/lib/+state/map.facade.d.ts +9 -10
- package/libs/feature/map/src/lib/+state/map.facade.d.ts.map +1 -1
- package/libs/feature/map/src/lib/+state/map.reducer.d.ts +4 -2
- package/libs/feature/map/src/lib/+state/map.reducer.d.ts.map +1 -1
- package/libs/feature/map/src/lib/+state/map.selectors.d.ts +6 -1
- package/libs/feature/map/src/lib/+state/map.selectors.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts +1 -1
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +8 -10
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts +1 -1
- package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +3 -3
- package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +2 -2
- package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +2 -2
- package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/constant/index.d.ts +0 -1
- package/libs/feature/map/src/lib/constant/index.d.ts.map +1 -1
- package/libs/feature/map/src/lib/feature-map.module.d.ts +11 -23
- package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
- package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts +7 -7
- package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +5 -4
- package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/map-state-container/map-state-container.component.d.ts +14 -0
- package/libs/feature/map/src/lib/map-state-container/map-state-container.component.d.ts.map +1 -0
- package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts +2 -2
- package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts.map +1 -1
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts +0 -30
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
- package/libs/feature/notifications/src/lib/notifications.service.d.ts +1 -1
- package/libs/feature/notifications/src/lib/notifications.service.d.ts.map +1 -1
- package/libs/feature/record/src/index.d.ts +3 -0
- package/libs/feature/record/src/index.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +4 -4
- 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 +4 -1
- 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-share/data-view-share.component.d.ts +4 -1
- package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +4 -1
- 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 +10 -7
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/feature-record.module.d.ts +15 -23
- package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
- package/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.d.ts +74 -0
- package/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.d.ts.map +1 -0
- package/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.d.ts +19 -0
- package/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.d.ts.map +1 -0
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +21 -21
- 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 +14 -0
- package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts.map +1 -0
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts +13 -13
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts +9 -9
- 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 +3 -2
- package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/state/query-params.utils.d.ts +4 -0
- package/libs/feature/router/src/lib/default/state/query-params.utils.d.ts.map +1 -0
- package/libs/feature/router/src/lib/default/state/router.actions.d.ts +3 -3
- package/libs/feature/router/src/lib/default/state/router.actions.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/state/router.effects.d.ts +5 -5
- package/libs/feature/router/src/lib/default/state/router.effects.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/state/router.facade.d.ts +1 -1
- package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/state/router.selectors.d.ts +1 -1
- package/libs/feature/router/src/lib/default/state/router.selectors.d.ts.map +1 -1
- package/libs/feature/search/src/index.d.ts +2 -0
- 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 +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 +17 -15
- package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
- package/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.d.ts +7 -1
- package/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +1 -0
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +18 -6
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/search-filters-summary/search-filters-summary.component.d.ts +22 -0
- package/libs/feature/search/src/lib/search-filters-summary/search-filters-summary.component.d.ts.map +1 -0
- package/libs/feature/search/src/lib/search-filters-summary-item/search-filters-summary-item.component.d.ts +34 -0
- package/libs/feature/search/src/lib/search-filters-summary-item/search-filters-summary-item.component.d.ts.map +1 -0
- package/libs/feature/search/src/lib/sort-by/sort-by.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/state/actions.d.ts.map +1 -1
- package/libs/feature/search/src/lib/state/search.facade.d.ts +1 -2
- package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
- package/libs/feature/search/src/lib/state/selectors.d.ts +0 -2
- package/libs/feature/search/src/lib/state/selectors.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/operators/search.operator.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.d.ts +24 -6
- 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 +4 -2
- package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
- package/libs/ui/catalog/src/index.d.ts +0 -1
- package/libs/ui/catalog/src/index.d.ts.map +1 -1
- package/libs/ui/catalog/src/lib/catalog-title/catalog-title.component.d.ts +1 -1
- package/libs/ui/catalog/src/lib/catalog-title/catalog-title.component.d.ts.map +1 -1
- package/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.d.ts +10 -8
- package/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.d.ts.map +1 -1
- package/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.d.ts +1 -1
- package/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.d.ts.map +1 -1
- package/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.d.ts +1 -1
- package/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.d.ts.map +1 -1
- package/libs/ui/catalog/src/lib/organisations-result/organisations-result.component.d.ts +1 -1
- package/libs/ui/catalog/src/lib/organisations-result/organisations-result.component.d.ts.map +1 -1
- package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts +2 -2
- package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts.map +1 -1
- package/libs/ui/dataviz/src/lib/ui-dataviz.module.d.ts +3 -3
- package/libs/ui/dataviz/src/lib/ui-dataviz.module.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +3 -3
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts +18 -0
- package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/content-ghost/content-ghost.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/content-ghost/content-ghost.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +4 -4
- 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 +10 -9
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/error/error.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/error/error.component.d.ts.map +1 -1
- package/libs/ui/{inputs → elements}/src/lib/image-input/image-input.component.d.ts +6 -6
- package/libs/ui/elements/src/lib/image-input/image-input.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.d.ts +2 -1
- package/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-info/linkify.directive.d.ts +2 -2
- package/libs/ui/elements/src/lib/metadata-info/linkify.directive.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +1 -4
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/notification/notification.component.d.ts +1 -0
- package/libs/ui/elements/src/lib/notification/notification.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +6 -17
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +20 -34
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/index.d.ts +5 -1
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +9 -1
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/badge/badge.component.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/check-toggle/check-toggle.component.d.ts +2 -2
- package/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/chips-input/chips-input.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/copy-text-button/copy-text-button.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/copy-text-button/copy-text-button.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.d.ts +20 -0
- package/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts +5 -3
- package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts +25 -0
- package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/search-input/search-input.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/search-input/search-input.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts +18 -0
- package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +0 -4
- package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +2 -4
- package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +29 -35
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +23 -0
- package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -0
- package/libs/ui/layout/src/index.d.ts +7 -0
- package/libs/ui/layout/src/index.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +7 -5
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts +9 -7
- package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts +1 -1
- package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/expandable-panel-button/expandable-panel-button.component.d.ts +1 -1
- package/libs/ui/layout/src/lib/expandable-panel-button/expandable-panel-button.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts +2 -2
- package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.d.ts +3 -2
- package/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts +20 -0
- package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/paginable.interface.d.ts +15 -0
- package/libs/ui/layout/src/lib/paginable.interface.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/pagination/pagination.component.d.ts +11 -0
- package/libs/ui/layout/src/lib/pagination/pagination.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/pagination-buttons/pagination-buttons.component.d.ts +9 -0
- package/libs/ui/layout/src/lib/pagination-buttons/pagination-buttons.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/pagination-dots/pagination-dots.component.d.ts +10 -0
- package/libs/ui/layout/src/lib/pagination-dots/pagination-dots.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts +8 -0
- package/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts +14 -0
- package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/ui-layout.module.d.ts +6 -8
- package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
- package/libs/ui/map/src/index.d.ts +4 -2
- package/libs/ui/map/src/index.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts +3 -4
- package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts +37 -0
- package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts.map +1 -0
- package/libs/ui/map/src/lib/components/map-container/map-settings.token.d.ts +18 -0
- package/libs/ui/map/src/lib/components/map-container/map-settings.token.d.ts.map +1 -0
- package/libs/ui/map/src/lib/components/map-legend/map-legend.component.d.ts +12 -0
- package/libs/ui/map/src/lib/components/map-legend/map-legend.component.d.ts.map +1 -0
- package/libs/ui/map/src/lib/map-utils.d.ts +7 -0
- package/libs/ui/map/src/lib/map-utils.d.ts.map +1 -0
- package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts +3 -3
- package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-list/results-layout.config.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +24 -0
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -0
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +22 -9
- 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 +6 -5
- package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
- package/libs/ui/widgets/src/index.d.ts +1 -0
- package/libs/ui/widgets/src/index.d.ts.map +1 -1
- package/libs/ui/widgets/src/lib/loading-mask/loading-mask.component.d.ts +1 -1
- package/libs/ui/widgets/src/lib/loading-mask/loading-mask.component.d.ts.map +1 -1
- package/libs/ui/widgets/src/lib/popover/popover.component.d.ts +19 -0
- package/libs/ui/widgets/src/lib/popover/popover.component.d.ts.map +1 -0
- package/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.d.ts.map +1 -1
- package/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.d.ts +1 -1
- package/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.d.ts.map +1 -1
- package/libs/ui/widgets/src/lib/spinning-loader/spinning-loader.component.d.ts +1 -1
- package/libs/ui/widgets/src/lib/spinning-loader/spinning-loader.component.d.ts.map +1 -1
- package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts +9 -13
- package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts.map +1 -1
- package/libs/util/app-config/src/index.d.ts +1 -0
- package/libs/util/app-config/src/index.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 +8 -8
- package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/map-layers.d.ts +4 -0
- package/libs/util/app-config/src/lib/map-layers.d.ts.map +1 -0
- package/libs/util/app-config/src/lib/model.d.ts +6 -1
- package/libs/util/app-config/src/lib/model.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/model.d.ts +2 -2
- package/libs/util/data-fetcher/src/lib/model.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/readers/csv.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/readers/excel.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/readers/geojson.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/readers/gml.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/readers/json.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/utils.d.ts +1 -1
- package/libs/util/data-fetcher/src/lib/utils.d.ts.map +1 -1
- package/libs/util/i18n/src/index.d.ts +1 -0
- package/libs/util/i18n/src/index.d.ts.map +1 -1
- package/libs/util/i18n/src/lib/i18n.constants.d.ts +0 -35
- package/libs/util/i18n/src/lib/i18n.constants.d.ts.map +1 -1
- package/libs/util/i18n/src/lib/language-codes.d.ts +38 -0
- package/libs/util/i18n/src/lib/language-codes.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 +22 -22
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/libs/util/shared/src/lib/services/proxy.service.d.ts +4 -2
- package/libs/util/shared/src/lib/services/proxy.service.d.ts.map +1 -1
- package/libs/util/shared/src/lib/services/theme.service.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/bytes-convert.d.ts +2 -1
- package/libs/util/shared/src/lib/utils/bytes-convert.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/format-fields.d.ts +2 -0
- package/libs/util/shared/src/lib/utils/format-fields.d.ts.map +1 -0
- package/libs/util/shared/src/lib/utils/index.d.ts +2 -0
- package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/no-duplicate-file-name.d.ts +2 -0
- package/libs/util/shared/src/lib/utils/no-duplicate-file-name.d.ts.map +1 -0
- package/libs/util/shared/src/lib/utils/temporal-extent-union.d.ts +4 -1
- package/libs/util/shared/src/lib/utils/temporal-extent-union.d.ts.map +1 -1
- package/package.json +50 -41
- package/src/libs/api/metadata-converter/src/index.ts +3 -0
- package/src/libs/api/metadata-converter/src/lib/common/distribution.mapper.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/common/license.ts +66 -0
- package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +50 -0
- package/src/libs/api/metadata-converter/src/lib/common/url.ts +15 -0
- package/src/libs/api/metadata-converter/src/lib/convert-utils.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.ts +504 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/index.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.ts +17 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.ts +463 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.ts +110 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/individual-name.ts +20 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/keyword.mapper.ts +16 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/role.mapper.ts +48 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.ts +127 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/status.mapper.ts +19 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.ts +101 -0
- package/src/libs/api/metadata-converter/src/lib/find-converter.ts +13 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/eu.dcat-ap.records.ts +743 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +43 -5
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.reuse+ongules.ts +246 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.reuse+roilaye.ts +101 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +187 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +26 -5
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +374 -18
- package/src/libs/api/metadata-converter/src/lib/fixtures/georhena.records.ts +216 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +90 -4
- package/src/libs/api/metadata-converter/src/lib/fixtures/opendataswiss.records.ts +437 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/sextant.records.ts +487 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/vlaanderen.dcat-ap.records.ts +76 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.reuse.ts +451 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +289 -0
- package/src/libs/api/metadata-converter/src/lib/function-utils.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.converter.ts +2 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +47 -39
- package/src/libs/api/metadata-converter/src/lib/gn4/types/elasticsearch.model.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.ts +2 -6
- package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +12 -10
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +20 -9
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +75 -18
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +118 -65
- package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +174 -95
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +354 -56
- package/src/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.ts +39 -0
- package/src/libs/api/metadata-converter/src/lib/iso19139/utils/update-frequency.mapper.ts +9 -62
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +632 -312
- package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +145 -29
- package/src/libs/api/repository/src/lib/gn4/auth/auth.service.ts +35 -6
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/date-range.utils.ts +13 -0
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +58 -23
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/index.ts +1 -0
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +268 -105
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +13 -2
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +173 -16
- package/src/libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model.ts +1 -1
- package/src/libs/common/domain/src/lib/model/error/index.ts +1 -0
- package/src/libs/common/domain/src/lib/model/error/publication-version.error.ts +9 -0
- package/src/libs/common/domain/src/lib/model/record/contact.model.ts +30 -2
- package/src/libs/common/domain/src/lib/model/record/index.ts +1 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +83 -22
- package/src/libs/common/domain/src/lib/model/record/organization.model.ts +4 -0
- package/src/libs/common/domain/src/lib/model/record/translation.model.ts +49 -0
- package/src/libs/common/domain/src/lib/model/search/filter.model.ts +17 -1
- package/src/libs/common/domain/src/lib/model/search/sort-by.model.ts +1 -0
- package/src/libs/common/domain/src/lib/model/user/user.model.ts +1 -1
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +32 -1
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +36 -0
- package/src/libs/common/fixtures/src/index.ts +6 -1
- package/src/libs/common/fixtures/src/lib/editor/editor.fixtures.ts +163 -0
- package/src/libs/common/fixtures/src/lib/editor/index.ts +1 -0
- package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-request.ts → aggregations-request.fixtures.ts} +1 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-response.ts → aggregations-response.fixtures.ts} +6 -8
- package/src/libs/common/fixtures/src/lib/elasticsearch/{full-response.ts → full-response.fixtures.ts} +1674 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/index.ts +5 -5
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +1 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata.fixtures.ts +1739 -1742
- package/src/libs/common/fixtures/src/lib/elasticsearch/{search-requests.ts → search-requests.fixtures.ts} +1 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/search-responses.fixtures.ts +13374 -0
- package/src/libs/common/fixtures/src/lib/geojson.fixtures.ts +57178 -57195
- package/src/libs/common/fixtures/src/lib/gn4/groups.fixtures.ts +2 -4
- package/src/libs/common/fixtures/src/lib/individual.fixtures.ts +61 -0
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +242 -164
- package/src/libs/common/fixtures/src/lib/map/index.ts +1 -0
- package/src/libs/common/fixtures/src/lib/map/map-context.fixtures.ts +53 -0
- package/src/libs/common/fixtures/src/lib/ol-feature.fixtures.ts +10 -0
- package/src/libs/common/fixtures/src/lib/organisations.fixture.ts +37 -3
- package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +9 -7
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +125 -23
- package/src/libs/common/fixtures/src/lib/repository.fixtures.ts +4 -4
- package/src/libs/common/fixtures/src/lib/search/aggregations.ts +2 -3
- package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +14 -15
- package/src/libs/common/fixtures/src/lib/user.fixtures.ts +45 -15
- package/src/libs/data-access/gn4/src/fixtures/site.fixtures.ts +4 -4
- package/src/libs/data-access/gn4/src/fixtures/ui.fixtures.ts +2 -2
- package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +1 -5
- package/src/libs/data-access/gn4/src/spec.yaml +0 -8
- package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +8 -9
- package/src/libs/feature/catalog/src/lib/organisations/organisations.component.html +1 -5
- package/src/libs/feature/catalog/src/lib/organisations/organisations.component.ts +41 -5
- package/src/libs/feature/catalog/src/lib/sources/sources.fixture.ts +1 -1
- package/src/libs/feature/dataviz/src/index.ts +0 -1
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.html +1 -1
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +23 -5
- package/src/libs/feature/dataviz/src/lib/figure/figure-container/figure-container.component.ts +3 -1
- package/src/libs/feature/dataviz/src/lib/figure/figure.fixtures.ts +2 -2
- package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.html +5 -2
- package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.ts +43 -78
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +36 -13
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +1 -1
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +19 -6
- package/src/libs/feature/editor/src/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +23 -0
- package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +69 -8
- package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +26 -1
- package/src/libs/feature/editor/src/lib/+state/editor.models.ts +12 -1
- package/src/libs/feature/editor/src/lib/+state/editor.reducer.ts +38 -5
- package/src/libs/feature/editor/src/lib/+state/editor.selectors.ts +27 -8
- package/src/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.css +4 -0
- package/src/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.html +28 -0
- package/src/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.ts +71 -0
- package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +15 -0
- package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +17 -0
- package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.css +3 -0
- package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.html +27 -0
- package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +100 -0
- package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.html +46 -0
- package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.ts +153 -0
- package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.html +35 -0
- package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +92 -0
- package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.html +33 -0
- package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +81 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.css +4 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.html +24 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.ts +85 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints-shortcuts/constraints.utils.ts +42 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints-shortcuts/form-field-constraints-shortcuts.component.css +4 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints-shortcuts/form-field-constraints-shortcuts.component.html +34 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints-shortcuts/form-field-constraints-shortcuts.component.ts +210 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.html +40 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.ts +170 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.css +4 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +66 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +221 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date/form-field-date.component.html +4 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date/form-field-date.component.ts +21 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.html +1 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +7 -16
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +44 -45
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.css +8 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.html +11 -8
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +42 -46
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +1 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts +86 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.html +58 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts +196 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.html +88 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.ts +251 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.html +6 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.ts +51 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +22 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +135 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +16 -9
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +11 -14
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.html +4 -23
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.ts +12 -25
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +15 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +172 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-toggle/form-field-spatial-toggle.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-toggle/form-field-spatial-toggle.component.html +5 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-toggle/form-field-spatial-toggle.component.ts +60 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.css +4 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +32 -4
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +54 -86
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.css +4 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.html +17 -14
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +59 -85
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +162 -68
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +83 -46
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -2
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +57 -9
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +20 -7
- package/src/libs/feature/editor/src/lib/components/wizard/wizard.component.html +2 -6
- package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +1 -1
- package/src/libs/feature/editor/src/lib/expressions.ts +1 -1
- package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -1
- package/src/libs/feature/editor/src/lib/fields.config.ts +327 -57
- package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +73 -0
- package/src/libs/feature/editor/src/lib/models/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/services/editor.service.ts +29 -7
- package/src/libs/feature/map/src/index.ts +1 -8
- package/src/libs/feature/map/src/lib/+state/map.actions.ts +10 -25
- package/src/libs/feature/map/src/lib/+state/map.facade.ts +11 -15
- package/src/libs/feature/map/src/lib/+state/map.reducer.ts +16 -53
- package/src/libs/feature/map/src/lib/+state/map.selectors.ts +7 -2
- package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +3 -0
- package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +23 -22
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +22 -11
- package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +1 -1
- package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +21 -19
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +1 -1
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +17 -10
- package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.html +3 -3
- package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +17 -10
- package/src/libs/feature/map/src/lib/constant/index.ts +0 -1
- package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -43
- package/src/libs/feature/map/src/lib/geocoding/geocoding.component.ts +38 -20
- package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.html +5 -7
- package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +58 -6
- package/src/libs/feature/map/src/lib/map-state-container/map-state-container.component.css +0 -0
- package/src/libs/feature/map/src/lib/map-state-container/map-state-container.component.html +4 -0
- package/src/libs/feature/map/src/lib/map-state-container/map-state-container.component.ts +29 -0
- package/src/libs/feature/map/src/lib/style/map-style.fixtures.ts +29 -27
- package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +8 -232
- package/src/libs/feature/notifications/src/lib/notifications.service.ts +6 -1
- package/src/libs/feature/record/src/index.ts +3 -0
- package/src/libs/feature/record/src/lib/data-view/data-view.component.html +1 -1
- package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +18 -3
- package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +41 -19
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +6 -2
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.ts +27 -1
- package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +64 -12
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html +1 -1
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +37 -21
- package/src/libs/feature/record/src/lib/feature-record.module.ts +10 -29
- package/src/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.css +22 -0
- package/src/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.html +132 -0
- package/src/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.ts +253 -0
- package/src/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.css +0 -0
- package/src/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.html +37 -0
- package/src/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.ts +43 -0
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +54 -16
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +107 -76
- package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +45 -0
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +15 -2
- package/src/libs/feature/router/src/lib/default/constants.ts +6 -1
- package/src/libs/feature/router/src/lib/default/state/query-params.utils.ts +61 -0
- package/src/libs/feature/router/src/lib/default/state/router.effects.ts +2 -2
- package/src/libs/feature/router/src/lib/default/state/router.facade.ts +6 -4
- package/src/libs/feature/search/src/index.ts +2 -0
- package/src/libs/feature/search/src/lib/constants.ts +1 -1
- package/src/libs/feature/search/src/lib/facets/facets.service.ts +4 -4
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +3 -0
- package/src/libs/feature/search/src/lib/feature-search.module.ts +15 -8
- package/src/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.html +20 -10
- package/src/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts +32 -1
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +2 -1
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -6
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +12 -1
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +8 -2
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +74 -5
- package/src/libs/feature/search/src/lib/search-filters-summary/search-filters-summary.component.css +0 -0
- package/src/libs/feature/search/src/lib/search-filters-summary/search-filters-summary.component.html +17 -0
- package/src/libs/feature/search/src/lib/search-filters-summary/search-filters-summary.component.ts +78 -0
- package/src/libs/feature/search/src/lib/search-filters-summary-item/search-filters-summary-item.component.css +0 -0
- package/src/libs/feature/search/src/lib/search-filters-summary-item/search-filters-summary-item.component.html +20 -0
- package/src/libs/feature/search/src/lib/search-filters-summary-item/search-filters-summary-item.component.ts +118 -0
- package/src/libs/feature/search/src/lib/sort-by/sort-by.component.ts +4 -0
- package/src/libs/feature/search/src/lib/state/actions.ts +69 -17
- package/src/libs/feature/search/src/lib/state/effects.ts +1 -1
- package/src/libs/feature/search/src/lib/state/fixtures/search-state.fixtures.ts +2 -2
- package/src/libs/feature/search/src/lib/state/search.facade.ts +6 -8
- package/src/libs/feature/search/src/lib/state/selectors.ts +0 -18
- package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +36 -5
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +91 -12
- package/src/libs/ui/catalog/src/index.ts +0 -1
- package/src/libs/ui/catalog/src/lib/catalog-title/catalog-title.component.ts +3 -0
- package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
- package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.ts +15 -21
- package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html +2 -3
- package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.ts +11 -0
- package/src/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.ts +8 -1
- package/src/libs/ui/catalog/src/lib/organisations-result/organisations-result.component.ts +3 -0
- package/src/libs/ui/dataviz/src/lib/chart/chart.component.ts +1 -1
- package/src/libs/ui/dataviz/src/lib/chart/chart.fixtures.ts +2 -2
- package/src/libs/ui/dataviz/src/lib/figure/figure.component.html +6 -5
- package/src/libs/ui/dataviz/src/lib/table/table.fixtures.ts +2 -2
- package/src/libs/ui/dataviz/src/lib/ui-dataviz.module.ts +17 -2
- package/src/libs/ui/elements/src/index.ts +3 -3
- package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +37 -27
- package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +21 -1
- package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.css +0 -0
- package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.html +12 -0
- package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.ts +37 -0
- package/src/libs/ui/elements/src/lib/content-ghost/content-ghost.component.ts +3 -0
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +7 -5
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +16 -5
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +1 -1
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +57 -11
- package/src/libs/ui/elements/src/lib/error/error.component.css +24 -19
- package/src/libs/ui/elements/src/lib/error/error.component.html +11 -21
- package/src/libs/ui/elements/src/lib/error/error.component.ts +19 -0
- package/src/libs/ui/elements/src/lib/image-input/image-input.component.css +4 -0
- package/src/libs/ui/elements/src/lib/image-input/image-input.component.html +143 -0
- package/src/libs/ui/{inputs → elements}/src/lib/image-input/image-input.component.ts +57 -21
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +3 -6
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts +15 -0
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +2 -6
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +16 -5
- package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +13 -17
- package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +1 -3
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +7 -1
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.html +4 -1
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.ts +1 -0
- package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.ts +4 -1
- package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +20 -22
- package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.ts +24 -0
- package/src/libs/ui/elements/src/lib/metadata-info/linkify.directive.ts +7 -3
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +1 -1
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +59 -34
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +43 -1
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +14 -20
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +18 -11
- package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.html +1 -1
- package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.ts +7 -1
- package/src/libs/ui/elements/src/lib/notification/notification.component.html +10 -14
- package/src/libs/ui/elements/src/lib/notification/notification.component.ts +33 -2
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.css +2 -2
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +2 -2
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +44 -35
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +4 -4
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.ts +15 -0
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +24 -63
- package/src/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.ts +2 -2
- package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.html +2 -6
- package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +22 -0
- package/src/libs/ui/elements/src/lib/user-preview/user-preview.component.html +1 -4
- package/src/libs/ui/inputs/src/index.ts +5 -1
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.css +20 -20
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +39 -25
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +37 -6
- package/src/libs/ui/inputs/src/lib/badge/badge.component.html +11 -3
- package/src/libs/ui/inputs/src/lib/badge/badge.component.ts +15 -1
- package/src/libs/ui/inputs/src/lib/button/button.component.ts +15 -1
- package/src/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.html +4 -1
- package/src/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.ts +3 -3
- package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.ts +4 -1
- package/src/libs/ui/inputs/src/lib/copy-text-button/copy-text-button.component.html +5 -6
- package/src/libs/ui/inputs/src/lib/copy-text-button/copy-text-button.component.ts +7 -0
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.css +7 -2
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +12 -6
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +19 -2
- package/src/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.css +5 -0
- package/src/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.html +30 -0
- package/src/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.ts +63 -0
- package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.css +7 -2
- package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.html +26 -23
- package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +19 -2
- package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +16 -20
- package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +7 -7
- package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +16 -2
- package/src/libs/ui/inputs/src/lib/editable-label/editable-label.directive.ts +44 -27
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.css +4 -0
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +90 -0
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +108 -0
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +1 -3
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.ts +4 -1
- package/src/libs/ui/inputs/src/lib/search-input/search-input.component.html +2 -2
- package/src/libs/ui/inputs/src/lib/search-input/search-input.component.ts +16 -1
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.css +0 -9
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +2 -6
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +6 -0
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.css +32 -0
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +15 -0
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +40 -0
- package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +3 -2
- package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +3 -28
- package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +4 -3
- package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +4 -16
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +37 -36
- package/src/libs/ui/inputs/src/lib/url-input/url-input.component.css +9 -0
- package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +32 -0
- package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +85 -0
- package/src/libs/ui/layout/src/index.ts +7 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +0 -16
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +4 -12
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +20 -11
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -16
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +4 -12
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.ts +22 -19
- package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.html +2 -4
- package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.ts +8 -2
- package/src/libs/ui/layout/src/lib/expandable-panel-button/expandable-panel-button.component.html +2 -6
- package/src/libs/ui/layout/src/lib/expandable-panel-button/expandable-panel-button.component.ts +6 -0
- package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +9 -4
- package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts +5 -4
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.ts +1 -0
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.css +5 -9
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +12 -11
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +13 -3
- package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.html +2 -1
- package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.css +0 -0
- package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.html +15 -0
- package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.ts +44 -0
- package/src/libs/ui/layout/src/lib/paginable.interface.ts +14 -0
- package/src/libs/ui/layout/src/lib/pagination/pagination.component.css +0 -0
- package/src/libs/ui/{elements → layout}/src/lib/pagination/pagination.component.html +12 -13
- package/src/libs/ui/layout/src/lib/pagination/pagination.component.ts +45 -0
- package/src/libs/ui/layout/src/lib/pagination-buttons/pagination-buttons.component.css +0 -0
- package/src/libs/ui/layout/src/lib/pagination-buttons/pagination-buttons.component.html +51 -0
- package/src/libs/ui/layout/src/lib/pagination-buttons/pagination-buttons.component.ts +50 -0
- package/src/libs/ui/layout/src/lib/pagination-dots/pagination-dots.component.css +16 -0
- package/src/libs/ui/layout/src/lib/pagination-dots/pagination-dots.component.html +15 -0
- package/src/libs/ui/layout/src/lib/pagination-dots/pagination-dots.component.ts +31 -0
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +18 -0
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +29 -0
- package/src/libs/ui/{elements → layout}/src/lib/sortable-list/sortable-list.component.css +4 -2
- package/src/libs/ui/layout/src/lib/sortable-list/sortable-list.component.html +37 -0
- package/src/libs/ui/layout/src/lib/sortable-list/sortable-list.component.ts +45 -0
- package/src/libs/ui/layout/src/lib/ui-layout.module.ts +8 -15
- package/src/libs/ui/map/src/index.ts +4 -2
- package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.html +1 -1
- package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.ts +8 -5
- package/src/libs/ui/map/src/lib/components/map-container/map-container.component.css +0 -0
- package/src/libs/ui/map/src/lib/components/{map/map.component.html → map-container/map-container.component.html} +4 -3
- package/src/libs/ui/map/src/lib/components/map-container/map-container.component.ts +214 -0
- package/src/libs/ui/map/src/lib/components/map-container/map-settings.token.ts +23 -0
- package/src/libs/ui/map/src/lib/components/map-legend/map-legend.component.css +5 -0
- package/src/libs/ui/map/src/lib/components/map-legend/map-legend.component.html +1 -0
- package/src/libs/ui/map/src/lib/components/map-legend/map-legend.component.ts +39 -0
- package/src/libs/ui/map/src/lib/map-utils.ts +54 -0
- package/src/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.ts +7 -6
- package/src/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.html +17 -13
- package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.html +16 -10
- package/src/libs/ui/search/src/lib/results-list/results-layout.config.ts +1 -1
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.css +0 -0
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +59 -0
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +61 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +60 -27
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +118 -44
- package/src/libs/ui/search/src/lib/ui-search.module.ts +22 -3
- package/src/libs/ui/widgets/src/index.ts +1 -0
- package/src/libs/ui/widgets/src/lib/loading-mask/loading-mask.component.ts +4 -6
- package/src/libs/ui/widgets/src/lib/popover/popover.component.css +0 -0
- package/src/libs/ui/widgets/src/lib/popover/popover.component.html +3 -0
- package/src/libs/ui/widgets/src/lib/popover/popover.component.ts +85 -0
- package/src/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.html +2 -4
- package/src/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.ts +8 -2
- package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.ts +1 -0
- package/src/libs/ui/widgets/src/lib/spinning-loader/spinning-loader.component.ts +1 -0
- package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.ts +2 -2
- package/src/libs/ui/widgets/src/lib/ui-widgets.module.ts +2 -18
- package/src/libs/util/app-config/src/index.ts +1 -0
- package/src/libs/util/app-config/src/lib/app-config.ts +9 -2
- package/src/libs/util/app-config/src/lib/fixtures.ts +10 -9
- package/src/libs/util/app-config/src/lib/map-layers.ts +37 -0
- package/src/libs/util/app-config/src/lib/model.ts +6 -1
- package/src/libs/util/data-fetcher/src/lib/model.ts +6 -6
- package/src/libs/util/data-fetcher/src/lib/readers/base-file.ts +1 -1
- package/src/libs/util/data-fetcher/src/lib/utils.ts +13 -11
- package/src/libs/util/i18n/src/index.ts +1 -0
- package/src/libs/util/i18n/src/lib/i18n.constants.ts +0 -43
- package/src/libs/util/i18n/src/lib/lang.service.ts +1 -1
- package/src/libs/util/i18n/src/lib/language-codes.ts +44 -0
- package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +6 -3
- package/src/libs/util/shared/src/lib/links/link-utils.ts +23 -23
- package/src/libs/util/shared/src/lib/services/proxy.service.ts +7 -3
- package/src/libs/util/shared/src/lib/services/theme.service.ts +1 -0
- package/src/libs/util/shared/src/lib/utils/bytes-convert.ts +4 -1
- package/src/libs/util/shared/src/lib/utils/format-fields.ts +11 -0
- package/src/libs/util/shared/src/lib/utils/index.ts +2 -0
- package/src/libs/util/shared/src/lib/utils/no-duplicate-file-name.ts +23 -0
- package/src/libs/util/shared/src/lib/utils/temporal-extent-union.ts +6 -1
- package/tailwind.base.config.js +1 -0
- package/tailwind.base.css +69 -13
- package/translations/de.json +196 -47
- package/translations/en.json +241 -76
- package/translations/es.json +174 -25
- package/translations/fr.json +268 -103
- package/translations/it.json +179 -30
- package/translations/nl.json +174 -25
- package/translations/pt.json +174 -25
- package/translations/sk.json +176 -27
- package/esm2022/libs/feature/dataviz/src/lib/feature-dataviz.module.mjs +0 -71
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +0 -15
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.mjs +0 -17
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.mjs +0 -17
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +0 -2
- package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +0 -2
- package/esm2022/libs/feature/map/src/lib/+state/map.effects.mjs +0 -15
- package/esm2022/libs/feature/map/src/lib/+state/map.models.mjs +0 -2
- package/esm2022/libs/feature/map/src/lib/constant/map-options.mjs +0 -8
- package/esm2022/libs/feature/map/src/lib/constant/style.constant.mjs +0 -17
- package/esm2022/libs/feature/map/src/lib/feature-info/feature-info.service.mjs +0 -38
- package/esm2022/libs/feature/map/src/lib/manager/map-instance.directive.mjs +0 -19
- package/esm2022/libs/feature/map/src/lib/manager/map-manager.service.mjs +0 -19
- package/esm2022/libs/feature/map/src/lib/map-container/map-container.component.mjs +0 -27
- package/esm2022/libs/feature/map/src/lib/map-context/component/map-context.component.mjs +0 -46
- package/esm2022/libs/feature/map/src/lib/map-context/map-context.model.mjs +0 -10
- package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +0 -289
- package/esm2022/libs/ui/catalog/src/lib/ui-catalog.module.mjs +0 -62
- package/esm2022/libs/ui/elements/src/lib/pagination/pagination.component.mjs +0 -54
- package/esm2022/libs/ui/elements/src/lib/pagination-buttons/pagination-buttons.component.mjs +0 -66
- package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +0 -43
- package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +0 -183
- package/esm2022/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +0 -29
- package/esm2022/libs/ui/map/src/lib/components/map/map.component.mjs +0 -40
- package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +0 -33
- package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts +0 -21
- package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +0 -8
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.d.ts +0 -8
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.d.ts +0 -8
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts +0 -26
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/models/fields.model.d.ts +0 -15
- package/libs/feature/editor/src/lib/models/fields.model.d.ts.map +0 -1
- package/libs/feature/map/src/lib/+state/map.effects.d.ts +0 -9
- package/libs/feature/map/src/lib/+state/map.effects.d.ts.map +0 -1
- package/libs/feature/map/src/lib/+state/map.models.d.ts +0 -9
- package/libs/feature/map/src/lib/+state/map.models.d.ts.map +0 -1
- package/libs/feature/map/src/lib/constant/map-options.d.ts +0 -9
- package/libs/feature/map/src/lib/constant/map-options.d.ts.map +0 -1
- package/libs/feature/map/src/lib/constant/style.constant.d.ts +0 -4
- package/libs/feature/map/src/lib/constant/style.constant.d.ts.map +0 -1
- package/libs/feature/map/src/lib/feature-info/feature-info.service.d.ts +0 -16
- package/libs/feature/map/src/lib/feature-info/feature-info.service.d.ts.map +0 -1
- package/libs/feature/map/src/lib/manager/map-instance.directive.d.ts +0 -9
- package/libs/feature/map/src/lib/manager/map-instance.directive.d.ts.map +0 -1
- package/libs/feature/map/src/lib/manager/map-manager.service.d.ts +0 -11
- package/libs/feature/map/src/lib/manager/map-manager.service.d.ts.map +0 -1
- package/libs/feature/map/src/lib/map-container/map-container.component.d.ts +0 -12
- package/libs/feature/map/src/lib/map-container/map-container.component.d.ts.map +0 -1
- package/libs/feature/map/src/lib/map-context/component/map-context.component.d.ts +0 -26
- package/libs/feature/map/src/lib/map-context/component/map-context.component.d.ts.map +0 -1
- package/libs/feature/map/src/lib/map-context/map-context.model.d.ts +0 -77
- package/libs/feature/map/src/lib/map-context/map-context.model.d.ts.map +0 -1
- package/libs/feature/map/src/lib/map-context/map-context.service.d.ts +0 -26
- package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +0 -1
- package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts +0 -18
- package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts.map +0 -1
- package/libs/ui/elements/src/lib/pagination/pagination.component.d.ts +0 -16
- package/libs/ui/elements/src/lib/pagination/pagination.component.d.ts.map +0 -1
- package/libs/ui/elements/src/lib/pagination-buttons/pagination-buttons.component.d.ts +0 -17
- package/libs/ui/elements/src/lib/pagination-buttons/pagination-buttons.component.d.ts.map +0 -1
- package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +0 -22
- package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +0 -1
- package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +0 -1
- package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts +0 -12
- package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts.map +0 -1
- package/libs/ui/map/src/lib/components/map/map.component.d.ts +0 -19
- package/libs/ui/map/src/lib/components/map/map.component.d.ts.map +0 -1
- package/libs/ui/map/src/lib/ui-map.module.d.ts +0 -13
- package/libs/ui/map/src/lib/ui-map.module.d.ts.map +0 -1
- package/src/libs/common/fixtures/src/lib/elasticsearch/search-responses.ts +0 -445
- package/src/libs/common/fixtures/src/lib/ol-feature.fixture.ts +0 -7
- package/src/libs/common/fixtures/src/lib/utils/freeze.ts +0 -10
- package/src/libs/common/fixtures/src/lib/utils/index.ts +0 -1
- package/src/libs/feature/dataviz/src/lib/feature-dataviz.module.ts +0 -44
- package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +0 -8
- package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +0 -70
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +0 -4
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +0 -15
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.html +0 -7
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.ts +0 -16
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.html +0 -13
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.ts +0 -16
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.ts +0 -43
- package/src/libs/feature/editor/src/lib/models/fields.model.ts +0 -29
- package/src/libs/feature/map/src/lib/+state/map.effects.ts +0 -7
- package/src/libs/feature/map/src/lib/+state/map.models.ts +0 -9
- package/src/libs/feature/map/src/lib/constant/map-options.ts +0 -17
- package/src/libs/feature/map/src/lib/feature-info/feature-info.service.ts +0 -42
- package/src/libs/feature/map/src/lib/manager/map-instance.directive.ts +0 -10
- package/src/libs/feature/map/src/lib/manager/map-manager.service.ts +0 -13
- package/src/libs/feature/map/src/lib/map-container/map-container.component.html +0 -1
- package/src/libs/feature/map/src/lib/map-container/map-container.component.ts +0 -26
- package/src/libs/feature/map/src/lib/map-context/component/map-context.component.html +0 -1
- package/src/libs/feature/map/src/lib/map-context/component/map-context.component.ts +0 -57
- package/src/libs/feature/map/src/lib/map-context/map-context.fixtures.ts +0 -51
- package/src/libs/feature/map/src/lib/map-context/map-context.model.ts +0 -95
- package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +0 -318
- package/src/libs/ui/catalog/src/lib/ui-catalog.module.ts +0 -38
- package/src/libs/ui/elements/src/lib/pagination/pagination.component.ts +0 -50
- package/src/libs/ui/elements/src/lib/pagination-buttons/pagination-buttons.component.html +0 -33
- package/src/libs/ui/elements/src/lib/pagination-buttons/pagination-buttons.component.ts +0 -68
- package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +0 -36
- package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.ts +0 -56
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +0 -146
- package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.html +0 -26
- package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.ts +0 -32
- package/src/libs/ui/map/src/lib/components/map/map.component.ts +0 -57
- package/src/libs/ui/map/src/lib/ui-map.module.ts +0 -19
- /package/src/libs/feature/editor/src/lib/components/{overview-upload/overview-upload.component.css → contact-card/contact-card.component.css} +0 -0
- /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.css → import-record/import-record.component.css} +0 -0
- /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.css → online-resource-card/online-resource-card.component.css} +0 -0
- /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.css → online-service-resource-input/online-service-resource-input.component.css} +0 -0
- /package/src/libs/feature/{map/src/lib/map-container/map-container.component.css → editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.css} +0 -0
- /package/src/libs/feature/{map/src/lib/map-context/component/map-context.component.css → editor/src/lib/components/record-form/form-field/form-field-date/form-field-date.component.css} +0 -0
- /package/src/libs/{ui/elements/src/lib/pagination-buttons/pagination-buttons.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.css} +0 -0
- /package/src/libs/{ui/elements/src/lib/pagination/pagination.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.css} +0 -0
- /package/src/libs/{ui/inputs/src/lib/image-input/image-input.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.css} +0 -0
- /package/src/libs/{ui/map/src/lib/components/map/map.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.css} +0 -0
- /package/src/libs/ui/{inputs → layout}/src/lib/previous-next-buttons/previous-next-buttons.component.css +0 -0
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CatalogRecord,
|
|
3
3
|
Constraint,
|
|
4
|
-
|
|
4
|
+
DatasetOnlineResource,
|
|
5
5
|
DatasetRecord,
|
|
6
6
|
DatasetServiceDistribution,
|
|
7
|
+
FieldTranslation,
|
|
7
8
|
Individual,
|
|
8
9
|
Keyword,
|
|
10
|
+
LanguageCode,
|
|
9
11
|
RecordStatus,
|
|
12
|
+
RecordTranslations,
|
|
13
|
+
ReuseRecord,
|
|
10
14
|
Role,
|
|
11
15
|
ServiceEndpoint,
|
|
12
16
|
ServiceOnlineResource,
|
|
@@ -14,12 +18,12 @@ import {
|
|
|
14
18
|
UpdateFrequencyCode,
|
|
15
19
|
UpdateFrequencyCustom,
|
|
16
20
|
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
17
|
-
import
|
|
21
|
+
import { ThesaurusModel } from '../../../../../../libs/common/domain/src/lib/model/thesaurus'
|
|
22
|
+
import { format } from 'date-fns/format'
|
|
23
|
+
import { Geometry } from 'geojson'
|
|
18
24
|
import {
|
|
19
25
|
ChainableFunction,
|
|
20
|
-
fallback,
|
|
21
26
|
filterArray,
|
|
22
|
-
getAtIndex,
|
|
23
27
|
map,
|
|
24
28
|
mapArray,
|
|
25
29
|
noop,
|
|
@@ -27,25 +31,57 @@ import {
|
|
|
27
31
|
tap,
|
|
28
32
|
} from '../function-utils'
|
|
29
33
|
import {
|
|
30
|
-
|
|
31
|
-
addAttribute,
|
|
34
|
+
allChildrenElement,
|
|
32
35
|
appendChildren,
|
|
33
36
|
createChild,
|
|
34
37
|
createElement,
|
|
35
|
-
|
|
38
|
+
createNestedChild,
|
|
39
|
+
createNestedElement,
|
|
36
40
|
findChildOrCreate,
|
|
37
41
|
findChildrenElement,
|
|
38
42
|
findNestedChildOrCreate,
|
|
43
|
+
findNestedElement,
|
|
39
44
|
findNestedElements,
|
|
40
45
|
readAttribute,
|
|
41
46
|
removeAllChildren,
|
|
42
47
|
removeChildren,
|
|
43
48
|
removeChildrenByName,
|
|
44
49
|
setTextContent,
|
|
50
|
+
writeAttribute,
|
|
51
|
+
XmlElement,
|
|
45
52
|
} from '../xml-utils'
|
|
46
53
|
import { readKind } from './read-parts'
|
|
54
|
+
import { writeGeometry } from './utils/geometry'
|
|
47
55
|
import { namePartsToFull } from './utils/individual-name'
|
|
48
|
-
import {
|
|
56
|
+
import { LANG_2_TO_3_MAPPER } from '../../../../../../libs/util/i18n/src/lib/language-codes'
|
|
57
|
+
import { kindToCodeListValue } from '../common/resource-types'
|
|
58
|
+
|
|
59
|
+
function writeLocalizedElement(
|
|
60
|
+
writeFn: ChainableFunction<XmlElement, XmlElement>,
|
|
61
|
+
text: string,
|
|
62
|
+
translations: FieldTranslation,
|
|
63
|
+
defaultLanguage: LanguageCode
|
|
64
|
+
): ChainableFunction<XmlElement, XmlElement> {
|
|
65
|
+
if (!translations) return writeFn
|
|
66
|
+
function createLocalized(lang: LanguageCode, translation: string) {
|
|
67
|
+
return pipe(
|
|
68
|
+
createNestedElement('gmd:textGroup', 'gmd:LocalisedCharacterString'),
|
|
69
|
+
writeAttribute('locale', `#${lang.toUpperCase()}`),
|
|
70
|
+
setTextContent(translation)
|
|
71
|
+
)
|
|
72
|
+
}
|
|
73
|
+
return pipe(
|
|
74
|
+
writeFn,
|
|
75
|
+
removeChildrenByName('gmd:PT_FreeText'),
|
|
76
|
+
createChild('gmd:PT_FreeText'),
|
|
77
|
+
appendChildren(
|
|
78
|
+
createLocalized(defaultLanguage, text),
|
|
79
|
+
...Object.entries(translations).map(([lang, translation]) =>
|
|
80
|
+
createLocalized(lang, translation)
|
|
81
|
+
)
|
|
82
|
+
)
|
|
83
|
+
)
|
|
84
|
+
}
|
|
49
85
|
|
|
50
86
|
export function writeCharacterString(
|
|
51
87
|
text: string
|
|
@@ -55,6 +91,19 @@ export function writeCharacterString(
|
|
|
55
91
|
)
|
|
56
92
|
}
|
|
57
93
|
|
|
94
|
+
export function writeLocalizedCharacterString(
|
|
95
|
+
text: string,
|
|
96
|
+
translations: FieldTranslation,
|
|
97
|
+
defaultLanguage: LanguageCode
|
|
98
|
+
): ChainableFunction<XmlElement, XmlElement> {
|
|
99
|
+
return writeLocalizedElement(
|
|
100
|
+
writeCharacterString(text),
|
|
101
|
+
text,
|
|
102
|
+
translations,
|
|
103
|
+
defaultLanguage
|
|
104
|
+
)
|
|
105
|
+
}
|
|
106
|
+
|
|
58
107
|
export function writeLinkage(
|
|
59
108
|
url: URL
|
|
60
109
|
): ChainableFunction<XmlElement, XmlElement> {
|
|
@@ -73,20 +122,32 @@ export function writeAnchor(
|
|
|
73
122
|
return tap(
|
|
74
123
|
pipe(
|
|
75
124
|
findChildOrCreate('gmx:Anchor'),
|
|
76
|
-
|
|
125
|
+
writeAttribute('xlink:href', url.toString()),
|
|
77
126
|
text ? setTextContent(text) : noop
|
|
78
127
|
)
|
|
79
128
|
)
|
|
80
129
|
}
|
|
81
130
|
|
|
131
|
+
export function writeLocalizedAnchor(
|
|
132
|
+
url: URL,
|
|
133
|
+
text: string,
|
|
134
|
+
translations: FieldTranslation,
|
|
135
|
+
defaultLanguage: LanguageCode
|
|
136
|
+
): ChainableFunction<XmlElement, XmlElement> {
|
|
137
|
+
return writeLocalizedElement(
|
|
138
|
+
writeAnchor(url, text),
|
|
139
|
+
text,
|
|
140
|
+
translations,
|
|
141
|
+
defaultLanguage
|
|
142
|
+
)
|
|
143
|
+
}
|
|
144
|
+
|
|
82
145
|
export function writeDateTime(
|
|
83
146
|
date: Date
|
|
84
147
|
): ChainableFunction<XmlElement, XmlElement> {
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
setTextContent(format(date, "yyyy-MM-dd'T'HH:mm:ss"))
|
|
89
|
-
)
|
|
148
|
+
return pipe(
|
|
149
|
+
findChildOrCreate('gco:DateTime'),
|
|
150
|
+
setTextContent(format(date, "yyyy-MM-dd'T'HH:mm:ss"))
|
|
90
151
|
)
|
|
91
152
|
}
|
|
92
153
|
|
|
@@ -101,6 +162,14 @@ export function writeDate(
|
|
|
101
162
|
)
|
|
102
163
|
}
|
|
103
164
|
|
|
165
|
+
export function writeDecimal(
|
|
166
|
+
decimal: number
|
|
167
|
+
): ChainableFunction<XmlElement, XmlElement> {
|
|
168
|
+
return tap(
|
|
169
|
+
pipe(findChildOrCreate('gco:Decimal'), setTextContent(decimal.toString()))
|
|
170
|
+
)
|
|
171
|
+
}
|
|
172
|
+
|
|
104
173
|
export function getProgressCode(status: RecordStatus): string {
|
|
105
174
|
switch (status) {
|
|
106
175
|
case 'completed':
|
|
@@ -169,7 +238,7 @@ export function getRoleCode(role: Role): string {
|
|
|
169
238
|
}
|
|
170
239
|
}
|
|
171
240
|
|
|
172
|
-
export function
|
|
241
|
+
export function getServiceDistributionProtocol(
|
|
173
242
|
distribution: DatasetServiceDistribution
|
|
174
243
|
): string {
|
|
175
244
|
switch (distribution.accessServiceProtocol.toLowerCase()) {
|
|
@@ -200,6 +269,24 @@ export function getMaintenanceFrequencyCode(
|
|
|
200
269
|
return 'continual'
|
|
201
270
|
case 'periodic':
|
|
202
271
|
return 'periodic'
|
|
272
|
+
case 'daily':
|
|
273
|
+
return 'daily'
|
|
274
|
+
case 'weekly':
|
|
275
|
+
return 'weekly'
|
|
276
|
+
case 'fortnightly':
|
|
277
|
+
return 'fortnightly'
|
|
278
|
+
case 'monthly':
|
|
279
|
+
return 'monthly'
|
|
280
|
+
case 'quarterly':
|
|
281
|
+
return 'quarterly'
|
|
282
|
+
case 'biannually':
|
|
283
|
+
return 'biannually'
|
|
284
|
+
case 'annually':
|
|
285
|
+
return 'annually'
|
|
286
|
+
case 'semimonthly':
|
|
287
|
+
return 'semimonthly'
|
|
288
|
+
case 'biennially':
|
|
289
|
+
return 'biennially'
|
|
203
290
|
}
|
|
204
291
|
}
|
|
205
292
|
|
|
@@ -232,12 +319,15 @@ export function getISODuration(updateFrequency: UpdateFrequencyCustom): string {
|
|
|
232
319
|
return `P${duration.years}Y${duration.months}M${duration.days}D${hours}`
|
|
233
320
|
}
|
|
234
321
|
|
|
235
|
-
|
|
322
|
+
function appendResponsibleParty(
|
|
323
|
+
contact: Individual,
|
|
324
|
+
translations: RecordTranslations,
|
|
325
|
+
defaultLanguage: LanguageCode
|
|
326
|
+
) {
|
|
236
327
|
const fullName = namePartsToFull(contact.firstName, contact.lastName)
|
|
237
328
|
|
|
238
329
|
const createAddress = pipe(
|
|
239
|
-
|
|
240
|
-
createChild('gmd:CI_Address'),
|
|
330
|
+
createNestedElement('gmd:address', 'gmd:CI_Address'),
|
|
241
331
|
appendChildren(
|
|
242
332
|
pipe(
|
|
243
333
|
createElement('gmd:electronicMailAddress'),
|
|
@@ -255,24 +345,20 @@ export function appendResponsibleParty(contact: Individual) {
|
|
|
255
345
|
)
|
|
256
346
|
|
|
257
347
|
const createContact = pipe(
|
|
258
|
-
|
|
259
|
-
createChild('gmd:CI_Contact'),
|
|
348
|
+
createNestedElement('gmd:contactInfo', 'gmd:CI_Contact'),
|
|
260
349
|
contact.phone
|
|
261
350
|
? appendChildren(
|
|
262
351
|
pipe(
|
|
263
|
-
|
|
264
|
-
createChild('gmd:CI_Telephone'),
|
|
265
|
-
createChild('gmd:voice'),
|
|
352
|
+
createNestedElement('gmd:phone', 'gmd:CI_Telephone', 'gmd:voice'),
|
|
266
353
|
writeCharacterString(contact.phone)
|
|
267
354
|
)
|
|
268
355
|
)
|
|
269
356
|
: noop,
|
|
270
357
|
appendChildren(createAddress),
|
|
271
|
-
|
|
358
|
+
contact.organization?.website
|
|
272
359
|
? appendChildren(
|
|
273
360
|
pipe(
|
|
274
|
-
|
|
275
|
-
createChild('gmd:CI_OnlineResource'),
|
|
361
|
+
createNestedElement('gmd:onlineResource', 'gmd:CI_OnlineResource'),
|
|
276
362
|
writeLinkage(contact.organization.website)
|
|
277
363
|
)
|
|
278
364
|
)
|
|
@@ -298,64 +384,24 @@ export function appendResponsibleParty(contact: Individual) {
|
|
|
298
384
|
)
|
|
299
385
|
)
|
|
300
386
|
: noop,
|
|
387
|
+
|
|
388
|
+
contact.organization?.name
|
|
389
|
+
? appendChildren(
|
|
390
|
+
pipe(
|
|
391
|
+
createElement('gmd:organisationName'),
|
|
392
|
+
writeCharacterString(contact.organization.name)
|
|
393
|
+
)
|
|
394
|
+
)
|
|
395
|
+
: noop,
|
|
301
396
|
appendChildren(
|
|
302
|
-
pipe(
|
|
303
|
-
createElement('gmd:organisationName'),
|
|
304
|
-
writeCharacterString(contact.organization.name)
|
|
305
|
-
),
|
|
306
397
|
createContact,
|
|
307
398
|
pipe(
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
addAttribute(
|
|
399
|
+
createNestedElement('gmd:role', 'gmd:CI_RoleCode'),
|
|
400
|
+
writeAttribute(
|
|
311
401
|
'codeList',
|
|
312
402
|
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_RoleCode'
|
|
313
403
|
),
|
|
314
|
-
|
|
315
|
-
)
|
|
316
|
-
)
|
|
317
|
-
)
|
|
318
|
-
)
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export function updateCitationDate(
|
|
322
|
-
date: Date,
|
|
323
|
-
type: 'revision' | 'creation' | 'publication'
|
|
324
|
-
) {
|
|
325
|
-
return pipe(
|
|
326
|
-
findNestedElements('gmd:date', 'gmd:CI_Date'),
|
|
327
|
-
filterArray(
|
|
328
|
-
pipe(
|
|
329
|
-
findChildElement('gmd:CI_DateTypeCode'),
|
|
330
|
-
readAttribute('codeListValue'),
|
|
331
|
-
map((value) => value === type)
|
|
332
|
-
)
|
|
333
|
-
),
|
|
334
|
-
getAtIndex(0),
|
|
335
|
-
findChildElement('gmd:date'),
|
|
336
|
-
removeAllChildren(),
|
|
337
|
-
writeDateTime(date)
|
|
338
|
-
)
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
export function appendCitationDate(
|
|
342
|
-
date: Date,
|
|
343
|
-
type: 'revision' | 'creation' | 'publication'
|
|
344
|
-
) {
|
|
345
|
-
return appendChildren(
|
|
346
|
-
pipe(
|
|
347
|
-
createElement('gmd:date'),
|
|
348
|
-
createChild('gmd:CI_Date'),
|
|
349
|
-
appendChildren(
|
|
350
|
-
pipe(createElement('gmd:date'), writeDateTime(date)),
|
|
351
|
-
pipe(
|
|
352
|
-
createElement('gmd:dateType'),
|
|
353
|
-
createChild('gmd:CI_DateTypeCode'),
|
|
354
|
-
addAttribute(
|
|
355
|
-
'codeList',
|
|
356
|
-
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode'
|
|
357
|
-
),
|
|
358
|
-
addAttribute('codeListValue', type)
|
|
404
|
+
writeAttribute('codeListValue', getRoleCode(contact.role))
|
|
359
405
|
)
|
|
360
406
|
)
|
|
361
407
|
)
|
|
@@ -369,16 +415,14 @@ export function removeKeywords() {
|
|
|
369
415
|
// returns a <gmd:thesaurusName> element
|
|
370
416
|
export function createThesaurus(thesaurus: ThesaurusModel) {
|
|
371
417
|
return pipe(
|
|
372
|
-
|
|
373
|
-
createChild('gmd:CI_Citation'),
|
|
418
|
+
createNestedElement('gmd:thesaurusName', 'gmd:CI_Citation'),
|
|
374
419
|
appendChildren(
|
|
375
420
|
pipe(
|
|
376
421
|
createElement('gmd:title'),
|
|
377
422
|
writeCharacterString(thesaurus.name || thesaurus.id)
|
|
378
423
|
),
|
|
379
424
|
pipe(
|
|
380
|
-
|
|
381
|
-
createChild('gmd:MD_Identifier'),
|
|
425
|
+
createNestedElement('gmd:identifier', 'gmd:MD_Identifier'),
|
|
382
426
|
appendChildren(
|
|
383
427
|
pipe(
|
|
384
428
|
createElement('gmd:code'),
|
|
@@ -392,7 +436,10 @@ export function createThesaurus(thesaurus: ThesaurusModel) {
|
|
|
392
436
|
)
|
|
393
437
|
}
|
|
394
438
|
|
|
395
|
-
export function appendKeywords(
|
|
439
|
+
export function appendKeywords(
|
|
440
|
+
keywords: Keyword[],
|
|
441
|
+
defaultLanguage: LanguageCode
|
|
442
|
+
) {
|
|
396
443
|
// keywords are grouped by thesaurus if they have one, otherwise by type
|
|
397
444
|
const keywordsByThesaurus: Keyword[][] = keywords.reduce((acc, keyword) => {
|
|
398
445
|
const thesaurusId = keyword.thesaurus?.id
|
|
@@ -412,17 +459,15 @@ export function appendKeywords(keywords: Keyword[]) {
|
|
|
412
459
|
return appendChildren(
|
|
413
460
|
...keywordsByThesaurus.map((keywords) =>
|
|
414
461
|
pipe(
|
|
415
|
-
|
|
416
|
-
createChild('gmd:MD_Keywords'),
|
|
462
|
+
createNestedElement('gmd:descriptiveKeywords', 'gmd:MD_Keywords'),
|
|
417
463
|
appendChildren(
|
|
418
464
|
pipe(
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
addAttribute(
|
|
465
|
+
createNestedElement('gmd:type', 'gmd:MD_KeywordTypeCode'),
|
|
466
|
+
writeAttribute(
|
|
422
467
|
'codeList',
|
|
423
468
|
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_KeywordTypeCode'
|
|
424
469
|
),
|
|
425
|
-
|
|
470
|
+
writeAttribute('codeListValue', keywords[0].type)
|
|
426
471
|
)
|
|
427
472
|
),
|
|
428
473
|
keywords[0].thesaurus
|
|
@@ -432,7 +477,11 @@ export function appendKeywords(keywords: Keyword[]) {
|
|
|
432
477
|
...keywords.map((keyword) =>
|
|
433
478
|
pipe(
|
|
434
479
|
createElement('gmd:keyword'),
|
|
435
|
-
|
|
480
|
+
writeLocalizedCharacterString(
|
|
481
|
+
keyword.label,
|
|
482
|
+
keyword.translations?.label,
|
|
483
|
+
defaultLanguage
|
|
484
|
+
)
|
|
436
485
|
)
|
|
437
486
|
)
|
|
438
487
|
)
|
|
@@ -443,70 +492,114 @@ export function appendKeywords(keywords: Keyword[]) {
|
|
|
443
492
|
|
|
444
493
|
export function createConstraint(
|
|
445
494
|
constraint: Constraint,
|
|
446
|
-
type: 'legal' | 'security' | 'other'
|
|
495
|
+
type: 'legal' | 'security' | 'other',
|
|
496
|
+
defaultLanguage: LanguageCode
|
|
447
497
|
) {
|
|
448
498
|
if (type === 'security') {
|
|
449
499
|
return pipe(
|
|
450
|
-
|
|
451
|
-
|
|
500
|
+
createNestedElement(
|
|
501
|
+
'gmd:resourceConstraints',
|
|
502
|
+
'gmd:MD_SecurityConstraints'
|
|
503
|
+
),
|
|
452
504
|
appendChildren(
|
|
453
505
|
pipe(
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
506
|
+
createNestedElement(
|
|
507
|
+
'gmd:classification',
|
|
508
|
+
'gmd:MD_ClassificationCode'
|
|
509
|
+
),
|
|
510
|
+
writeAttribute(
|
|
457
511
|
'codeList',
|
|
458
512
|
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ClassificationCode'
|
|
459
513
|
),
|
|
460
|
-
|
|
514
|
+
writeAttribute('codeListValue', 'restricted')
|
|
461
515
|
),
|
|
462
516
|
pipe(
|
|
463
517
|
createElement('gmd:useLimitation'),
|
|
464
|
-
|
|
518
|
+
'url' in constraint
|
|
519
|
+
? writeLocalizedAnchor(
|
|
520
|
+
constraint.url,
|
|
521
|
+
constraint.text,
|
|
522
|
+
constraint.translations?.text,
|
|
523
|
+
defaultLanguage
|
|
524
|
+
)
|
|
525
|
+
: writeLocalizedCharacterString(
|
|
526
|
+
constraint.text,
|
|
527
|
+
constraint.translations?.text,
|
|
528
|
+
defaultLanguage
|
|
529
|
+
)
|
|
465
530
|
)
|
|
466
531
|
)
|
|
467
532
|
)
|
|
468
533
|
} else if (type === 'legal') {
|
|
469
534
|
return pipe(
|
|
470
|
-
|
|
471
|
-
createChild('gmd:MD_LegalConstraints'),
|
|
535
|
+
createNestedElement('gmd:resourceConstraints', 'gmd:MD_LegalConstraints'),
|
|
472
536
|
appendChildren(
|
|
473
537
|
pipe(
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
538
|
+
createNestedElement(
|
|
539
|
+
'gmd:accessConstraints',
|
|
540
|
+
'gmd:MD_RestrictionCode'
|
|
541
|
+
),
|
|
542
|
+
writeAttribute(
|
|
477
543
|
'codeList',
|
|
478
544
|
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_RestrictionCode'
|
|
479
545
|
),
|
|
480
|
-
|
|
546
|
+
writeAttribute('codeListValue', 'otherRestrictions')
|
|
481
547
|
),
|
|
482
548
|
pipe(
|
|
483
549
|
createElement('gmd:otherConstraints'),
|
|
484
|
-
|
|
550
|
+
'url' in constraint
|
|
551
|
+
? writeLocalizedAnchor(
|
|
552
|
+
constraint.url,
|
|
553
|
+
constraint.text,
|
|
554
|
+
constraint.translations?.text,
|
|
555
|
+
defaultLanguage
|
|
556
|
+
)
|
|
557
|
+
: writeLocalizedCharacterString(
|
|
558
|
+
constraint.text,
|
|
559
|
+
constraint.translations?.text,
|
|
560
|
+
defaultLanguage
|
|
561
|
+
)
|
|
485
562
|
)
|
|
486
563
|
)
|
|
487
564
|
)
|
|
488
565
|
}
|
|
489
|
-
|
|
566
|
+
// other
|
|
490
567
|
return pipe(
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
568
|
+
createNestedElement(
|
|
569
|
+
'gmd:resourceConstraints',
|
|
570
|
+
'gmd:MD_Constraints',
|
|
571
|
+
'gmd:useLimitation'
|
|
572
|
+
),
|
|
573
|
+
'url' in constraint
|
|
574
|
+
? writeLocalizedAnchor(
|
|
575
|
+
constraint.url,
|
|
576
|
+
constraint.text,
|
|
577
|
+
constraint.translations?.text,
|
|
578
|
+
defaultLanguage
|
|
579
|
+
)
|
|
580
|
+
: writeLocalizedCharacterString(
|
|
581
|
+
constraint.text,
|
|
582
|
+
constraint.translations?.text,
|
|
583
|
+
defaultLanguage
|
|
584
|
+
)
|
|
499
585
|
)
|
|
500
586
|
}
|
|
501
587
|
|
|
502
588
|
export function removeOtherConstraints() {
|
|
503
|
-
return
|
|
589
|
+
return tap(
|
|
504
590
|
pipe(
|
|
505
591
|
findChildrenElement('gmd:resourceConstraints'),
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
592
|
+
mapArray(
|
|
593
|
+
removeChildren(
|
|
594
|
+
pipe(
|
|
595
|
+
findChildrenElement('gmd:MD_Constraints'),
|
|
596
|
+
filterArray(
|
|
597
|
+
pipe(
|
|
598
|
+
findNestedElements('gmd:useLimitation'),
|
|
599
|
+
(array) => array.length > 0
|
|
600
|
+
)
|
|
601
|
+
)
|
|
602
|
+
)
|
|
510
603
|
)
|
|
511
604
|
)
|
|
512
605
|
)
|
|
@@ -514,13 +607,20 @@ export function removeOtherConstraints() {
|
|
|
514
607
|
}
|
|
515
608
|
|
|
516
609
|
export function removeSecurityConstraints() {
|
|
517
|
-
return
|
|
610
|
+
return tap(
|
|
518
611
|
pipe(
|
|
519
612
|
findChildrenElement('gmd:resourceConstraints'),
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
613
|
+
mapArray(
|
|
614
|
+
removeChildren(
|
|
615
|
+
pipe(
|
|
616
|
+
findChildrenElement('gmd:MD_SecurityConstraints'),
|
|
617
|
+
filterArray(
|
|
618
|
+
pipe(
|
|
619
|
+
findNestedElements('gmd:useLimitation'),
|
|
620
|
+
(array) => array.length > 0
|
|
621
|
+
)
|
|
622
|
+
)
|
|
623
|
+
)
|
|
524
624
|
)
|
|
525
625
|
)
|
|
526
626
|
)
|
|
@@ -528,25 +628,40 @@ export function removeSecurityConstraints() {
|
|
|
528
628
|
}
|
|
529
629
|
|
|
530
630
|
export function removeLegalConstraints() {
|
|
531
|
-
return
|
|
631
|
+
return tap(
|
|
532
632
|
pipe(
|
|
533
633
|
findChildrenElement('gmd:resourceConstraints'),
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
'gmd:MD_LegalConstraints',
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
634
|
+
mapArray(
|
|
635
|
+
removeChildren(
|
|
636
|
+
pipe(
|
|
637
|
+
findChildrenElement('gmd:MD_LegalConstraints'),
|
|
638
|
+
filterArray(
|
|
639
|
+
pipe(
|
|
640
|
+
findNestedElements(
|
|
641
|
+
'gmd:accessConstraints',
|
|
642
|
+
'gmd:MD_RestrictionCode'
|
|
643
|
+
),
|
|
644
|
+
mapArray(readAttribute('codeListValue')),
|
|
645
|
+
(restrictionCodes) =>
|
|
646
|
+
restrictionCodes.every((code) => code !== 'license')
|
|
647
|
+
)
|
|
648
|
+
)
|
|
649
|
+
)
|
|
544
650
|
)
|
|
545
651
|
)
|
|
546
652
|
)
|
|
547
653
|
)
|
|
548
654
|
}
|
|
549
655
|
|
|
656
|
+
export function removeEmptyResourceConstraints() {
|
|
657
|
+
return removeChildren(
|
|
658
|
+
pipe(
|
|
659
|
+
findChildrenElement('gmd:resourceConstraints'),
|
|
660
|
+
filterArray(pipe(allChildrenElement, (array) => array.length === 0))
|
|
661
|
+
)
|
|
662
|
+
)
|
|
663
|
+
}
|
|
664
|
+
|
|
550
665
|
export function removeLicenses() {
|
|
551
666
|
return removeChildren(
|
|
552
667
|
pipe(
|
|
@@ -567,48 +682,51 @@ export function removeLicenses() {
|
|
|
567
682
|
)
|
|
568
683
|
}
|
|
569
684
|
|
|
570
|
-
export function createLicense(
|
|
685
|
+
export function createLicense(
|
|
686
|
+
license: Constraint,
|
|
687
|
+
defaultLanguage: LanguageCode
|
|
688
|
+
) {
|
|
571
689
|
return pipe(
|
|
572
|
-
|
|
573
|
-
createChild('gmd:MD_LegalConstraints'),
|
|
690
|
+
createNestedElement('gmd:resourceConstraints', 'gmd:MD_LegalConstraints'),
|
|
574
691
|
appendChildren(
|
|
575
692
|
pipe(
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
addAttribute(
|
|
693
|
+
createNestedElement('gmd:accessConstraints', 'gmd:MD_RestrictionCode'),
|
|
694
|
+
writeAttribute(
|
|
579
695
|
'codeList',
|
|
580
696
|
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_RestrictionCode'
|
|
581
697
|
),
|
|
582
|
-
|
|
698
|
+
writeAttribute('codeListValue', 'license')
|
|
583
699
|
),
|
|
584
700
|
pipe(
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
addAttribute(
|
|
701
|
+
createNestedElement('gmd:accessConstraints', 'gmd:MD_RestrictionCode'),
|
|
702
|
+
writeAttribute(
|
|
588
703
|
'codeList',
|
|
589
704
|
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_RestrictionCode'
|
|
590
705
|
),
|
|
591
|
-
|
|
706
|
+
writeAttribute('codeListValue', 'otherRestrictions')
|
|
592
707
|
),
|
|
593
708
|
pipe(
|
|
594
709
|
createElement('gmd:otherConstraints'),
|
|
595
710
|
'url' in license
|
|
596
711
|
? writeAnchor(license.url, license.text)
|
|
597
|
-
:
|
|
712
|
+
: writeLocalizedCharacterString(
|
|
713
|
+
license.text,
|
|
714
|
+
license.translations?.text,
|
|
715
|
+
defaultLanguage
|
|
716
|
+
)
|
|
598
717
|
)
|
|
599
718
|
)
|
|
600
719
|
)
|
|
601
720
|
}
|
|
602
721
|
|
|
603
|
-
export function
|
|
604
|
-
return
|
|
722
|
+
export function removeOnlineResources() {
|
|
723
|
+
return removeChildrenByName('gmd:distributionInfo')
|
|
605
724
|
}
|
|
606
725
|
|
|
607
|
-
function
|
|
726
|
+
function appendOnlineResourceFormat(mimeType: string) {
|
|
608
727
|
return appendChildren(
|
|
609
728
|
pipe(
|
|
610
|
-
|
|
611
|
-
createChild('gmd:MD_Format'),
|
|
729
|
+
createNestedElement('gmd:distributionFormat', 'gmd:MD_Format'),
|
|
612
730
|
appendChildren(
|
|
613
731
|
pipe(createElement('gmd:name'), writeCharacterString(mimeType)),
|
|
614
732
|
pipe(
|
|
@@ -621,71 +739,84 @@ function appendDistributionFormat(mimeType: string) {
|
|
|
621
739
|
}
|
|
622
740
|
|
|
623
741
|
export function createDistributionInfo() {
|
|
624
|
-
return
|
|
625
|
-
createElement('gmd:distributionInfo'),
|
|
626
|
-
createChild('gmd:MD_Distribution')
|
|
627
|
-
)
|
|
742
|
+
return createNestedElement('gmd:distributionInfo', 'gmd:MD_Distribution')
|
|
628
743
|
}
|
|
629
744
|
|
|
630
745
|
// apply to MD_Distribution
|
|
631
|
-
export function
|
|
632
|
-
|
|
746
|
+
export function appendOnlineResource(
|
|
747
|
+
onlineResource: DatasetOnlineResource,
|
|
633
748
|
appendFormatFn: (
|
|
634
749
|
mimeType: string
|
|
635
|
-
) => ChainableFunction<XmlElement, XmlElement
|
|
750
|
+
) => ChainableFunction<XmlElement, XmlElement>,
|
|
751
|
+
translations: RecordTranslations,
|
|
752
|
+
defaultLanguage: LanguageCode
|
|
636
753
|
) {
|
|
637
754
|
let name: string
|
|
638
755
|
let functionCode: string
|
|
639
756
|
let protocol: string
|
|
640
|
-
if (
|
|
641
|
-
name =
|
|
757
|
+
if (onlineResource.type === 'service') {
|
|
758
|
+
name = onlineResource.identifierInService // this is for GeoNetwork to know the layer name
|
|
642
759
|
functionCode = 'download'
|
|
643
|
-
protocol =
|
|
644
|
-
} else if (
|
|
645
|
-
name =
|
|
760
|
+
protocol = getServiceDistributionProtocol(onlineResource)
|
|
761
|
+
} else if (onlineResource.type === 'download') {
|
|
762
|
+
name = onlineResource.name
|
|
646
763
|
functionCode = 'download'
|
|
647
764
|
protocol = 'WWW:DOWNLOAD'
|
|
648
765
|
} else {
|
|
649
|
-
name =
|
|
766
|
+
name = onlineResource.name
|
|
650
767
|
functionCode = 'information'
|
|
651
768
|
protocol = 'WWW:LINK'
|
|
652
769
|
}
|
|
653
770
|
const appendTransferOptions = appendChildren(
|
|
654
771
|
pipe(
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
772
|
+
createNestedElement(
|
|
773
|
+
'gmd:transferOptions',
|
|
774
|
+
'gmd:MD_DigitalTransferOptions',
|
|
775
|
+
'gmd:onLine',
|
|
776
|
+
'gmd:CI_OnlineResource'
|
|
777
|
+
),
|
|
778
|
+
writeLinkage(onlineResource.url),
|
|
779
|
+
'description' in onlineResource
|
|
661
780
|
? appendChildren(
|
|
662
781
|
pipe(
|
|
663
782
|
createElement('gmd:description'),
|
|
664
|
-
|
|
783
|
+
writeLocalizedCharacterString(
|
|
784
|
+
onlineResource.description,
|
|
785
|
+
onlineResource.translations?.description,
|
|
786
|
+
defaultLanguage
|
|
787
|
+
)
|
|
665
788
|
)
|
|
666
789
|
)
|
|
667
790
|
: noop,
|
|
668
791
|
name !== undefined
|
|
669
792
|
? appendChildren(
|
|
670
|
-
pipe(
|
|
793
|
+
pipe(
|
|
794
|
+
createElement('gmd:name'),
|
|
795
|
+
writeLocalizedCharacterString(
|
|
796
|
+
name,
|
|
797
|
+
onlineResource.translations?.name,
|
|
798
|
+
defaultLanguage
|
|
799
|
+
)
|
|
800
|
+
)
|
|
671
801
|
)
|
|
672
802
|
: noop,
|
|
673
803
|
appendChildren(
|
|
674
804
|
pipe(createElement('gmd:protocol'), writeCharacterString(protocol)),
|
|
675
805
|
pipe(
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
addAttribute(
|
|
806
|
+
createNestedElement('gmd:function', 'gmd:CI_OnLineFunctionCode'),
|
|
807
|
+
writeAttribute(
|
|
679
808
|
'codeList',
|
|
680
809
|
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_OnLineFunctionCode'
|
|
681
810
|
),
|
|
682
|
-
|
|
811
|
+
writeAttribute('codeListValue', functionCode)
|
|
683
812
|
)
|
|
684
813
|
)
|
|
685
814
|
)
|
|
686
815
|
)
|
|
687
816
|
return pipe(
|
|
688
|
-
'mimeType' in
|
|
817
|
+
'mimeType' in onlineResource
|
|
818
|
+
? appendFormatFn(onlineResource.mimeType)
|
|
819
|
+
: noop,
|
|
689
820
|
appendTransferOptions
|
|
690
821
|
)
|
|
691
822
|
}
|
|
@@ -725,46 +856,11 @@ export function writeUniqueIdentifier(
|
|
|
725
856
|
export function writeKind(record: CatalogRecord, rootEl: XmlElement) {
|
|
726
857
|
pipe(
|
|
727
858
|
findNestedChildOrCreate('gmd:hierarchyLevel', 'gmd:MD_ScopeCode'),
|
|
728
|
-
|
|
859
|
+
writeAttribute(
|
|
729
860
|
'codeList',
|
|
730
861
|
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ScopeCode'
|
|
731
862
|
),
|
|
732
|
-
|
|
733
|
-
)(rootEl)
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
export function writeOwnerOrganization(
|
|
737
|
-
record: CatalogRecord,
|
|
738
|
-
rootEl: XmlElement
|
|
739
|
-
) {
|
|
740
|
-
// if no contact matches the owner org, create an empty one
|
|
741
|
-
const ownerContact: Individual = record.contacts.find(
|
|
742
|
-
(contact) => contact.organization.name === record.ownerOrganization.name
|
|
743
|
-
)
|
|
744
|
-
pipe(
|
|
745
|
-
findChildOrCreate('gmd:contact'),
|
|
746
|
-
removeAllChildren(),
|
|
747
|
-
appendResponsibleParty(
|
|
748
|
-
ownerContact
|
|
749
|
-
? {
|
|
750
|
-
...ownerContact,
|
|
751
|
-
// owner responsible party is always point of contact
|
|
752
|
-
role: 'point_of_contact',
|
|
753
|
-
}
|
|
754
|
-
: {
|
|
755
|
-
organization: record.ownerOrganization,
|
|
756
|
-
email: '',
|
|
757
|
-
role: 'point_of_contact',
|
|
758
|
-
}
|
|
759
|
-
)
|
|
760
|
-
)(rootEl)
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
export function writeRecordUpdated(record: CatalogRecord, rootEl: XmlElement) {
|
|
764
|
-
pipe(
|
|
765
|
-
findChildOrCreate('gmd:dateStamp'),
|
|
766
|
-
removeAllChildren(),
|
|
767
|
-
writeDateTime(record.recordUpdated)
|
|
863
|
+
writeAttribute('codeListValue', kindToCodeListValue(record))
|
|
768
864
|
)(rootEl)
|
|
769
865
|
}
|
|
770
866
|
|
|
@@ -772,7 +868,11 @@ export function writeTitle(record: CatalogRecord, rootEl: XmlElement) {
|
|
|
772
868
|
pipe(
|
|
773
869
|
findOrCreateIdentification(),
|
|
774
870
|
findNestedChildOrCreate('gmd:citation', 'gmd:CI_Citation', 'gmd:title'),
|
|
775
|
-
|
|
871
|
+
writeLocalizedCharacterString(
|
|
872
|
+
record.title,
|
|
873
|
+
record.translations?.title,
|
|
874
|
+
record.defaultLanguage
|
|
875
|
+
)
|
|
776
876
|
)(rootEl)
|
|
777
877
|
}
|
|
778
878
|
|
|
@@ -780,7 +880,11 @@ export function writeAbstract(record: CatalogRecord, rootEl: XmlElement) {
|
|
|
780
880
|
pipe(
|
|
781
881
|
findOrCreateIdentification(),
|
|
782
882
|
findChildOrCreate('gmd:abstract'),
|
|
783
|
-
|
|
883
|
+
writeLocalizedCharacterString(
|
|
884
|
+
record.abstract,
|
|
885
|
+
record.translations?.abstract,
|
|
886
|
+
record.defaultLanguage
|
|
887
|
+
)
|
|
784
888
|
)(rootEl)
|
|
785
889
|
}
|
|
786
890
|
|
|
@@ -788,11 +892,11 @@ export function writeStatus(record: DatasetRecord, rootEl: XmlElement) {
|
|
|
788
892
|
pipe(
|
|
789
893
|
findOrCreateIdentification(),
|
|
790
894
|
findNestedChildOrCreate('gmd:status', 'gmd:MD_ProgressCode'),
|
|
791
|
-
|
|
895
|
+
writeAttribute(
|
|
792
896
|
'codeList',
|
|
793
897
|
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ProgressCode'
|
|
794
898
|
),
|
|
795
|
-
|
|
899
|
+
writeAttribute('codeListValue', getProgressCode(record.status))
|
|
796
900
|
)(rootEl)
|
|
797
901
|
}
|
|
798
902
|
|
|
@@ -801,7 +905,14 @@ export function writeContacts(record: CatalogRecord, rootEl: XmlElement) {
|
|
|
801
905
|
removeChildrenByName('gmd:contact'),
|
|
802
906
|
appendChildren(
|
|
803
907
|
...record.contacts.map((contact) =>
|
|
804
|
-
pipe(
|
|
908
|
+
pipe(
|
|
909
|
+
createElement('gmd:contact'),
|
|
910
|
+
appendResponsibleParty(
|
|
911
|
+
contact,
|
|
912
|
+
record.translations,
|
|
913
|
+
record.defaultLanguage
|
|
914
|
+
)
|
|
915
|
+
)
|
|
805
916
|
)
|
|
806
917
|
)
|
|
807
918
|
)(rootEl)
|
|
@@ -819,7 +930,11 @@ export function writeContactsForResource(
|
|
|
819
930
|
...record.contactsForResource.map((contact) =>
|
|
820
931
|
pipe(
|
|
821
932
|
createElement('gmd:pointOfContact'),
|
|
822
|
-
appendResponsibleParty(
|
|
933
|
+
appendResponsibleParty(
|
|
934
|
+
contact,
|
|
935
|
+
record.translations,
|
|
936
|
+
record.defaultLanguage
|
|
937
|
+
)
|
|
823
938
|
)
|
|
824
939
|
)
|
|
825
940
|
)
|
|
@@ -830,7 +945,7 @@ export function writeKeywords(record: CatalogRecord, rootEl: XmlElement) {
|
|
|
830
945
|
pipe(
|
|
831
946
|
findOrCreateIdentification(),
|
|
832
947
|
removeKeywords(),
|
|
833
|
-
appendKeywords(record.keywords)
|
|
948
|
+
appendKeywords(record.keywords, record.defaultLanguage)
|
|
834
949
|
)(rootEl)
|
|
835
950
|
}
|
|
836
951
|
|
|
@@ -841,8 +956,7 @@ export function writeTopics(record: CatalogRecord, rootEl: XmlElement) {
|
|
|
841
956
|
appendChildren(
|
|
842
957
|
...record.topics.map((topic) =>
|
|
843
958
|
pipe(
|
|
844
|
-
|
|
845
|
-
createChild('gmd:MD_TopicCategoryCode'),
|
|
959
|
+
createNestedElement('gmd:topicCategory', 'gmd:MD_TopicCategoryCode'),
|
|
846
960
|
setTextContent(topic)
|
|
847
961
|
)
|
|
848
962
|
)
|
|
@@ -854,7 +968,11 @@ export function writeLicenses(record: CatalogRecord, rootEl: XmlElement) {
|
|
|
854
968
|
pipe(
|
|
855
969
|
findOrCreateIdentification(),
|
|
856
970
|
removeLicenses(),
|
|
857
|
-
appendChildren(
|
|
971
|
+
appendChildren(
|
|
972
|
+
...record.licenses.map((license) =>
|
|
973
|
+
createLicense(license, record.defaultLanguage)
|
|
974
|
+
)
|
|
975
|
+
)
|
|
858
976
|
)(rootEl)
|
|
859
977
|
}
|
|
860
978
|
|
|
@@ -865,8 +983,11 @@ export function writeLegalConstraints(
|
|
|
865
983
|
pipe(
|
|
866
984
|
findOrCreateIdentification(),
|
|
867
985
|
removeLegalConstraints(),
|
|
986
|
+
removeEmptyResourceConstraints(),
|
|
868
987
|
appendChildren(
|
|
869
|
-
...record.legalConstraints.map((c) =>
|
|
988
|
+
...record.legalConstraints.map((c) =>
|
|
989
|
+
createConstraint(c, 'legal', record.defaultLanguage)
|
|
990
|
+
)
|
|
870
991
|
)
|
|
871
992
|
)(rootEl)
|
|
872
993
|
}
|
|
@@ -878,8 +999,11 @@ export function writeSecurityConstraints(
|
|
|
878
999
|
pipe(
|
|
879
1000
|
findOrCreateIdentification(),
|
|
880
1001
|
removeSecurityConstraints(),
|
|
1002
|
+
removeEmptyResourceConstraints(),
|
|
881
1003
|
appendChildren(
|
|
882
|
-
...record.securityConstraints.map((c) =>
|
|
1004
|
+
...record.securityConstraints.map((c) =>
|
|
1005
|
+
createConstraint(c, 'security', record.defaultLanguage)
|
|
1006
|
+
)
|
|
883
1007
|
)
|
|
884
1008
|
)(rootEl)
|
|
885
1009
|
}
|
|
@@ -891,8 +1015,11 @@ export function writeOtherConstraints(
|
|
|
891
1015
|
pipe(
|
|
892
1016
|
findOrCreateIdentification(),
|
|
893
1017
|
removeOtherConstraints(),
|
|
1018
|
+
removeEmptyResourceConstraints(),
|
|
894
1019
|
appendChildren(
|
|
895
|
-
...record.otherConstraints.map((c) =>
|
|
1020
|
+
...record.otherConstraints.map((c) =>
|
|
1021
|
+
createConstraint(c, 'other', record.defaultLanguage)
|
|
1022
|
+
)
|
|
896
1023
|
)
|
|
897
1024
|
)(rootEl)
|
|
898
1025
|
}
|
|
@@ -908,18 +1035,22 @@ export function writeUpdateFrequency(
|
|
|
908
1035
|
findChildOrCreate('gmd:MD_MaintenanceInformation'),
|
|
909
1036
|
typeof record.updateFrequency === 'object'
|
|
910
1037
|
? pipe(
|
|
911
|
-
|
|
912
|
-
|
|
1038
|
+
createNestedChild(
|
|
1039
|
+
'gmd:userDefinedMaintenanceFrequency',
|
|
1040
|
+
'gts:TM_PeriodDuration'
|
|
1041
|
+
),
|
|
913
1042
|
setTextContent(getISODuration(record.updateFrequency))
|
|
914
1043
|
)
|
|
915
1044
|
: pipe(
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
1045
|
+
createNestedChild(
|
|
1046
|
+
'gmd:maintenanceAndUpdateFrequency',
|
|
1047
|
+
'gmd:MD_MaintenanceFrequencyCode'
|
|
1048
|
+
),
|
|
1049
|
+
writeAttribute(
|
|
919
1050
|
'codeList',
|
|
920
1051
|
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_MaintenanceFrequencyCode'
|
|
921
1052
|
),
|
|
922
|
-
|
|
1053
|
+
writeAttribute(
|
|
923
1054
|
'codeListValue',
|
|
924
1055
|
getMaintenanceFrequencyCode(record.updateFrequency)
|
|
925
1056
|
)
|
|
@@ -927,66 +1058,118 @@ export function writeUpdateFrequency(
|
|
|
927
1058
|
)(rootEl)
|
|
928
1059
|
}
|
|
929
1060
|
|
|
930
|
-
export function
|
|
931
|
-
record: DatasetRecord,
|
|
932
|
-
rootEl: XmlElement
|
|
933
|
-
) {
|
|
934
|
-
if (!('resourceCreated' in record)) return
|
|
1061
|
+
export function writeRecordUpdated(record: CatalogRecord, rootEl: XmlElement) {
|
|
935
1062
|
pipe(
|
|
1063
|
+
findChildOrCreate('gmd:dateStamp'),
|
|
1064
|
+
removeAllChildren(),
|
|
1065
|
+
writeDateTime(record.recordUpdated)
|
|
1066
|
+
)(rootEl)
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
export function removeResourceDate(
|
|
1070
|
+
type: 'revision' | 'creation' | 'publication'
|
|
1071
|
+
) {
|
|
1072
|
+
return pipe(
|
|
936
1073
|
findOrCreateIdentification(),
|
|
937
1074
|
findNestedChildOrCreate('gmd:citation', 'gmd:CI_Citation'),
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
1075
|
+
removeChildren(
|
|
1076
|
+
pipe(
|
|
1077
|
+
findNestedElements('gmd:date'),
|
|
1078
|
+
filterArray(
|
|
1079
|
+
pipe(
|
|
1080
|
+
findNestedElement(
|
|
1081
|
+
'gmd:CI_Date',
|
|
1082
|
+
'gmd:dateType',
|
|
1083
|
+
'gmd:CI_DateTypeCode'
|
|
1084
|
+
),
|
|
1085
|
+
readAttribute('codeListValue'),
|
|
1086
|
+
map((value) => value === type)
|
|
1087
|
+
)
|
|
1088
|
+
)
|
|
1089
|
+
)
|
|
941
1090
|
)
|
|
942
|
-
)
|
|
1091
|
+
)
|
|
943
1092
|
}
|
|
944
1093
|
|
|
945
|
-
export function
|
|
946
|
-
|
|
947
|
-
|
|
1094
|
+
export function appendResourceDate(
|
|
1095
|
+
date: Date,
|
|
1096
|
+
type: 'revision' | 'creation' | 'publication'
|
|
948
1097
|
) {
|
|
949
|
-
|
|
950
|
-
pipe(
|
|
1098
|
+
return pipe(
|
|
951
1099
|
findOrCreateIdentification(),
|
|
952
1100
|
findNestedChildOrCreate('gmd:citation', 'gmd:CI_Citation'),
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
1101
|
+
appendChildren(
|
|
1102
|
+
pipe(
|
|
1103
|
+
createNestedElement('gmd:date', 'gmd:CI_Date'),
|
|
1104
|
+
appendChildren(
|
|
1105
|
+
pipe(createElement('gmd:date'), writeDateTime(date)),
|
|
1106
|
+
pipe(
|
|
1107
|
+
createNestedElement('gmd:dateType', 'gmd:CI_DateTypeCode'),
|
|
1108
|
+
writeAttribute(
|
|
1109
|
+
'codeList',
|
|
1110
|
+
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode'
|
|
1111
|
+
),
|
|
1112
|
+
writeAttribute('codeListValue', type)
|
|
1113
|
+
)
|
|
1114
|
+
)
|
|
1115
|
+
)
|
|
956
1116
|
)
|
|
957
|
-
)
|
|
1117
|
+
)
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
export function writeResourceCreated(
|
|
1121
|
+
record: DatasetRecord,
|
|
1122
|
+
rootEl: XmlElement
|
|
1123
|
+
) {
|
|
1124
|
+
removeResourceDate('creation')(rootEl)
|
|
1125
|
+
if (!record.resourceCreated) return
|
|
1126
|
+
appendResourceDate(record.resourceCreated, 'creation')(rootEl)
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
export function writeResourceUpdated(
|
|
1130
|
+
record: DatasetRecord,
|
|
1131
|
+
rootEl: XmlElement
|
|
1132
|
+
) {
|
|
1133
|
+
removeResourceDate('revision')(rootEl)
|
|
1134
|
+
if (!record.resourceUpdated) return
|
|
1135
|
+
appendResourceDate(record.resourceUpdated, 'revision')(rootEl)
|
|
958
1136
|
}
|
|
959
1137
|
|
|
960
1138
|
export function writeResourcePublished(
|
|
961
1139
|
record: DatasetRecord,
|
|
962
1140
|
rootEl: XmlElement
|
|
963
1141
|
) {
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
)
|
|
972
|
-
)(rootEl)
|
|
1142
|
+
removeResourceDate('publication')(rootEl)
|
|
1143
|
+
if (!record.resourcePublished) return
|
|
1144
|
+
appendResourceDate(record.resourcePublished, 'publication')(rootEl)
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
export function writeReuseType(record: CatalogRecord, rootEl: XmlElement) {
|
|
1148
|
+
writeKind(record, rootEl)
|
|
973
1149
|
}
|
|
974
1150
|
|
|
975
1151
|
export function writeSpatialRepresentation(
|
|
976
1152
|
record: DatasetRecord,
|
|
977
1153
|
rootEl: XmlElement
|
|
978
1154
|
) {
|
|
1155
|
+
if (!record.spatialRepresentation) {
|
|
1156
|
+
pipe(
|
|
1157
|
+
findOrCreateIdentification(),
|
|
1158
|
+
removeChildrenByName('gmd:spatialRepresentationType')
|
|
1159
|
+
)(rootEl)
|
|
1160
|
+
return
|
|
1161
|
+
}
|
|
979
1162
|
pipe(
|
|
980
1163
|
findOrCreateIdentification(),
|
|
981
1164
|
findNestedChildOrCreate(
|
|
982
1165
|
'gmd:spatialRepresentationType',
|
|
983
1166
|
'gmd:MD_SpatialRepresentationTypeCode'
|
|
984
1167
|
),
|
|
985
|
-
|
|
1168
|
+
writeAttribute(
|
|
986
1169
|
'codeList',
|
|
987
1170
|
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_SpatialRepresentationTypeCode'
|
|
988
1171
|
),
|
|
989
|
-
|
|
1172
|
+
writeAttribute('codeListValue', record.spatialRepresentation)
|
|
990
1173
|
)(rootEl)
|
|
991
1174
|
}
|
|
992
1175
|
|
|
@@ -1000,8 +1183,7 @@ export function writeGraphicOverviews(
|
|
|
1000
1183
|
appendChildren(
|
|
1001
1184
|
...record.overviews.map((overview) =>
|
|
1002
1185
|
pipe(
|
|
1003
|
-
|
|
1004
|
-
createChild('gmd:MD_BrowseGraphic'),
|
|
1186
|
+
createNestedElement('gmd:graphicOverview', 'gmd:MD_BrowseGraphic'),
|
|
1005
1187
|
appendChildren(
|
|
1006
1188
|
pipe(
|
|
1007
1189
|
createElement('gmd:fileName'),
|
|
@@ -1022,20 +1204,6 @@ export function writeGraphicOverviews(
|
|
|
1022
1204
|
)(rootEl)
|
|
1023
1205
|
}
|
|
1024
1206
|
|
|
1025
|
-
export function writeDistributions(record: DatasetRecord, rootEl: XmlElement) {
|
|
1026
|
-
pipe(
|
|
1027
|
-
removeDistributions(),
|
|
1028
|
-
appendChildren(
|
|
1029
|
-
...record.distributions.map((d) =>
|
|
1030
|
-
pipe(
|
|
1031
|
-
createDistributionInfo(),
|
|
1032
|
-
appendDistribution(d, appendDistributionFormat)
|
|
1033
|
-
)
|
|
1034
|
-
)
|
|
1035
|
-
)
|
|
1036
|
-
)(rootEl)
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
1207
|
export function writeLineage(record: DatasetRecord, rootEl: XmlElement) {
|
|
1040
1208
|
pipe(
|
|
1041
1209
|
findNestedChildOrCreate(
|
|
@@ -1045,7 +1213,11 @@ export function writeLineage(record: DatasetRecord, rootEl: XmlElement) {
|
|
|
1045
1213
|
'gmd:LI_Lineage',
|
|
1046
1214
|
'gmd:statement'
|
|
1047
1215
|
),
|
|
1048
|
-
|
|
1216
|
+
writeLocalizedCharacterString(
|
|
1217
|
+
record.lineage,
|
|
1218
|
+
record.translations?.lineage,
|
|
1219
|
+
record.defaultLanguage
|
|
1220
|
+
)
|
|
1049
1221
|
)(rootEl)
|
|
1050
1222
|
}
|
|
1051
1223
|
|
|
@@ -1076,9 +1248,11 @@ export function createOnlineResource(onlineResource: ServiceOnlineResource) {
|
|
|
1076
1248
|
const appendTransferOptions = appendChildren(
|
|
1077
1249
|
pipe(
|
|
1078
1250
|
createElement('gmd:transferOptions'),
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1251
|
+
createNestedChild(
|
|
1252
|
+
'gmd:MD_DigitalTransferOptions',
|
|
1253
|
+
'gmd:onLine',
|
|
1254
|
+
'gmd:CI_OnlineResource'
|
|
1255
|
+
),
|
|
1082
1256
|
writeLinkage(linkageUrl),
|
|
1083
1257
|
'description' in onlineResource
|
|
1084
1258
|
? appendChildren(
|
|
@@ -1099,34 +1273,61 @@ export function createOnlineResource(onlineResource: ServiceOnlineResource) {
|
|
|
1099
1273
|
appendChildren(
|
|
1100
1274
|
pipe(createElement('gmd:protocol'), writeCharacterString(protocol)),
|
|
1101
1275
|
pipe(
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
addAttribute(
|
|
1276
|
+
createNestedElement('gmd:function', 'gmd:CI_OnLineFunctionCode'),
|
|
1277
|
+
writeAttribute(
|
|
1105
1278
|
'codeList',
|
|
1106
1279
|
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_OnLineFunctionCode'
|
|
1107
1280
|
),
|
|
1108
|
-
|
|
1281
|
+
writeAttribute('codeListValue', functionCode)
|
|
1109
1282
|
)
|
|
1110
1283
|
)
|
|
1111
1284
|
)
|
|
1112
1285
|
)
|
|
1113
1286
|
return pipe(
|
|
1114
|
-
|
|
1115
|
-
createChild('gmd:MD_Distribution'),
|
|
1287
|
+
createNestedElement('gmd:distributionInfo', 'gmd:MD_Distribution'),
|
|
1116
1288
|
appendTransferOptions
|
|
1117
1289
|
)
|
|
1118
1290
|
}
|
|
1119
1291
|
|
|
1120
|
-
export function
|
|
1121
|
-
record:
|
|
1292
|
+
export function appendDatasetOnlineResources(
|
|
1293
|
+
record: DatasetRecord,
|
|
1122
1294
|
rootEl: XmlElement
|
|
1123
1295
|
) {
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1296
|
+
appendChildren(
|
|
1297
|
+
...record.onlineResources.map((d) =>
|
|
1298
|
+
pipe(
|
|
1299
|
+
createDistributionInfo(),
|
|
1300
|
+
appendOnlineResource(
|
|
1301
|
+
d,
|
|
1302
|
+
appendOnlineResourceFormat,
|
|
1303
|
+
record.translations,
|
|
1304
|
+
record.defaultLanguage
|
|
1305
|
+
)
|
|
1306
|
+
)
|
|
1307
|
+
)
|
|
1127
1308
|
)(rootEl)
|
|
1128
1309
|
}
|
|
1129
1310
|
|
|
1311
|
+
export function appendServiceOnlineResources(
|
|
1312
|
+
record: ServiceRecord | ReuseRecord,
|
|
1313
|
+
rootEl: XmlElement
|
|
1314
|
+
) {
|
|
1315
|
+
appendChildren(...record.onlineResources.map(createOnlineResource))(rootEl)
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
export function writeOnlineResources(
|
|
1319
|
+
record: CatalogRecord,
|
|
1320
|
+
rootEl: XmlElement
|
|
1321
|
+
) {
|
|
1322
|
+
removeOnlineResources()(rootEl)
|
|
1323
|
+
|
|
1324
|
+
if (record.kind === 'dataset') {
|
|
1325
|
+
appendDatasetOnlineResources(record, rootEl)
|
|
1326
|
+
return
|
|
1327
|
+
}
|
|
1328
|
+
appendServiceOnlineResources(record, rootEl)
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1130
1331
|
export function writeTemporalExtents(
|
|
1131
1332
|
record: DatasetRecord,
|
|
1132
1333
|
rootEl: XmlElement
|
|
@@ -1138,20 +1339,18 @@ export function writeTemporalExtents(
|
|
|
1138
1339
|
appendChildren(
|
|
1139
1340
|
...record.temporalExtents.map((extent) =>
|
|
1140
1341
|
pipe(
|
|
1141
|
-
|
|
1142
|
-
createChild('gmd:EX_TemporalExtent'),
|
|
1342
|
+
createNestedElement('gmd:temporalElement', 'gmd:EX_TemporalExtent'),
|
|
1143
1343
|
appendChildren(
|
|
1144
1344
|
'start' in extent && 'end' in extent
|
|
1145
1345
|
? pipe(
|
|
1146
|
-
|
|
1147
|
-
createChild('gml:TimePeriod'),
|
|
1346
|
+
createNestedElement('gmd:extent', 'gml:TimePeriod'),
|
|
1148
1347
|
appendChildren(
|
|
1149
1348
|
pipe(
|
|
1150
1349
|
createElement('gml:beginPosition'),
|
|
1151
1350
|
pipe(
|
|
1152
1351
|
extent.start
|
|
1153
1352
|
? setTextContent(format(extent.start, 'yyyy-MM-dd'))
|
|
1154
|
-
:
|
|
1353
|
+
: writeAttribute('indeterminatePosition', 'unknown')
|
|
1155
1354
|
)
|
|
1156
1355
|
),
|
|
1157
1356
|
pipe(
|
|
@@ -1159,24 +1358,20 @@ export function writeTemporalExtents(
|
|
|
1159
1358
|
pipe(
|
|
1160
1359
|
extent.end
|
|
1161
1360
|
? setTextContent(format(extent.end, 'yyyy-MM-dd'))
|
|
1162
|
-
:
|
|
1361
|
+
: writeAttribute('indeterminatePosition', 'unknown')
|
|
1163
1362
|
)
|
|
1164
1363
|
)
|
|
1165
1364
|
)
|
|
1166
1365
|
)
|
|
1167
1366
|
: pipe(
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
: addAttribute('indeterminatePosition', 'unknown')
|
|
1177
|
-
)
|
|
1178
|
-
)
|
|
1179
|
-
)
|
|
1367
|
+
createNestedElement(
|
|
1368
|
+
'gmd:extent',
|
|
1369
|
+
'gml:TimeInstant',
|
|
1370
|
+
'gml:timePosition'
|
|
1371
|
+
),
|
|
1372
|
+
extent.start
|
|
1373
|
+
? setTextContent(format(extent.start, 'yyyy-MM-dd'))
|
|
1374
|
+
: writeAttribute('indeterminatePosition', 'unknown')
|
|
1180
1375
|
)
|
|
1181
1376
|
)
|
|
1182
1377
|
)
|
|
@@ -1184,3 +1379,128 @@ export function writeTemporalExtents(
|
|
|
1184
1379
|
)
|
|
1185
1380
|
)(rootEl)
|
|
1186
1381
|
}
|
|
1382
|
+
|
|
1383
|
+
export function writeSpatialExtents(record: DatasetRecord, rootEl: XmlElement) {
|
|
1384
|
+
const appendBoundingPolygon = (geometry?: Geometry) => {
|
|
1385
|
+
if (!geometry) return null
|
|
1386
|
+
return pipe(
|
|
1387
|
+
createElement('gmd:EX_BoundingPolygon'),
|
|
1388
|
+
appendChildren(
|
|
1389
|
+
pipe(
|
|
1390
|
+
createElement('gmd:polygon'),
|
|
1391
|
+
appendChildren(() => writeGeometry(geometry))
|
|
1392
|
+
)
|
|
1393
|
+
)
|
|
1394
|
+
)
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
const appendGeographicBoundingBox = (
|
|
1398
|
+
bbox?: [number, number, number, number]
|
|
1399
|
+
) => {
|
|
1400
|
+
if (!bbox) return null
|
|
1401
|
+
return pipe(
|
|
1402
|
+
createElement('gmd:EX_GeographicBoundingBox'),
|
|
1403
|
+
appendChildren(
|
|
1404
|
+
pipe(createElement('gmd:westBoundLongitude'), writeDecimal(bbox[0])),
|
|
1405
|
+
pipe(createElement('gmd:eastBoundLongitude'), writeDecimal(bbox[2])),
|
|
1406
|
+
pipe(createElement('gmd:southBoundLatitude'), writeDecimal(bbox[1])),
|
|
1407
|
+
pipe(createElement('gmd:northBoundLatitude'), writeDecimal(bbox[3]))
|
|
1408
|
+
)
|
|
1409
|
+
)
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
const appendGeographicDescription = (
|
|
1413
|
+
description?: string,
|
|
1414
|
+
translations?: FieldTranslation
|
|
1415
|
+
) => {
|
|
1416
|
+
if (!description) return null
|
|
1417
|
+
return pipe(
|
|
1418
|
+
createNestedElement(
|
|
1419
|
+
'gmd:EX_GeographicDescription',
|
|
1420
|
+
'gmd:geographicIdentifier',
|
|
1421
|
+
'gmd:MD_Identifier',
|
|
1422
|
+
'gmd:code'
|
|
1423
|
+
),
|
|
1424
|
+
writeLocalizedCharacterString(
|
|
1425
|
+
description,
|
|
1426
|
+
translations,
|
|
1427
|
+
record.defaultLanguage
|
|
1428
|
+
)
|
|
1429
|
+
)
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
pipe(
|
|
1433
|
+
findOrCreateIdentification(),
|
|
1434
|
+
findNestedChildOrCreate('gmd:extent', 'gmd:EX_Extent'),
|
|
1435
|
+
removeChildrenByName('gmd:geographicElement'),
|
|
1436
|
+
appendChildren(
|
|
1437
|
+
...record.spatialExtents.map((extent) =>
|
|
1438
|
+
pipe(
|
|
1439
|
+
createElement('gmd:geographicElement'),
|
|
1440
|
+
appendChildren(
|
|
1441
|
+
appendBoundingPolygon(extent.geometry),
|
|
1442
|
+
appendGeographicBoundingBox(extent.bbox),
|
|
1443
|
+
appendGeographicDescription(
|
|
1444
|
+
extent.description,
|
|
1445
|
+
extent.translations?.description
|
|
1446
|
+
)
|
|
1447
|
+
)
|
|
1448
|
+
)
|
|
1449
|
+
)
|
|
1450
|
+
)
|
|
1451
|
+
)(rootEl)
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
export function writeLanguages(record: DatasetRecord, rootEl: XmlElement) {
|
|
1455
|
+
// clear existing
|
|
1456
|
+
removeChildrenByName('gmd:locale')(rootEl)
|
|
1457
|
+
|
|
1458
|
+
// do not write down languages if there is nothing else than the default one
|
|
1459
|
+
if (!record.otherLanguages?.length) {
|
|
1460
|
+
return
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
const createLanguageEl = (lang: LanguageCode) =>
|
|
1464
|
+
pipe(
|
|
1465
|
+
createNestedElement('gmd:locale', 'gmd:PT_Locale'),
|
|
1466
|
+
writeAttribute('id', lang.toUpperCase()),
|
|
1467
|
+
createNestedChild('gmd:languageCode', 'gmd:LanguageCode'),
|
|
1468
|
+
writeAttribute('codeList', 'http://www.loc.gov/standards/iso639-2/'),
|
|
1469
|
+
writeAttribute('codeListValue', LANG_2_TO_3_MAPPER[lang])
|
|
1470
|
+
)
|
|
1471
|
+
|
|
1472
|
+
// add new languages (only if other than default one)
|
|
1473
|
+
appendChildren(
|
|
1474
|
+
createLanguageEl(record.defaultLanguage),
|
|
1475
|
+
...record.otherLanguages.map(createLanguageEl)
|
|
1476
|
+
)(rootEl)
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
export function writeDefaultLanguage(
|
|
1480
|
+
record: DatasetRecord,
|
|
1481
|
+
rootEl: XmlElement
|
|
1482
|
+
) {
|
|
1483
|
+
const lang3 = LANG_2_TO_3_MAPPER[record.defaultLanguage.toLowerCase()]
|
|
1484
|
+
return pipe(
|
|
1485
|
+
findNestedChildOrCreate('gmd:language', 'gmd:LanguageCode'),
|
|
1486
|
+
writeAttribute('codeList', 'http://www.loc.gov/standards/iso639-2/'),
|
|
1487
|
+
writeAttribute('codeListValue', lang3)
|
|
1488
|
+
)(rootEl)
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
export function writeResourceIdentifier(
|
|
1492
|
+
record: DatasetRecord,
|
|
1493
|
+
rootEl: XmlElement
|
|
1494
|
+
) {
|
|
1495
|
+
pipe(
|
|
1496
|
+
findOrCreateIdentification(),
|
|
1497
|
+
findNestedChildOrCreate('gmd:citation', 'gmd:CI_Citation'),
|
|
1498
|
+
removeChildrenByName('gmd:identifier'),
|
|
1499
|
+
record.resourceIdentifier
|
|
1500
|
+
? pipe(
|
|
1501
|
+
createNestedChild('gmd:identifier', 'gmd:MD_Identifier', 'gmd:code'),
|
|
1502
|
+
writeCharacterString(record.resourceIdentifier)
|
|
1503
|
+
)
|
|
1504
|
+
: noop
|
|
1505
|
+
)(rootEl)
|
|
1506
|
+
}
|