geonetwork-ui 2.2.0-dev.9ae0a68b → 2.2.0-dev.9d7dfa2e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/atomic-operations.mjs +28 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +96 -59
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.mjs +8 -4
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/codelists/keyword.mapper.mjs +14 -0
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/converter.mjs +25 -17
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +55 -23
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +52 -32
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +2 -2
- package/esm2022/libs/api/repository/src/lib/gn4/index.mjs +3 -1
- package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.mjs +10 -3
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +14 -5
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +33 -8
- package/esm2022/libs/api/repository/src/lib/gn4/selection/selection.service.mjs +13 -26
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/search/aggregation.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/search/field.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/index.mjs +2 -1
- package/esm2022/libs/common/domain/src/lib/model/search/search.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
- package/esm2022/libs/feature/catalog/src/lib/my-org/my-org.service.mjs +4 -10
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +5 -4
- package/esm2022/libs/feature/editor/src/lib/record-form/record-form.component.mjs +5 -3
- package/esm2022/libs/feature/map/src/index.mjs +2 -1
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +1 -1
- package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +106 -0
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +64 -0
- package/esm2022/libs/feature/map/src/lib/constant/index.mjs +2 -1
- package/esm2022/libs/feature/map/src/lib/constant/projections.mjs +2 -0
- package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +23 -3
- package/esm2022/libs/feature/map/src/lib/geocoding/geocoding.component.mjs +93 -0
- package/esm2022/libs/feature/map/src/lib/geocoding.service.mjs +40 -0
- package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +5 -3
- package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +11 -1
- package/esm2022/libs/feature/map/src/lib/utils/index.mjs +1 -3
- package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +60 -29
- package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +13 -13
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +29 -20
- package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +2 -2
- package/esm2022/libs/feature/search/src/index.mjs +4 -1
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +3 -3
- package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +2 -6
- package/esm2022/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.mjs +1 -1
- package/esm2022/libs/feature/search/src/lib/filter-geometry.token.mjs +4 -0
- package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +7 -3
- package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -0
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +128 -0
- package/esm2022/libs/feature/search/src/lib/state/effects.mjs +6 -4
- package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +3 -2
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +41 -26
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +11 -9
- package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +3 -3
- package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +1 -1
- package/esm2022/libs/ui/elements/src/index.mjs +3 -1
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +27 -0
- package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/max-lines/max-lines.component.mjs +5 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +47 -17
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +3 -4
- package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +9 -6
- package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/thumbnail/thumbnail.component.mjs +8 -4
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +12 -5
- package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +46 -0
- package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +12 -7
- package/esm2022/libs/ui/layout/src/index.mjs +3 -1
- package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.mjs +36 -0
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +37 -0
- package/esm2022/libs/ui/search/src/index.mjs +1 -2
- package/esm2022/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +9 -10
- package/esm2022/libs/util/i18n/src/index.mjs +1 -2
- package/esm2022/libs/util/i18n/src/lib/i18n.constants.mjs +18 -1
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +29 -13
- package/esm2022/libs/util/shared/src/lib/utils/index.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/utils/temporal-extent-union.mjs +32 -0
- package/esm2022/translations/de.json +129 -112
- package/esm2022/translations/en.json +58 -41
- package/esm2022/translations/es.json +36 -19
- package/esm2022/translations/fr.json +52 -35
- package/esm2022/translations/it.json +45 -28
- package/esm2022/translations/nl.json +37 -20
- package/esm2022/translations/pt.json +36 -19
- package/fesm2022/geonetwork-ui.mjs +1642 -972
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts +3 -0
- package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts +0 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +4 -5
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/codelists/keyword.mapper.d.ts +3 -0
- package/libs/api/metadata-converter/src/lib/iso19139/codelists/keyword.mapper.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/iso19139/converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +7 -6
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +4 -3
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/index.d.ts +2 -0
- package/libs/api/repository/src/lib/gn4/index.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts +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 +9 -2
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/selection/selection.service.d.ts +4 -5
- package/libs/api/repository/src/lib/gn4/selection/selection.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +31 -17
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/search/aggregation.model.d.ts +1 -1
- package/libs/common/domain/src/lib/model/search/aggregation.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/search/field.model.d.ts +2 -0
- package/libs/common/domain/src/lib/model/search/field.model.d.ts.map +1 -0
- package/libs/common/domain/src/lib/model/search/filter.model.d.ts +1 -1
- package/libs/common/domain/src/lib/model/search/filter.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/search/index.d.ts +1 -0
- package/libs/common/domain/src/lib/model/search/index.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/search/search.model.d.ts +2 -3
- package/libs/common/domain/src/lib/model/search/search.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.d.ts +1 -0
- package/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/platform.service.interface.d.ts +1 -1
- package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
- package/libs/feature/catalog/src/lib/my-org/my-org.service.d.ts +0 -1
- package/libs/feature/catalog/src/lib/my-org/my-org.service.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +15 -2
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/record-form/record-form.component.d.ts.map +1 -1
- package/libs/feature/map/src/index.d.ts +1 -0
- package/libs/feature/map/src/index.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts +22 -0
- package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -0
- package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +22 -0
- package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -0
- package/libs/feature/map/src/lib/constant/index.d.ts +1 -0
- package/libs/feature/map/src/lib/constant/index.d.ts.map +1 -1
- package/libs/feature/map/src/lib/constant/projections.d.ts.map +1 -0
- package/libs/feature/map/src/lib/feature-map.module.d.ts +15 -12
- 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 +25 -0
- package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts.map +1 -0
- package/libs/feature/map/src/lib/geocoding.service.d.ts +18 -0
- package/libs/feature/map/src/lib/geocoding.service.d.ts.map +1 -0
- package/libs/feature/map/src/lib/map-context/map-context.service.d.ts +2 -0
- package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +1 -1
- package/libs/feature/map/src/lib/utils/index.d.ts +0 -2
- package/libs/feature/map/src/lib/utils/index.d.ts.map +1 -1
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts +13 -11
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +1 -3
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/search/src/index.d.ts +3 -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 +3 -3
- 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 +0 -4
- 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 +3 -2
- package/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/filter-geometry.token.d.ts +4 -0
- package/libs/feature/search/src/lib/filter-geometry.token.d.ts.map +1 -0
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts +1 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/record-url.token.d.ts +3 -0
- package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -0
- package/libs/feature/search/src/lib/results-table/results-table.component.d.ts +33 -0
- package/libs/feature/search/src/lib/results-table/results-table.component.d.ts.map +1 -0
- package/libs/feature/search/src/lib/state/effects.d.ts.map +1 -1
- package/libs/feature/search/src/lib/state/search.facade.d.ts +1 -1
- package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.d.ts +21 -8
- package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
- package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts +1 -1
- package/libs/ui/elements/src/index.d.ts +2 -0
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.d.ts +10 -0
- package/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/max-lines/max-lines.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +16 -5
- 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.map +1 -1
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +3 -1
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts +3 -2
- package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +3 -2
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/index.d.ts +1 -0
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/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/editable-label/editable-label.directive.d.ts +13 -0
- package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +40 -39
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/layout/src/index.d.ts +2 -0
- package/libs/ui/layout/src/index.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.d.ts +14 -0
- package/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +15 -0
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -0
- package/libs/ui/search/src/index.d.ts +0 -1
- package/libs/ui/search/src/index.d.ts.map +1 -1
- package/libs/ui/search/src/lib/ui-search.module.d.ts +15 -15
- package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
- package/libs/util/i18n/src/index.d.ts +0 -1
- package/libs/util/i18n/src/index.d.ts.map +1 -1
- package/libs/util/i18n/src/lib/i18n.constants.d.ts +17 -0
- package/libs/util/i18n/src/lib/i18n.constants.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +19 -7
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/index.d.ts +1 -0
- package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/temporal-extent-union.d.ts +5 -0
- package/libs/util/shared/src/lib/utils/temporal-extent-union.d.ts.map +1 -0
- package/package.json +4 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +63 -8
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +57 -9
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +229 -24
- package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +32 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +140 -74
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.ts +7 -3
- package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +4 -5
- package/src/libs/api/metadata-converter/src/lib/iso19139/codelists/keyword.mapper.ts +16 -0
- package/src/libs/api/metadata-converter/src/lib/iso19139/converter.ts +30 -21
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +120 -63
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +177 -97
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +1 -1
- package/src/libs/api/repository/src/lib/gn4/index.ts +2 -0
- package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.ts +22 -2
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +15 -4
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +47 -8
- package/src/libs/api/repository/src/lib/gn4/selection/selection.service.ts +14 -38
- package/src/libs/common/domain/src/lib/index.ts +2 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +37 -21
- package/src/libs/common/domain/src/lib/model/search/aggregation.model.ts +1 -1
- package/src/libs/common/domain/src/lib/model/search/field.model.ts +1 -0
- package/src/libs/common/domain/src/lib/model/search/filter.model.ts +1 -1
- package/src/libs/common/domain/src/lib/model/search/index.ts +1 -0
- package/src/libs/common/domain/src/lib/model/search/search.model.ts +2 -2
- package/src/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.ts +1 -0
- package/src/libs/common/domain/src/lib/model/user/index.ts +1 -0
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +1 -4
- package/src/libs/common/fixtures/src/lib/elasticsearch/full-response.ts +1 -1
- package/src/libs/common/fixtures/src/lib/gn4/groups.fixtures.ts +1 -1
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +52 -10
- package/src/libs/feature/catalog/src/lib/my-org/my-org.service.ts +4 -16
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +8 -5
- package/src/libs/feature/editor/src/lib/record-form/record-form.component.ts +2 -1
- package/src/libs/feature/map/src/index.ts +1 -0
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.css +0 -0
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.html +21 -0
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +107 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.css +0 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +37 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +64 -0
- package/src/libs/feature/map/src/lib/constant/index.ts +1 -0
- package/src/libs/feature/map/src/lib/feature-map.module.ts +12 -0
- package/src/libs/feature/map/src/lib/geocoding/geocoding.component.css +0 -0
- package/src/libs/feature/map/src/lib/geocoding/geocoding.component.html +39 -0
- package/src/libs/feature/map/src/lib/geocoding/geocoding.component.ts +99 -0
- package/src/libs/feature/map/src/lib/geocoding.service.ts +59 -0
- package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.html +6 -2
- package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +16 -0
- package/src/libs/feature/map/src/lib/utils/index.ts +0 -2
- package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +85 -50
- package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +12 -12
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +18 -3
- package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +1 -1
- package/src/libs/feature/search/src/index.ts +3 -0
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +3 -4
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +1 -1
- package/src/libs/feature/search/src/lib/feature-search.module.ts +1 -10
- package/src/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts +4 -4
- package/src/libs/feature/search/src/lib/filter-geometry.token.ts +7 -0
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +9 -3
- package/src/libs/feature/search/src/lib/record-url.token.ts +4 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +1 -1
- package/src/libs/feature/search/src/lib/results-table/results-table.component.css +0 -0
- package/src/libs/feature/search/src/lib/results-table/results-table.component.html +112 -0
- package/src/libs/feature/search/src/lib/results-table/results-table.component.ts +164 -0
- package/src/libs/feature/search/src/lib/state/effects.ts +5 -4
- package/src/libs/feature/search/src/lib/state/search.facade.ts +2 -1
- package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +21 -16
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +43 -34
- package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
- package/src/libs/ui/elements/src/index.ts +2 -0
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +4 -1
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.css +0 -0
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +30 -0
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts +15 -0
- package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.css +5 -0
- package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +39 -0
- package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +58 -0
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +54 -54
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.ts +1 -0
- package/src/libs/ui/elements/src/lib/max-lines/max-lines.component.html +5 -1
- package/src/libs/ui/elements/src/lib/max-lines/max-lines.component.ts +1 -0
- package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +3 -3
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +4 -0
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +207 -63
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +51 -10
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +2 -3
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +5 -5
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +12 -4
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +1 -1
- package/src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.html +2 -2
- package/src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.ts +4 -0
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +5 -1
- package/src/libs/ui/inputs/src/index.ts +1 -0
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/button/button.component.css +1 -1
- package/src/libs/ui/inputs/src/lib/button/button.component.ts +1 -0
- package/src/libs/ui/inputs/src/lib/checkbox/checkbox.component.html +0 -1
- package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +2 -2
- package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +3 -1
- package/src/libs/ui/inputs/src/lib/editable-label/editable-label.directive.ts +48 -0
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.css +3 -0
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +1 -0
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +5 -2
- package/src/libs/ui/layout/src/index.ts +2 -0
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +1 -1
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -0
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.css +0 -0
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.html +1 -0
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.ts +33 -0
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.css +15 -0
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +54 -0
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +42 -0
- package/src/libs/ui/search/src/index.ts +0 -1
- package/src/libs/ui/search/src/lib/ui-search.module.ts +2 -3
- package/src/libs/util/i18n/src/index.ts +0 -1
- package/src/libs/util/i18n/src/lib/i18n.constants.ts +18 -0
- package/src/libs/util/shared/src/lib/links/link-utils.ts +34 -11
- package/src/libs/util/shared/src/lib/utils/index.ts +1 -0
- package/src/libs/util/shared/src/lib/utils/temporal-extent-union.ts +32 -0
- package/tailwind.base.css +2 -2
- package/translations/de.json +129 -112
- package/translations/en.json +58 -41
- package/translations/es.json +36 -19
- package/translations/fr.json +52 -35
- package/translations/it.json +45 -28
- package/translations/nl.json +37 -20
- package/translations/pt.json +36 -19
- package/translations/sk.json +37 -20
- package/esm2022/libs/feature/map/src/lib/utils/map-utils-wms.service.mjs +0 -55
- package/esm2022/libs/feature/map/src/lib/utils/projections.mjs +0 -2
- package/esm2022/libs/ui/search/src/lib/record-table/record-table.component.mjs +0 -145
- package/esm2022/libs/util/i18n/src/lib/testing/test.translate.loader.mjs +0 -24
- package/esm2022/libs/util/i18n/src/lib/testing/test.translate.module.mjs +0 -109
- package/esm2022/libs/util/i18n/src/lib/testing/translations.model.mjs +0 -6
- package/libs/feature/map/src/lib/utils/map-utils-wms.service.d.ts +0 -17
- package/libs/feature/map/src/lib/utils/map-utils-wms.service.d.ts.map +0 -1
- package/libs/feature/map/src/lib/utils/projections.d.ts.map +0 -1
- package/libs/ui/search/src/lib/record-table/record-table.component.d.ts +0 -31
- package/libs/ui/search/src/lib/record-table/record-table.component.d.ts.map +0 -1
- package/libs/util/i18n/src/lib/testing/test.translate.loader.d.ts +0 -17
- package/libs/util/i18n/src/lib/testing/test.translate.loader.d.ts.map +0 -1
- package/libs/util/i18n/src/lib/testing/test.translate.module.d.ts +0 -131
- package/libs/util/i18n/src/lib/testing/test.translate.module.d.ts.map +0 -1
- package/libs/util/i18n/src/lib/testing/translations.model.d.ts +0 -21
- package/libs/util/i18n/src/lib/testing/translations.model.d.ts.map +0 -1
- package/src/libs/feature/map/src/lib/utils/map-utils-wms.service.ts +0 -58
- package/src/libs/ui/search/src/lib/record-table/record-table.component.css +0 -7
- package/src/libs/ui/search/src/lib/record-table/record-table.component.html +0 -215
- package/src/libs/ui/search/src/lib/record-table/record-table.component.ts +0 -149
- package/src/libs/util/i18n/src/lib/testing/test.translate.loader.ts +0 -26
- package/src/libs/util/i18n/src/lib/testing/test.translate.module.ts +0 -235
- package/src/libs/util/i18n/src/lib/testing/translations.model.ts +0 -28
- /package/libs/feature/map/src/lib/{utils → constant}/projections.d.ts +0 -0
- /package/src/libs/feature/map/src/lib/{utils → constant}/projections.ts +0 -0
|
@@ -56,15 +56,13 @@ interface SpecificationConformance {
|
|
|
56
56
|
pass: BooleanString
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
type Keyword = MultilingualField
|
|
60
|
-
type Keywords = Keyword[]
|
|
61
59
|
type ThesaurusName = string
|
|
62
|
-
interface Thesaurus {
|
|
60
|
+
export interface Thesaurus {
|
|
63
61
|
id?: string
|
|
64
62
|
title?: string
|
|
65
63
|
theme?: string
|
|
66
64
|
link?: string
|
|
67
|
-
keywords:
|
|
65
|
+
keywords: MultilingualField[]
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
export interface Link {
|
|
@@ -152,6 +150,7 @@ export type MetadataObject = Partial<{
|
|
|
152
150
|
pointOfContactOrg: string
|
|
153
151
|
pointOfContactOrgForResource: string
|
|
154
152
|
popularity: number
|
|
153
|
+
publicationDateForResource: string
|
|
155
154
|
rating: string
|
|
156
155
|
record: string
|
|
157
156
|
recordGroup: string
|
|
@@ -175,7 +174,7 @@ export type MetadataObject = Partial<{
|
|
|
175
174
|
specificationConformance: MaybeArray<SpecificationConformance>
|
|
176
175
|
standardNameObject: MultilingualField
|
|
177
176
|
standardVersionObject: MultilingualField
|
|
178
|
-
tag:
|
|
177
|
+
tag: MultilingualField[]
|
|
179
178
|
tagNumber: string
|
|
180
179
|
userSavedCount: string
|
|
181
180
|
userinfo: string
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { KeywordType } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
2
|
+
|
|
3
|
+
export function getKeywordTypeFromKeywordTypeCode(
|
|
4
|
+
typeCode: string
|
|
5
|
+
): KeywordType {
|
|
6
|
+
if (!typeCode) return 'other'
|
|
7
|
+
switch (typeCode) {
|
|
8
|
+
case 'theme':
|
|
9
|
+
case 'place':
|
|
10
|
+
case 'temporal':
|
|
11
|
+
case 'other':
|
|
12
|
+
return typeCode
|
|
13
|
+
default:
|
|
14
|
+
return 'other'
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
} from '../xml-utils'
|
|
13
13
|
import {
|
|
14
14
|
writeAbstract,
|
|
15
|
-
writeAccessConstraints,
|
|
16
15
|
writeContacts,
|
|
17
16
|
writeDatasetCreated,
|
|
18
17
|
writeDatasetUpdated,
|
|
@@ -20,22 +19,23 @@ import {
|
|
|
20
19
|
writeGraphicOverviews,
|
|
21
20
|
writeKeywords,
|
|
22
21
|
writeKind,
|
|
22
|
+
writeLegalConstraints,
|
|
23
23
|
writeLicenses,
|
|
24
24
|
writeLineage,
|
|
25
25
|
writeOnlineResources,
|
|
26
|
+
writeOtherConstraints,
|
|
26
27
|
writeOwnerOrganization,
|
|
27
28
|
writeRecordUpdated,
|
|
29
|
+
writeSecurityConstraints,
|
|
28
30
|
writeSpatialRepresentation,
|
|
29
31
|
writeStatus,
|
|
30
|
-
|
|
32
|
+
writeTopics,
|
|
31
33
|
writeTitle,
|
|
32
34
|
writeUniqueIdentifier,
|
|
33
35
|
writeUpdateFrequency,
|
|
34
|
-
writeUseLimitations,
|
|
35
36
|
} from './write-parts'
|
|
36
37
|
import {
|
|
37
38
|
readAbstract,
|
|
38
|
-
readAccessConstraints,
|
|
39
39
|
readContacts,
|
|
40
40
|
readDatasetCreated,
|
|
41
41
|
readDatasetUpdated,
|
|
@@ -43,21 +43,23 @@ import {
|
|
|
43
43
|
readIsoTopics,
|
|
44
44
|
readKeywords,
|
|
45
45
|
readKind,
|
|
46
|
+
readLegalConstraints,
|
|
46
47
|
readLicenses,
|
|
47
48
|
readLineage,
|
|
48
49
|
readOnlineResources,
|
|
50
|
+
readOtherConstraints,
|
|
49
51
|
readOverviews,
|
|
50
52
|
readOwnerOrganization,
|
|
51
53
|
readRecordUpdated,
|
|
54
|
+
readRecordPublished,
|
|
55
|
+
readSecurityConstraints,
|
|
52
56
|
readSpatialExtents,
|
|
53
57
|
readSpatialRepresentation,
|
|
54
58
|
readStatus,
|
|
55
59
|
readTemporalExtents,
|
|
56
|
-
readThemes,
|
|
57
60
|
readTitle,
|
|
58
61
|
readUniqueIdentifier,
|
|
59
62
|
readUpdateFrequency,
|
|
60
|
-
readUseLimitations,
|
|
61
63
|
} from './read-parts'
|
|
62
64
|
import { isEqual } from '../convert-utils'
|
|
63
65
|
|
|
@@ -73,16 +75,15 @@ export function toModel(xml: string): CatalogRecord {
|
|
|
73
75
|
const contacts = readContacts(rootEl)
|
|
74
76
|
const recordUpdated = readRecordUpdated(rootEl)
|
|
75
77
|
const recordCreated = recordUpdated
|
|
78
|
+
const recordPublished = readRecordPublished(rootEl)
|
|
76
79
|
const keywords = readKeywords(rootEl)
|
|
77
|
-
const
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
+
const topics = readIsoTopics(rootEl)
|
|
81
|
+
const legalConstraints = readLegalConstraints(rootEl)
|
|
82
|
+
const otherConstraints = readOtherConstraints(rootEl)
|
|
83
|
+
const securityConstraints = readSecurityConstraints(rootEl)
|
|
80
84
|
const licenses = readLicenses(rootEl)
|
|
81
85
|
const overviews = readOverviews(rootEl)
|
|
82
86
|
|
|
83
|
-
// not used yet
|
|
84
|
-
const isoTopics = readIsoTopics(rootEl)
|
|
85
|
-
|
|
86
87
|
if (kind === 'dataset') {
|
|
87
88
|
const status = readStatus(rootEl)
|
|
88
89
|
const datasetCreated = readDatasetCreated(rootEl)
|
|
@@ -97,8 +98,10 @@ export function toModel(xml: string): CatalogRecord {
|
|
|
97
98
|
return {
|
|
98
99
|
uniqueIdentifier,
|
|
99
100
|
kind,
|
|
101
|
+
languages: [],
|
|
100
102
|
recordCreated,
|
|
101
103
|
recordUpdated,
|
|
104
|
+
recordPublished,
|
|
102
105
|
status,
|
|
103
106
|
title,
|
|
104
107
|
abstract,
|
|
@@ -106,10 +109,11 @@ export function toModel(xml: string): CatalogRecord {
|
|
|
106
109
|
contacts,
|
|
107
110
|
contactsForResource: [], // FIXME: is that really useful??
|
|
108
111
|
keywords,
|
|
109
|
-
|
|
110
|
-
accessConstraints,
|
|
111
|
-
useLimitations,
|
|
112
|
+
topics,
|
|
112
113
|
licenses,
|
|
114
|
+
legalConstraints,
|
|
115
|
+
securityConstraints,
|
|
116
|
+
otherConstraints,
|
|
113
117
|
...(datasetCreated && { datasetCreated }),
|
|
114
118
|
...(datasetUpdated && { datasetUpdated }),
|
|
115
119
|
lineage,
|
|
@@ -125,17 +129,20 @@ export function toModel(xml: string): CatalogRecord {
|
|
|
125
129
|
return {
|
|
126
130
|
uniqueIdentifier,
|
|
127
131
|
kind,
|
|
132
|
+
languages: [],
|
|
128
133
|
recordCreated,
|
|
129
134
|
recordUpdated,
|
|
135
|
+
recordPublished,
|
|
130
136
|
title,
|
|
131
137
|
abstract,
|
|
132
138
|
ownerOrganization,
|
|
133
139
|
contacts,
|
|
134
140
|
keywords,
|
|
135
|
-
|
|
136
|
-
accessConstraints,
|
|
137
|
-
useLimitations,
|
|
141
|
+
topics,
|
|
138
142
|
licenses,
|
|
143
|
+
legalConstraints,
|
|
144
|
+
securityConstraints,
|
|
145
|
+
otherConstraints,
|
|
139
146
|
overviews,
|
|
140
147
|
onlineResources,
|
|
141
148
|
} as ServiceRecord
|
|
@@ -163,10 +170,12 @@ export function toXml(record: CatalogRecord, originalXml?: string): string {
|
|
|
163
170
|
writeAbstract(record, rootEl)
|
|
164
171
|
fieldChanged('contacts') && writeContacts(record, rootEl)
|
|
165
172
|
fieldChanged('keywords') && writeKeywords(record, rootEl)
|
|
166
|
-
fieldChanged('
|
|
167
|
-
fieldChanged('
|
|
173
|
+
fieldChanged('topics') && writeTopics(record, rootEl)
|
|
174
|
+
fieldChanged('legalConstraints') && writeLegalConstraints(record, rootEl)
|
|
175
|
+
fieldChanged('securityConstraints') &&
|
|
176
|
+
writeSecurityConstraints(record, rootEl)
|
|
168
177
|
fieldChanged('licenses') && writeLicenses(record, rootEl)
|
|
169
|
-
fieldChanged('
|
|
178
|
+
fieldChanged('otherConstraints') && writeOtherConstraints(record, rootEl)
|
|
170
179
|
|
|
171
180
|
if (record.kind === 'dataset') {
|
|
172
181
|
writeStatus(record, rootEl)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
AccessConstraintType,
|
|
2
|
+
Constraint,
|
|
4
3
|
DatasetDistribution,
|
|
5
4
|
DatasetSpatialExtent,
|
|
6
5
|
DatasetTemporalExtent,
|
|
7
6
|
GraphicOverview,
|
|
8
7
|
Individual,
|
|
9
|
-
|
|
8
|
+
Keyword,
|
|
9
|
+
KeywordThesaurus,
|
|
10
10
|
Organization,
|
|
11
11
|
RecordKind,
|
|
12
12
|
RecordStatus,
|
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
} from '../function-utils'
|
|
42
42
|
import { getRoleFromRoleCode } from './codelists/role.mapper'
|
|
43
43
|
import { matchMimeType, matchProtocol } from '../common/distribution.mapper'
|
|
44
|
+
import { getKeywordTypeFromKeywordTypeCode } from './codelists/keyword.mapper'
|
|
44
45
|
|
|
45
46
|
function extractCharacterString(): ChainableFunction<XmlElement, string> {
|
|
46
47
|
return pipe(
|
|
@@ -183,59 +184,69 @@ function extractStatus(): ChainableFunction<XmlElement, RecordStatus> {
|
|
|
183
184
|
}
|
|
184
185
|
|
|
185
186
|
// from gmd:resourceConstraints
|
|
186
|
-
function
|
|
187
|
+
function extractLegalConstraints(): ChainableFunction<
|
|
187
188
|
XmlElement,
|
|
188
|
-
Array<
|
|
189
|
+
Array<Constraint>
|
|
189
190
|
> {
|
|
190
|
-
|
|
191
|
+
return pipe(
|
|
191
192
|
findChildrenElement('gmd:MD_LegalConstraints', false),
|
|
192
193
|
filterArray(
|
|
193
194
|
pipe(
|
|
194
195
|
findChildrenElement('gmd:MD_RestrictionCode'),
|
|
195
196
|
mapArray(readAttribute('codeListValue')),
|
|
196
|
-
map(
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
197
|
+
map((values) => values.indexOf('license') === -1)
|
|
198
|
+
)
|
|
199
|
+
),
|
|
200
|
+
mapArray(
|
|
201
|
+
combine(
|
|
202
|
+
findChildrenElement('gmd:otherConstraints'),
|
|
203
|
+
findChildrenElement('gmd:useLimitation')
|
|
201
204
|
)
|
|
202
205
|
),
|
|
203
|
-
mapArray(findChildrenElement('gmd:otherConstraints')),
|
|
204
206
|
flattenArray(),
|
|
205
|
-
|
|
206
|
-
mapArray((
|
|
207
|
+
flattenArray(),
|
|
208
|
+
mapArray(combine(extractCharacterString(), extractUrl())),
|
|
209
|
+
mapArray(([text, url]) => ({
|
|
210
|
+
...(url && { url }),
|
|
207
211
|
text,
|
|
208
|
-
type: 'other' as AccessConstraintType,
|
|
209
212
|
}))
|
|
210
213
|
)
|
|
211
|
-
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// from gmd:resourceConstraints
|
|
217
|
+
function extractSecurityConstraints(): ChainableFunction<
|
|
218
|
+
XmlElement,
|
|
219
|
+
Array<Constraint>
|
|
220
|
+
> {
|
|
221
|
+
return pipe(
|
|
212
222
|
findNestedElements('gmd:MD_SecurityConstraints', 'gmd:useLimitation'),
|
|
213
|
-
|
|
214
|
-
mapArray((
|
|
223
|
+
flattenArray(),
|
|
224
|
+
mapArray(combine(extractCharacterString(), extractUrl())),
|
|
225
|
+
mapArray(([text, url]) => ({
|
|
226
|
+
...(url && { url }),
|
|
215
227
|
text,
|
|
216
|
-
type: 'security' as AccessConstraintType,
|
|
217
228
|
}))
|
|
218
229
|
)
|
|
219
|
-
return pipe(
|
|
220
|
-
combine(getOtherConstraints, getSecurityConstraints),
|
|
221
|
-
flattenArray()
|
|
222
|
-
)
|
|
223
230
|
}
|
|
224
231
|
|
|
225
232
|
// from gmd:resourceConstraints
|
|
226
|
-
function
|
|
233
|
+
function extractOtherConstraints(): ChainableFunction<
|
|
234
|
+
XmlElement,
|
|
235
|
+
Array<Constraint>
|
|
236
|
+
> {
|
|
227
237
|
return pipe(
|
|
228
|
-
|
|
229
|
-
findNestedElements('gmd:MD_Constraints', 'gmd:useLimitation'),
|
|
230
|
-
findNestedElements('gmd:MD_LegalConstraints', 'gmd:useLimitation')
|
|
231
|
-
),
|
|
238
|
+
findNestedElements('gmd:MD_Constraints', 'gmd:useLimitation'),
|
|
232
239
|
flattenArray(),
|
|
233
|
-
mapArray(extractCharacterString())
|
|
240
|
+
mapArray(combine(extractCharacterString(), extractUrl())),
|
|
241
|
+
mapArray(([text, url]) => ({
|
|
242
|
+
...(url && { url }),
|
|
243
|
+
text,
|
|
244
|
+
}))
|
|
234
245
|
)
|
|
235
246
|
}
|
|
236
247
|
|
|
237
248
|
// from gmd:resourceConstraints
|
|
238
|
-
function extractLicenses(): ChainableFunction<XmlElement, Array<
|
|
249
|
+
function extractLicenses(): ChainableFunction<XmlElement, Array<Constraint>> {
|
|
239
250
|
return pipe(
|
|
240
251
|
findChildrenElement('gmd:MD_LegalConstraints', false),
|
|
241
252
|
filterArray(
|
|
@@ -246,15 +257,18 @@ function extractLicenses(): ChainableFunction<XmlElement, Array<License>> {
|
|
|
246
257
|
)
|
|
247
258
|
),
|
|
248
259
|
mapArray(
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
map(([text, url]) => ({
|
|
253
|
-
...(url && { url }),
|
|
254
|
-
text,
|
|
255
|
-
}))
|
|
260
|
+
combine(
|
|
261
|
+
findChildrenElement('gmd:otherConstraints'),
|
|
262
|
+
findChildrenElement('gmd:useLimitation')
|
|
256
263
|
)
|
|
257
|
-
)
|
|
264
|
+
),
|
|
265
|
+
flattenArray(),
|
|
266
|
+
flattenArray(),
|
|
267
|
+
mapArray(combine(extractCharacterString(), extractUrl())),
|
|
268
|
+
mapArray(([text, url]) => ({
|
|
269
|
+
...(url && { url }),
|
|
270
|
+
text,
|
|
271
|
+
}))
|
|
258
272
|
)
|
|
259
273
|
}
|
|
260
274
|
|
|
@@ -436,7 +450,7 @@ function findIdentification() {
|
|
|
436
450
|
}
|
|
437
451
|
}
|
|
438
452
|
|
|
439
|
-
function extractCitationDate(type: 'creation' | 'revision') {
|
|
453
|
+
function extractCitationDate(type: 'creation' | 'revision' | 'publication') {
|
|
440
454
|
return pipe(
|
|
441
455
|
findIdentification(),
|
|
442
456
|
findNestedElements('gmd:citation', 'gmd:CI_Citation', 'gmd:date'),
|
|
@@ -503,6 +517,10 @@ export function readRecordUpdated(rootEl: XmlElement): Date {
|
|
|
503
517
|
return pipe(findChildElement('gmd:dateStamp'), extractDateTime())(rootEl)
|
|
504
518
|
}
|
|
505
519
|
|
|
520
|
+
export function readRecordPublished(rootEl: XmlElement): Date {
|
|
521
|
+
return pipe(findChildElement('gmd:dateStamp'), extractDateTime())(rootEl)
|
|
522
|
+
}
|
|
523
|
+
|
|
506
524
|
export function readTitle(rootEl: XmlElement): string {
|
|
507
525
|
return pipe(
|
|
508
526
|
findIdentification(),
|
|
@@ -541,29 +559,60 @@ export function readContacts(rootEl: XmlElement): Individual[] {
|
|
|
541
559
|
)(rootEl)
|
|
542
560
|
}
|
|
543
561
|
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
)
|
|
554
|
-
),
|
|
555
|
-
mapArray(findChildrenElement('gmd:keyword')),
|
|
556
|
-
flattenArray(),
|
|
557
|
-
mapArray(extractCharacterString())
|
|
562
|
+
// from gmd:thesaurusName
|
|
563
|
+
function readThesaurus(rootEl: XmlElement): KeywordThesaurus {
|
|
564
|
+
if (!rootEl) return null
|
|
565
|
+
|
|
566
|
+
const findIdentifier = findNestedElement(
|
|
567
|
+
'gmd:CI_Citation',
|
|
568
|
+
'gmd:identifier',
|
|
569
|
+
'gmd:MD_Identifier',
|
|
570
|
+
'gmd:code'
|
|
558
571
|
)
|
|
572
|
+
const id = pipe(findIdentifier, extractCharacterString())(rootEl)
|
|
573
|
+
const url = pipe(findIdentifier, extractUrl())(rootEl)
|
|
574
|
+
const name = pipe(
|
|
575
|
+
findNestedElement('gmd:CI_Citation', 'gmd:title'),
|
|
576
|
+
extractCharacterString()
|
|
577
|
+
)(rootEl)
|
|
578
|
+
return {
|
|
579
|
+
id,
|
|
580
|
+
...(name && { name }),
|
|
581
|
+
...(url && { url }),
|
|
582
|
+
}
|
|
559
583
|
}
|
|
560
584
|
|
|
561
|
-
|
|
562
|
-
|
|
585
|
+
// from gmd:MD_Keywords
|
|
586
|
+
function readKeywordGroup(rootEl: XmlElement): Keyword[] {
|
|
587
|
+
const type = pipe(
|
|
588
|
+
findChildrenElement('gmd:MD_KeywordTypeCode'),
|
|
589
|
+
mapArray(readAttribute('codeListValue')),
|
|
590
|
+
map((values) => getKeywordTypeFromKeywordTypeCode(values[0]))
|
|
591
|
+
)(rootEl)
|
|
592
|
+
const thesaurus = pipe(
|
|
593
|
+
findNestedElement('gmd:thesaurusName'),
|
|
594
|
+
readThesaurus
|
|
595
|
+
)(rootEl)
|
|
596
|
+
return pipe(
|
|
597
|
+
findChildrenElement('gmd:keyword'),
|
|
598
|
+
mapArray((el) => {
|
|
599
|
+
const label = extractCharacterString()(el)
|
|
600
|
+
return {
|
|
601
|
+
...(thesaurus ? { thesaurus } : {}),
|
|
602
|
+
label,
|
|
603
|
+
type,
|
|
604
|
+
} as Keyword
|
|
605
|
+
})
|
|
606
|
+
)(rootEl)
|
|
563
607
|
}
|
|
564
608
|
|
|
565
|
-
export function
|
|
566
|
-
return
|
|
609
|
+
export function readKeywords(rootEl: XmlElement): Keyword[] {
|
|
610
|
+
return pipe(
|
|
611
|
+
findIdentification(),
|
|
612
|
+
findNestedElements('gmd:descriptiveKeywords', 'gmd:MD_Keywords'),
|
|
613
|
+
mapArray(readKeywordGroup),
|
|
614
|
+
flattenArray()
|
|
615
|
+
)(rootEl)
|
|
567
616
|
}
|
|
568
617
|
|
|
569
618
|
export function readStatus(rootEl: XmlElement): RecordStatus {
|
|
@@ -579,24 +628,32 @@ const getConstraints = pipe(
|
|
|
579
628
|
findChildrenElement('gmd:resourceConstraints', false)
|
|
580
629
|
)
|
|
581
630
|
|
|
582
|
-
export function
|
|
631
|
+
export function readLegalConstraints(rootEl: XmlElement): Constraint[] {
|
|
583
632
|
return pipe(
|
|
584
633
|
getConstraints,
|
|
585
|
-
mapArray(
|
|
634
|
+
mapArray(extractLegalConstraints()),
|
|
586
635
|
flattenArray(),
|
|
587
636
|
flattenArray()
|
|
588
637
|
)(rootEl)
|
|
589
638
|
}
|
|
590
639
|
|
|
591
|
-
export function
|
|
640
|
+
export function readSecurityConstraints(rootEl: XmlElement): Constraint[] {
|
|
641
|
+
return pipe(
|
|
642
|
+
getConstraints,
|
|
643
|
+
mapArray(extractSecurityConstraints()),
|
|
644
|
+
flattenArray()
|
|
645
|
+
)(rootEl)
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
export function readOtherConstraints(rootEl: XmlElement): Constraint[] {
|
|
592
649
|
return pipe(
|
|
593
650
|
getConstraints,
|
|
594
|
-
mapArray(
|
|
651
|
+
mapArray(extractOtherConstraints()),
|
|
595
652
|
flattenArray()
|
|
596
653
|
)(rootEl)
|
|
597
654
|
}
|
|
598
655
|
|
|
599
|
-
export function readLicenses(rootEl: XmlElement):
|
|
656
|
+
export function readLicenses(rootEl: XmlElement): Constraint[] {
|
|
600
657
|
return pipe(
|
|
601
658
|
getConstraints,
|
|
602
659
|
mapArray(extractLicenses()),
|
|
@@ -608,7 +665,7 @@ export function readLicenses(rootEl: XmlElement): License[] {
|
|
|
608
665
|
export function readIsoTopics(rootEl: XmlElement): string[] {
|
|
609
666
|
return pipe(
|
|
610
667
|
findIdentification(),
|
|
611
|
-
findChildrenElement('gmd:MD_TopicCategoryCode',
|
|
668
|
+
findChildrenElement('gmd:MD_TopicCategoryCode', true),
|
|
612
669
|
mapArray(readText())
|
|
613
670
|
)(rootEl)
|
|
614
671
|
}
|