geonetwork-ui 2.2.0-dev.0eef2738 → 2.2.0-dev.1533e02e
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 +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +77 -52
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.mjs +4 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/converter.mjs +16 -11
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +23 -16
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +21 -18
- package/esm2022/libs/api/repository/src/lib/gn4/index.mjs +3 -1
- 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/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/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 +17 -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/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/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 +1 -1
- 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/ui/elements/src/index.mjs +2 -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 +3 -3
- package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
- 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 +35 -22
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +2 -3
- package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +9 -6
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +3 -1
- 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 +2 -2
- 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/editable-label/editable-label.directive.mjs +46 -0
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -3
- package/esm2022/libs/ui/layout/src/index.mjs +3 -1
- 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/ui-search.module.mjs +9 -10
- package/esm2022/libs/util/i18n/src/index.mjs +1 -2
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +29 -13
- package/esm2022/translations/de.json +6 -4
- package/esm2022/translations/en.json +9 -7
- package/esm2022/translations/es.json +6 -4
- package/esm2022/translations/fr.json +9 -7
- package/esm2022/translations/it.json +8 -6
- package/esm2022/translations/nl.json +6 -4
- package/esm2022/translations/pt.json +6 -4
- package/fesm2022/geonetwork-ui.mjs +730 -577
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts +1 -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/iso19139/converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +5 -4
- 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 +3 -2
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.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/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 +15 -15
- 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/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/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 +13 -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/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/ui/dataviz/src/lib/chart/chart.component.d.ts +1 -1
- package/libs/ui/elements/src/index.d.ts +1 -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/metadata-info/metadata-info.component.d.ts +7 -3
- 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/ui-elements.module.d.ts +1 -1
- 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/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/ui-inputs.module.d.ts +2 -1
- 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/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/package.json +4 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +6 -6
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +5 -3
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +22 -4
- package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +3 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +112 -65
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.ts +3 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/converter.ts +19 -12
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +62 -43
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +91 -59
- package/src/libs/api/repository/src/lib/gn4/index.ts +2 -0
- 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 +17 -18
- 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/user/index.ts +1 -0
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +6 -2
- 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/constant/index.ts +1 -0
- package/src/libs/feature/map/src/lib/feature-map.module.ts +8 -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/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/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.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/ui/elements/src/index.ts +1 -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.html +3 -2
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +2 -2
- package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +1 -1
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +45 -18
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +31 -12
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +1 -2
- 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/ui-elements.module.ts +1 -0
- 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/checkbox/checkbox.component.html +0 -1
- package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/editable-label/editable-label.directive.ts +48 -0
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -0
- package/src/libs/ui/layout/src/index.ts +2 -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/shared/src/lib/links/link-utils.ts +34 -11
- package/translations/de.json +6 -4
- package/translations/en.json +9 -7
- package/translations/es.json +6 -4
- package/translations/fr.json +9 -7
- package/translations/it.json +8 -6
- package/translations/nl.json +6 -4
- package/translations/pt.json +6 -4
- package/translations/sk.json +6 -4
- 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
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
AccessConstraintType,
|
|
2
|
+
Constraint,
|
|
4
3
|
DatasetDistribution,
|
|
5
4
|
DatasetSpatialExtent,
|
|
6
5
|
DatasetTemporalExtent,
|
|
7
6
|
GraphicOverview,
|
|
8
7
|
Individual,
|
|
9
|
-
License,
|
|
10
8
|
Organization,
|
|
11
9
|
RecordKind,
|
|
12
10
|
RecordStatus,
|
|
@@ -183,59 +181,69 @@ function extractStatus(): ChainableFunction<XmlElement, RecordStatus> {
|
|
|
183
181
|
}
|
|
184
182
|
|
|
185
183
|
// from gmd:resourceConstraints
|
|
186
|
-
function
|
|
184
|
+
function extractLegalConstraints(): ChainableFunction<
|
|
187
185
|
XmlElement,
|
|
188
|
-
Array<
|
|
186
|
+
Array<Constraint>
|
|
189
187
|
> {
|
|
190
|
-
|
|
188
|
+
return pipe(
|
|
191
189
|
findChildrenElement('gmd:MD_LegalConstraints', false),
|
|
192
190
|
filterArray(
|
|
193
191
|
pipe(
|
|
194
192
|
findChildrenElement('gmd:MD_RestrictionCode'),
|
|
195
193
|
mapArray(readAttribute('codeListValue')),
|
|
196
|
-
map(
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
194
|
+
map((values) => values.indexOf('license') === -1)
|
|
195
|
+
)
|
|
196
|
+
),
|
|
197
|
+
mapArray(
|
|
198
|
+
combine(
|
|
199
|
+
findChildrenElement('gmd:otherConstraints'),
|
|
200
|
+
findChildrenElement('gmd:useLimitation')
|
|
201
201
|
)
|
|
202
202
|
),
|
|
203
|
-
mapArray(findChildrenElement('gmd:otherConstraints')),
|
|
204
203
|
flattenArray(),
|
|
205
|
-
|
|
206
|
-
mapArray((
|
|
204
|
+
flattenArray(),
|
|
205
|
+
mapArray(combine(extractCharacterString(), extractUrl())),
|
|
206
|
+
mapArray(([text, url]) => ({
|
|
207
|
+
...(url && { url }),
|
|
207
208
|
text,
|
|
208
|
-
type: 'other' as AccessConstraintType,
|
|
209
209
|
}))
|
|
210
210
|
)
|
|
211
|
-
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// from gmd:resourceConstraints
|
|
214
|
+
function extractSecurityConstraints(): ChainableFunction<
|
|
215
|
+
XmlElement,
|
|
216
|
+
Array<Constraint>
|
|
217
|
+
> {
|
|
218
|
+
return pipe(
|
|
212
219
|
findNestedElements('gmd:MD_SecurityConstraints', 'gmd:useLimitation'),
|
|
213
|
-
|
|
214
|
-
mapArray((
|
|
220
|
+
flattenArray(),
|
|
221
|
+
mapArray(combine(extractCharacterString(), extractUrl())),
|
|
222
|
+
mapArray(([text, url]) => ({
|
|
223
|
+
...(url && { url }),
|
|
215
224
|
text,
|
|
216
|
-
type: 'security' as AccessConstraintType,
|
|
217
225
|
}))
|
|
218
226
|
)
|
|
219
|
-
return pipe(
|
|
220
|
-
combine(getOtherConstraints, getSecurityConstraints),
|
|
221
|
-
flattenArray()
|
|
222
|
-
)
|
|
223
227
|
}
|
|
224
228
|
|
|
225
229
|
// from gmd:resourceConstraints
|
|
226
|
-
function
|
|
230
|
+
function extractOtherConstraints(): ChainableFunction<
|
|
231
|
+
XmlElement,
|
|
232
|
+
Array<Constraint>
|
|
233
|
+
> {
|
|
227
234
|
return pipe(
|
|
228
|
-
|
|
229
|
-
findNestedElements('gmd:MD_Constraints', 'gmd:useLimitation'),
|
|
230
|
-
findNestedElements('gmd:MD_LegalConstraints', 'gmd:useLimitation')
|
|
231
|
-
),
|
|
235
|
+
findNestedElements('gmd:MD_Constraints', 'gmd:useLimitation'),
|
|
232
236
|
flattenArray(),
|
|
233
|
-
mapArray(extractCharacterString())
|
|
237
|
+
mapArray(combine(extractCharacterString(), extractUrl())),
|
|
238
|
+
mapArray(([text, url]) => ({
|
|
239
|
+
...(url && { url }),
|
|
240
|
+
text,
|
|
241
|
+
}))
|
|
234
242
|
)
|
|
235
243
|
}
|
|
236
244
|
|
|
237
245
|
// from gmd:resourceConstraints
|
|
238
|
-
function extractLicenses(): ChainableFunction<XmlElement, Array<
|
|
246
|
+
function extractLicenses(): ChainableFunction<XmlElement, Array<Constraint>> {
|
|
239
247
|
return pipe(
|
|
240
248
|
findChildrenElement('gmd:MD_LegalConstraints', false),
|
|
241
249
|
filterArray(
|
|
@@ -246,15 +254,18 @@ function extractLicenses(): ChainableFunction<XmlElement, Array<License>> {
|
|
|
246
254
|
)
|
|
247
255
|
),
|
|
248
256
|
mapArray(
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
map(([text, url]) => ({
|
|
253
|
-
...(url && { url }),
|
|
254
|
-
text,
|
|
255
|
-
}))
|
|
257
|
+
combine(
|
|
258
|
+
findChildrenElement('gmd:otherConstraints'),
|
|
259
|
+
findChildrenElement('gmd:useLimitation')
|
|
256
260
|
)
|
|
257
|
-
)
|
|
261
|
+
),
|
|
262
|
+
flattenArray(),
|
|
263
|
+
flattenArray(),
|
|
264
|
+
mapArray(combine(extractCharacterString(), extractUrl())),
|
|
265
|
+
mapArray(([text, url]) => ({
|
|
266
|
+
...(url && { url }),
|
|
267
|
+
text,
|
|
268
|
+
}))
|
|
258
269
|
)
|
|
259
270
|
}
|
|
260
271
|
|
|
@@ -579,24 +590,32 @@ const getConstraints = pipe(
|
|
|
579
590
|
findChildrenElement('gmd:resourceConstraints', false)
|
|
580
591
|
)
|
|
581
592
|
|
|
582
|
-
export function
|
|
593
|
+
export function readLegalConstraints(rootEl: XmlElement): Constraint[] {
|
|
583
594
|
return pipe(
|
|
584
595
|
getConstraints,
|
|
585
|
-
mapArray(
|
|
596
|
+
mapArray(extractLegalConstraints()),
|
|
586
597
|
flattenArray(),
|
|
587
598
|
flattenArray()
|
|
588
599
|
)(rootEl)
|
|
589
600
|
}
|
|
590
601
|
|
|
591
|
-
export function
|
|
602
|
+
export function readSecurityConstraints(rootEl: XmlElement): Constraint[] {
|
|
603
|
+
return pipe(
|
|
604
|
+
getConstraints,
|
|
605
|
+
mapArray(extractSecurityConstraints()),
|
|
606
|
+
flattenArray()
|
|
607
|
+
)(rootEl)
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
export function readOtherConstraints(rootEl: XmlElement): Constraint[] {
|
|
592
611
|
return pipe(
|
|
593
612
|
getConstraints,
|
|
594
|
-
mapArray(
|
|
613
|
+
mapArray(extractOtherConstraints()),
|
|
595
614
|
flattenArray()
|
|
596
615
|
)(rootEl)
|
|
597
616
|
}
|
|
598
617
|
|
|
599
|
-
export function readLicenses(rootEl: XmlElement):
|
|
618
|
+
export function readLicenses(rootEl: XmlElement): Constraint[] {
|
|
600
619
|
return pipe(
|
|
601
620
|
getConstraints,
|
|
602
621
|
mapArray(extractLicenses()),
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
AccessConstraint,
|
|
3
2
|
CatalogRecord,
|
|
3
|
+
Constraint,
|
|
4
4
|
DatasetDistribution,
|
|
5
5
|
DatasetRecord,
|
|
6
6
|
DatasetServiceDistribution,
|
|
7
7
|
Individual,
|
|
8
|
-
License,
|
|
9
8
|
RecordStatus,
|
|
10
9
|
Role,
|
|
11
10
|
ServiceEndpoint,
|
|
@@ -374,35 +373,11 @@ function appendKeywords(keywords: string[], type: string | null) {
|
|
|
374
373
|
)
|
|
375
374
|
}
|
|
376
375
|
|
|
377
|
-
function
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
)
|
|
382
|
-
|
|
383
|
-
// remove legal constraints that *only* have 'otherRestrictions'
|
|
384
|
-
const otherConstraintsFilter = pipe(
|
|
385
|
-
findNestedElements(
|
|
386
|
-
'gmd:MD_LegalConstraints',
|
|
387
|
-
'gmd:accessConstraints',
|
|
388
|
-
'gmd:MD_RestrictionCode'
|
|
389
|
-
),
|
|
390
|
-
mapArray(readAttribute('codeListValue')),
|
|
391
|
-
(restrictionCodes) =>
|
|
392
|
-
restrictionCodes.every((code) => code === 'otherRestrictions')
|
|
393
|
-
)
|
|
394
|
-
return removeChildren(
|
|
395
|
-
pipe(
|
|
396
|
-
findChildrenElement('gmd:resourceConstraints'),
|
|
397
|
-
filterArray(
|
|
398
|
-
(el) => securityConstraintsFilter(el) || otherConstraintsFilter(el)
|
|
399
|
-
)
|
|
400
|
-
)
|
|
401
|
-
)
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
function createAccessConstraint(constraint: AccessConstraint) {
|
|
405
|
-
if (constraint.type === 'security') {
|
|
376
|
+
function createConstraint(
|
|
377
|
+
constraint: Constraint,
|
|
378
|
+
type: 'legal' | 'security' | 'other'
|
|
379
|
+
) {
|
|
380
|
+
if (type === 'security') {
|
|
406
381
|
return pipe(
|
|
407
382
|
createElement('gmd:resourceConstraints'),
|
|
408
383
|
createChild('gmd:MD_SecurityConstraints'),
|
|
@@ -422,29 +397,41 @@ function createAccessConstraint(constraint: AccessConstraint) {
|
|
|
422
397
|
)
|
|
423
398
|
)
|
|
424
399
|
)
|
|
400
|
+
} else if (type === 'legal') {
|
|
401
|
+
return pipe(
|
|
402
|
+
createElement('gmd:resourceConstraints'),
|
|
403
|
+
createChild('gmd:MD_LegalConstraints'),
|
|
404
|
+
appendChildren(
|
|
405
|
+
pipe(
|
|
406
|
+
createElement('gmd:accessConstraints'),
|
|
407
|
+
createChild('gmd:MD_RestrictionCode'),
|
|
408
|
+
addAttribute(
|
|
409
|
+
'codeList',
|
|
410
|
+
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_RestrictionCode'
|
|
411
|
+
),
|
|
412
|
+
addAttribute('codeListValue', 'otherRestrictions')
|
|
413
|
+
),
|
|
414
|
+
pipe(
|
|
415
|
+
createElement('gmd:otherConstraints'),
|
|
416
|
+
writeCharacterString(constraint.text)
|
|
417
|
+
)
|
|
418
|
+
)
|
|
419
|
+
)
|
|
425
420
|
}
|
|
421
|
+
|
|
426
422
|
return pipe(
|
|
427
423
|
createElement('gmd:resourceConstraints'),
|
|
428
|
-
createChild('gmd:
|
|
424
|
+
createChild('gmd:MD_Constraints'),
|
|
429
425
|
appendChildren(
|
|
430
426
|
pipe(
|
|
431
|
-
createElement('gmd:
|
|
432
|
-
createChild('gmd:MD_RestrictionCode'),
|
|
433
|
-
addAttribute(
|
|
434
|
-
'codeList',
|
|
435
|
-
'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_RestrictionCode'
|
|
436
|
-
),
|
|
437
|
-
addAttribute('codeListValue', 'otherRestrictions')
|
|
438
|
-
),
|
|
439
|
-
pipe(
|
|
440
|
-
createElement('gmd:otherConstraints'),
|
|
427
|
+
createElement('gmd:useLimitation'),
|
|
441
428
|
writeCharacterString(constraint.text)
|
|
442
429
|
)
|
|
443
430
|
)
|
|
444
431
|
)
|
|
445
432
|
}
|
|
446
433
|
|
|
447
|
-
function
|
|
434
|
+
function removeOtherConstraints() {
|
|
448
435
|
return removeChildren(
|
|
449
436
|
pipe(
|
|
450
437
|
findChildrenElement('gmd:resourceConstraints'),
|
|
@@ -458,12 +445,37 @@ function removeUseLimitations() {
|
|
|
458
445
|
)
|
|
459
446
|
}
|
|
460
447
|
|
|
461
|
-
function
|
|
462
|
-
return
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
448
|
+
function removeSecurityConstraints() {
|
|
449
|
+
return removeChildren(
|
|
450
|
+
pipe(
|
|
451
|
+
findChildrenElement('gmd:resourceConstraints'),
|
|
452
|
+
filterArray(
|
|
453
|
+
pipe(
|
|
454
|
+
findNestedElements('gmd:MD_SecurityConstraints', 'gmd:useLimitation'),
|
|
455
|
+
(array) => array.length > 0
|
|
456
|
+
)
|
|
457
|
+
)
|
|
458
|
+
)
|
|
459
|
+
)
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
function removeLegalConstraints() {
|
|
463
|
+
return removeChildren(
|
|
464
|
+
pipe(
|
|
465
|
+
findChildrenElement('gmd:resourceConstraints'),
|
|
466
|
+
filterArray(
|
|
467
|
+
pipe(
|
|
468
|
+
findNestedElements(
|
|
469
|
+
'gmd:MD_LegalConstraints',
|
|
470
|
+
'gmd:accessConstraints',
|
|
471
|
+
'gmd:MD_RestrictionCode'
|
|
472
|
+
),
|
|
473
|
+
mapArray(readAttribute('codeListValue')),
|
|
474
|
+
(restrictionCodes) =>
|
|
475
|
+
restrictionCodes.every((code) => code !== 'license')
|
|
476
|
+
)
|
|
477
|
+
)
|
|
478
|
+
)
|
|
467
479
|
)
|
|
468
480
|
}
|
|
469
481
|
|
|
@@ -487,7 +499,7 @@ function removeLicenses() {
|
|
|
487
499
|
)
|
|
488
500
|
}
|
|
489
501
|
|
|
490
|
-
function createLicense(license:
|
|
502
|
+
function createLicense(license: Constraint) {
|
|
491
503
|
return pipe(
|
|
492
504
|
createElement('gmd:resourceConstraints'),
|
|
493
505
|
createChild('gmd:MD_LegalConstraints'),
|
|
@@ -741,30 +753,50 @@ export function writeThemes(record: CatalogRecord, rootEl: XmlElement) {
|
|
|
741
753
|
)(rootEl)
|
|
742
754
|
}
|
|
743
755
|
|
|
744
|
-
export function
|
|
756
|
+
export function writeLicenses(record: CatalogRecord, rootEl: XmlElement) {
|
|
757
|
+
pipe(
|
|
758
|
+
findOrCreateIdentification(),
|
|
759
|
+
removeLicenses(),
|
|
760
|
+
appendChildren(...record.licenses.map(createLicense))
|
|
761
|
+
)(rootEl)
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
export function writeLegalConstraints(
|
|
745
765
|
record: CatalogRecord,
|
|
746
766
|
rootEl: XmlElement
|
|
747
767
|
) {
|
|
748
768
|
pipe(
|
|
749
769
|
findOrCreateIdentification(),
|
|
750
|
-
|
|
751
|
-
appendChildren(
|
|
770
|
+
removeLegalConstraints(),
|
|
771
|
+
appendChildren(
|
|
772
|
+
...record.legalConstraints.map((c) => createConstraint(c, 'legal'))
|
|
773
|
+
)
|
|
752
774
|
)(rootEl)
|
|
753
775
|
}
|
|
754
776
|
|
|
755
|
-
export function
|
|
777
|
+
export function writeSecurityConstraints(
|
|
778
|
+
record: CatalogRecord,
|
|
779
|
+
rootEl: XmlElement
|
|
780
|
+
) {
|
|
756
781
|
pipe(
|
|
757
782
|
findOrCreateIdentification(),
|
|
758
|
-
|
|
759
|
-
appendChildren(
|
|
783
|
+
removeSecurityConstraints(),
|
|
784
|
+
appendChildren(
|
|
785
|
+
...record.securityConstraints.map((c) => createConstraint(c, 'security'))
|
|
786
|
+
)
|
|
760
787
|
)(rootEl)
|
|
761
788
|
}
|
|
762
789
|
|
|
763
|
-
export function
|
|
790
|
+
export function writeOtherConstraints(
|
|
791
|
+
record: CatalogRecord,
|
|
792
|
+
rootEl: XmlElement
|
|
793
|
+
) {
|
|
764
794
|
pipe(
|
|
765
795
|
findOrCreateIdentification(),
|
|
766
|
-
|
|
767
|
-
appendChildren(
|
|
796
|
+
removeOtherConstraints(),
|
|
797
|
+
appendChildren(
|
|
798
|
+
...record.otherConstraints.map((c) => createConstraint(c, 'other'))
|
|
799
|
+
)
|
|
768
800
|
)(rootEl)
|
|
769
801
|
}
|
|
770
802
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Injectable } from '@angular/core'
|
|
2
2
|
import { CatalogRecord } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
3
3
|
import { SelectionsApiService } from '../../../../../../../libs/data-access/gn4/src'
|
|
4
|
-
import { BehaviorSubject,
|
|
4
|
+
import { BehaviorSubject, firstValueFrom } from 'rxjs'
|
|
5
5
|
|
|
6
6
|
const BUCKET_ID = 'gnui'
|
|
7
7
|
|
|
@@ -12,7 +12,6 @@ export class SelectionService {
|
|
|
12
12
|
selectedRecordsIdentifiers$: BehaviorSubject<string[]> = new BehaviorSubject(
|
|
13
13
|
[]
|
|
14
14
|
)
|
|
15
|
-
subscription: Subscription
|
|
16
15
|
|
|
17
16
|
constructor(private selectionsApi: SelectionsApiService) {
|
|
18
17
|
this.selectionsApi.get(BUCKET_ID).subscribe((selectedIds) => {
|
|
@@ -33,48 +32,25 @@ export class SelectionService {
|
|
|
33
32
|
this.selectedRecordsIdentifiers$.next(filtered)
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
selectRecords(records: CatalogRecord[])
|
|
37
|
-
const newIds =
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
selectRecords(records: CatalogRecord[]) {
|
|
36
|
+
const newIds = records.map((record) => record.uniqueIdentifier)
|
|
37
|
+
this.selectionsApi.add(BUCKET_ID, newIds).subscribe(() => {
|
|
38
|
+
this.addIdsToSelected(newIds)
|
|
40
39
|
})
|
|
41
|
-
const apiResponse = this.selectionsApi.add(BUCKET_ID, newIds)
|
|
42
|
-
return apiResponse.pipe(
|
|
43
|
-
tap(() => {
|
|
44
|
-
this.addIdsToSelected(newIds)
|
|
45
|
-
}),
|
|
46
|
-
map(() => undefined)
|
|
47
|
-
)
|
|
48
40
|
}
|
|
49
41
|
|
|
50
|
-
deselectRecords(records: CatalogRecord[])
|
|
51
|
-
const idsToBeRemoved =
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
deselectRecords(records: CatalogRecord[]) {
|
|
43
|
+
const idsToBeRemoved = records.map((record) => record.uniqueIdentifier)
|
|
44
|
+
this.selectionsApi.clear(BUCKET_ID, idsToBeRemoved).subscribe(() => {
|
|
45
|
+
this.removeIdsFromSelected(idsToBeRemoved)
|
|
54
46
|
})
|
|
55
|
-
const apiResponse = this.selectionsApi.clear(BUCKET_ID, idsToBeRemoved)
|
|
56
|
-
return apiResponse.pipe(
|
|
57
|
-
tap(() => {
|
|
58
|
-
this.removeIdsFromSelected(idsToBeRemoved)
|
|
59
|
-
}),
|
|
60
|
-
map(() => undefined)
|
|
61
|
-
)
|
|
62
47
|
}
|
|
63
48
|
|
|
64
|
-
clearSelection()
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
this.
|
|
68
|
-
currentSelection
|
|
49
|
+
async clearSelection() {
|
|
50
|
+
const response = await firstValueFrom(this.selectionsApi.get(BUCKET_ID))
|
|
51
|
+
const currentSelection = Array.from(response)
|
|
52
|
+
this.selectionsApi.clear(BUCKET_ID, currentSelection).subscribe(() => {
|
|
53
|
+
this.removeIdsFromSelected(currentSelection)
|
|
69
54
|
})
|
|
70
|
-
this.selectionsApi.clear(BUCKET_ID, currentSelection)
|
|
71
|
-
const apiResponse = this.selectionsApi.clear(BUCKET_ID, currentSelection)
|
|
72
|
-
|
|
73
|
-
return apiResponse.pipe(
|
|
74
|
-
tap(() => {
|
|
75
|
-
this.removeIdsFromSelected(currentSelection)
|
|
76
|
-
}),
|
|
77
|
-
map(() => undefined)
|
|
78
|
-
)
|
|
79
55
|
}
|
|
80
56
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
2
|
-
import { Individual } from './contact.model'
|
|
3
|
-
import { Organization } from './organization.model'
|
|
2
|
+
import type { Individual } from './contact.model'
|
|
3
|
+
import type { Organization } from './organization.model'
|
|
4
|
+
import type { Geometry } from 'geojson'
|
|
4
5
|
|
|
5
6
|
type Uuid = string
|
|
6
7
|
|
|
@@ -47,13 +48,7 @@ export const RecordStatusValues = [
|
|
|
47
48
|
]
|
|
48
49
|
export type RecordStatus = typeof RecordStatusValues[number]
|
|
49
50
|
|
|
50
|
-
export type
|
|
51
|
-
export interface AccessConstraint {
|
|
52
|
-
text: string
|
|
53
|
-
type: AccessConstraintType
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export type License = {
|
|
51
|
+
export type Constraint = {
|
|
57
52
|
text: string
|
|
58
53
|
url?: URL
|
|
59
54
|
}
|
|
@@ -76,10 +71,10 @@ export interface BaseRecord {
|
|
|
76
71
|
kind: RecordKind
|
|
77
72
|
themes: Array<string> // TODO: handle codelists
|
|
78
73
|
keywords: Array<string> // TODO: handle thesaurus and id
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
licenses: Array<Constraint>
|
|
75
|
+
legalConstraints: Array<Constraint>
|
|
76
|
+
securityConstraints: Array<Constraint>
|
|
77
|
+
otherConstraints: Array<Constraint>
|
|
83
78
|
overviews: Array<GraphicOverview>
|
|
84
79
|
extras?: Record<string, unknown>
|
|
85
80
|
landingPage?: URL
|
|
@@ -122,6 +117,7 @@ export interface DatasetDownloadDistribution {
|
|
|
122
117
|
// textEncoding?: string
|
|
123
118
|
name?: string
|
|
124
119
|
description?: string
|
|
120
|
+
accessServiceProtocol?: ServiceProtocol
|
|
125
121
|
}
|
|
126
122
|
|
|
127
123
|
export interface OnlineLinkResource {
|
|
@@ -145,13 +141,16 @@ export interface GraphicOverview {
|
|
|
145
141
|
}
|
|
146
142
|
|
|
147
143
|
export interface DatasetSpatialExtent {
|
|
148
|
-
geometry:
|
|
144
|
+
geometry: Geometry
|
|
149
145
|
description?: string
|
|
150
146
|
}
|
|
151
147
|
|
|
148
|
+
/**
|
|
149
|
+
* At least a start or an end date should be provided
|
|
150
|
+
*/
|
|
152
151
|
export interface DatasetTemporalExtent {
|
|
153
|
-
start
|
|
154
|
-
end
|
|
152
|
+
start?: Date
|
|
153
|
+
end?: Date
|
|
155
154
|
description?: string
|
|
156
155
|
}
|
|
157
156
|
|
|
@@ -163,8 +162,8 @@ export interface DatasetRecord extends BaseRecord {
|
|
|
163
162
|
datasetUpdated?: Date
|
|
164
163
|
lineage: string // Explanation of the origin of this record (e.g: how, why)"
|
|
165
164
|
distributions: Array<DatasetDistribution>
|
|
166
|
-
spatialExtents: Array<DatasetSpatialExtent>
|
|
167
|
-
temporalExtents: Array<DatasetTemporalExtent>
|
|
165
|
+
spatialExtents: Array<DatasetSpatialExtent>
|
|
166
|
+
temporalExtents: Array<DatasetTemporalExtent>
|
|
168
167
|
spatialRepresentation?: SpatialRepresentationType
|
|
169
168
|
}
|
|
170
169
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type FieldName = string
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FieldFilters } from './filter.model'
|
|
2
2
|
import { CatalogRecord } from '../record'
|
|
3
3
|
import { Geometry } from 'geojson'
|
|
4
|
+
import { FieldName } from './field.model'
|
|
4
5
|
|
|
5
|
-
type FieldSort = ['desc' | 'asc', FieldName]
|
|
6
|
+
export type FieldSort = ['desc' | 'asc', FieldName]
|
|
6
7
|
export type SortByField = FieldSort | FieldSort[] // several sort criteria can be used!
|
|
7
|
-
export type FieldName = string
|
|
8
8
|
|
|
9
9
|
export interface SearchParams {
|
|
10
10
|
filters?: FieldFilters
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './user.model'
|
|
@@ -115,7 +115,7 @@ As such, **it is not very interesting at all.**`,
|
|
|
115
115
|
url: new URL('https://data.rennesmetropole.fr/pages/licence/'),
|
|
116
116
|
},
|
|
117
117
|
],
|
|
118
|
-
|
|
118
|
+
legalConstraints: [
|
|
119
119
|
{
|
|
120
120
|
text: "Dataset access isn't possible since it does not really exist",
|
|
121
121
|
type: 'other',
|
|
@@ -125,6 +125,8 @@ As such, **it is not very interesting at all.**`,
|
|
|
125
125
|
type: 'security',
|
|
126
126
|
},
|
|
127
127
|
],
|
|
128
|
+
securityConstraints: [],
|
|
129
|
+
otherConstraints: [],
|
|
128
130
|
spatialExtents: [],
|
|
129
131
|
temporalExtents: [],
|
|
130
132
|
updateFrequency: {
|
|
@@ -189,7 +191,9 @@ Malgré l'attention portée à la création de ces données, il est rappelé que
|
|
|
189
191
|
],
|
|
190
192
|
lineage: `Document d’urbanisme numérisé conformément aux prescriptions nationales du CNIG par le Service d'Information Géographique de l'Agglomération de la Région de Compiègne.
|
|
191
193
|
Ce lot de données produit en 2019, a été numérisé à partir du PCI Vecteur de 2019 et contrôlé par le Service d'Information Géographique de l'Agglomération de la Région de Compiègne.`,
|
|
192
|
-
|
|
194
|
+
legalConstraints: [],
|
|
195
|
+
securityConstraints: [],
|
|
196
|
+
otherConstraints: [],
|
|
193
197
|
useLimitations: ["Aucune condition ne s'applique", 'Licence Ouverte 2.0'],
|
|
194
198
|
licenses: [
|
|
195
199
|
{
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Injectable } from '@angular/core'
|
|
2
2
|
import { OrganizationsServiceInterface } from '../../../../../../libs/common/domain/src/lib/organizations.service.interface'
|
|
3
|
-
import {
|
|
3
|
+
import { combineLatest, map, Observable } from 'rxjs'
|
|
4
4
|
import { UserModel } from '../../../../../../libs/common/domain/src/lib/model/user/user.model'
|
|
5
5
|
import { PlatformServiceInterface } from '../../../../../../libs/common/domain/src/lib/platform.service.interface'
|
|
6
|
+
import { shareReplay } from 'rxjs/operators'
|
|
6
7
|
|
|
7
8
|
@Injectable({
|
|
8
9
|
providedIn: 'root',
|
|
@@ -16,20 +17,6 @@ export class MyOrgService {
|
|
|
16
17
|
userList: UserModel[]
|
|
17
18
|
}>
|
|
18
19
|
|
|
19
|
-
private myOrgDataSubject = new BehaviorSubject<{
|
|
20
|
-
orgName: string
|
|
21
|
-
logoUrl: string
|
|
22
|
-
recordCount: number
|
|
23
|
-
userCount: number
|
|
24
|
-
userList: UserModel[]
|
|
25
|
-
}>({
|
|
26
|
-
orgName: '',
|
|
27
|
-
logoUrl: '',
|
|
28
|
-
recordCount: 0,
|
|
29
|
-
userCount: 0,
|
|
30
|
-
userList: [],
|
|
31
|
-
})
|
|
32
|
-
|
|
33
20
|
constructor(
|
|
34
21
|
private platformService: PlatformServiceInterface,
|
|
35
22
|
private orgService: OrganizationsServiceInterface
|
|
@@ -55,7 +42,8 @@ export class MyOrgService {
|
|
|
55
42
|
userList,
|
|
56
43
|
userCount,
|
|
57
44
|
}
|
|
58
|
-
})
|
|
45
|
+
}),
|
|
46
|
+
shareReplay(1)
|
|
59
47
|
)
|
|
60
48
|
}
|
|
61
49
|
}
|