geonetwork-ui 2.4.0-dev.503109c9 → 2.4.0-dev.575f30f2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/libs/api/metadata-converter/src/index.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +10 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.mjs +5 -5
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +7 -4
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +10 -7
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +7 -14
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +6 -6
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +28 -18
- package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +18 -2
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +78 -39
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +41 -7
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +1 -1
- package/esm2022/libs/feature/editor/src/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +4 -16
- package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +4 -2
- package/esm2022/libs/feature/editor/src/lib/components/import-record/import-record.component.mjs +93 -0
- package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +71 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +11 -29
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date-updated/form-field-date-updated.component.mjs +19 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +23 -10
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.mjs +148 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +86 -11
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +4 -8
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +36 -7
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +35 -59
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +12 -5
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +34 -6
- package/esm2022/libs/feature/editor/src/lib/models/editor-config.model.mjs +1 -1
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +2 -2
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -2
- package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/index.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +1 -1
- package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +6 -6
- package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/index.mjs +5 -1
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +7 -4
- package/esm2022/libs/ui/inputs/src/lib/badge/badge.component.mjs +5 -3
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +8 -1
- package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +11 -4
- package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +9 -3
- package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +87 -0
- package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +5 -4
- package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +4 -3
- package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/index.mjs +3 -1
- package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +5 -3
- package/esm2022/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.mjs +29 -0
- package/esm2022/libs/ui/layout/src/lib/sortable-list/sortable-list.component.mjs +43 -0
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +3 -3
- package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +1 -1
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +1 -1
- package/esm2022/libs/util/shared/src/lib/services/theme.service.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/utils/bytes-convert.mjs +4 -1
- package/esm2022/translations/de.json +20 -0
- package/esm2022/translations/en.json +20 -0
- package/esm2022/translations/es.json +20 -0
- package/esm2022/translations/fr.json +21 -1
- package/esm2022/translations/it.json +20 -0
- package/esm2022/translations/nl.json +20 -0
- package/esm2022/translations/pt.json +20 -0
- package/fesm2022/geonetwork-ui.mjs +3136 -2523
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/index.d.ts +1 -0
- package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts +3 -3
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +2 -2
- package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +4 -5
- 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 +7 -6
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +6 -0
- package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +12 -7
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +21 -2
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +6 -6
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/platform.service.interface.d.ts +15 -0
- package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +7 -0
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +2 -2
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +6 -6
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +3 -3
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
- package/libs/feature/editor/src/index.d.ts +1 -0
- package/libs/feature/editor/src/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts +1 -5
- package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts +2 -1
- package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts +33 -0
- package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts +15 -0
- package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +2 -5
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date-updated/form-field-date-updated.component.d.ts +9 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date-updated/form-field-date-updated.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts +5 -2
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts +35 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +20 -2
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +1 -3
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +7 -2
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +9 -15
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +5 -3
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +3 -2
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/fields.config.d.ts +9 -1
- package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/models/editor-config.model.d.ts +6 -0
- package/libs/feature/editor/src/lib/models/editor-config.model.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +5 -5
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +3 -3
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -2
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +2 -2
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts +7 -7
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +1 -1
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -7
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
- package/libs/ui/inputs/src/index.d.ts +4 -0
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/badge/badge.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts +24 -0
- package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts +0 -1
- package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/text-area/text-area.component.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/form-field-wrapper/form-field-wrapper.component.d.ts +2 -2
- package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.d.ts +1 -1
- package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts +20 -0
- package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts +14 -0
- package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -0
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +1 -1
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +6 -6
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/libs/util/shared/src/lib/services/theme.service.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/bytes-convert.d.ts +2 -1
- package/libs/util/shared/src/lib/utils/bytes-convert.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/index.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +18 -16
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +4 -4
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +12 -4
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +14 -8
- package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +4 -12
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +13 -15
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +48 -36
- package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +20 -1
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +132 -68
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +47 -3
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +7 -7
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +26 -0
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +10 -0
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +216 -175
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +3 -3
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +3 -3
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +6 -6
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +4 -4
- package/src/libs/feature/editor/src/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +12 -24
- package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +1 -13
- package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.html +43 -0
- package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.ts +129 -0
- package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.html +35 -0
- package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +79 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.css +4 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +13 -23
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +7 -44
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-resource-updated/form-field-resource-updated.component.ts → form-field-date-updated/form-field-date-updated.component.ts} +4 -4
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +3 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +35 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.css +8 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.html +34 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts +182 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +11 -5
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +93 -4
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +13 -6
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +0 -9
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +7 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +62 -6
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.css +4 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +23 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +37 -69
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.css +4 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.html +16 -14
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +27 -20
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +10 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -1
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +31 -29
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +2 -1
- package/src/libs/feature/editor/src/lib/fields.config.ts +37 -5
- package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +12 -0
- package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +7 -7
- package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +3 -3
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +2 -2
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +2 -2
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +5 -1
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -0
- package/src/libs/ui/elements/src/index.ts +1 -1
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +4 -4
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +7 -7
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -3
- package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +13 -20
- package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +1 -1
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +5 -0
- package/src/libs/ui/inputs/src/index.ts +4 -0
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.css +25 -18
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +38 -24
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +4 -1
- package/src/libs/ui/inputs/src/lib/badge/badge.component.html +12 -3
- package/src/libs/ui/inputs/src/lib/badge/badge.component.ts +2 -1
- package/src/libs/ui/inputs/src/lib/button/button.component.ts +15 -1
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.css +7 -2
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +13 -6
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +7 -1
- package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.css +7 -2
- package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.html +27 -23
- package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +7 -1
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.css +4 -0
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +7 -3
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +2 -1
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.css +4 -0
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +30 -22
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +2 -1
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.css +4 -3
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +0 -1
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +1 -2
- package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +1 -1
- package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +1 -1
- package/src/libs/ui/layout/src/index.ts +2 -0
- package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +8 -3
- package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts +4 -3
- package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.css +0 -0
- package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.html +15 -0
- package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.ts +44 -0
- package/src/libs/ui/layout/src/lib/sortable-list/sortable-list.component.html +37 -0
- package/src/libs/ui/{elements → layout}/src/lib/sortable-list/sortable-list.component.ts +13 -16
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +4 -2
- package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +4 -3
- package/src/libs/util/shared/src/lib/links/link-utils.ts +6 -6
- package/src/libs/util/shared/src/lib/services/theme.service.ts +1 -0
- package/src/libs/util/shared/src/lib/utils/bytes-convert.ts +4 -1
- package/tailwind.base.config.js +1 -0
- package/tailwind.base.css +35 -4
- package/translations/de.json +20 -0
- package/translations/en.json +20 -0
- package/translations/es.json +20 -0
- package/translations/fr.json +21 -1
- package/translations/it.json +20 -0
- package/translations/nl.json +20 -0
- package/translations/pt.json +20 -0
- package/translations/sk.json +20 -0
- package/esm2022/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.mjs +0 -96
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +0 -19
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.mjs +0 -17
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.mjs +0 -17
- package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +0 -39
- package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts +0 -27
- package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +0 -9
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.d.ts +0 -8
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.d.ts +0 -8
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.d.ts.map +0 -1
- package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +0 -17
- package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +0 -1
- package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +0 -9
- package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +0 -113
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.html +0 -7
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.ts +0 -16
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.html +0 -13
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.ts +0 -16
- package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +0 -29
- /package/src/libs/feature/editor/src/lib/components/{overview-upload/overview-upload.component.css → import-record/import-record.component.css} +0 -0
- /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.css → online-resource-card/online-resource-card.component.css} +0 -0
- /package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.css → form-field-date-updated/form-field-date-updated.component.css} +0 -0
- /package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-resource-updated/form-field-resource-updated.component.html → form-field-date-updated/form-field-date-updated.component.html} +0 -0
- /package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.css → form-field-online-link-resources/form-field-online-link-resources.component.css} +0 -0
- /package/src/libs/ui/{elements → layout}/src/lib/sortable-list/sortable-list.component.css +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/lib/model/record';
|
|
2
2
|
export declare const FORMATS: {
|
|
3
3
|
readonly csv: {
|
|
4
4
|
readonly extensions: readonly ["csv"];
|
|
@@ -99,13 +99,13 @@ export declare const FORMATS: {
|
|
|
99
99
|
};
|
|
100
100
|
export type FileFormat = keyof typeof FORMATS;
|
|
101
101
|
export declare function getFormatPriority(linkFormat: FileFormat): number;
|
|
102
|
-
export declare function getLinkPriority(link:
|
|
102
|
+
export declare function getLinkPriority(link: DatasetOnlineResource): number;
|
|
103
103
|
export declare function getFileFormatFromServiceOutput(serviceOutput: string): FileFormat | null;
|
|
104
|
-
export declare function getFileFormat(link:
|
|
105
|
-
export declare function isFormatInQueryParam(link:
|
|
104
|
+
export declare function getFileFormat(link: DatasetOnlineResource): FileFormat;
|
|
105
|
+
export declare function isFormatInQueryParam(link: DatasetOnlineResource, alias: string): boolean;
|
|
106
106
|
export declare function mimeTypeToFormat(mimeType: string): FileFormat;
|
|
107
|
-
export declare function checkFileFormat(link:
|
|
107
|
+
export declare function checkFileFormat(link: DatasetOnlineResource, format: FileFormat): boolean;
|
|
108
108
|
export declare function getBadgeColor(linkFormat: FileFormat): string;
|
|
109
|
-
export declare function getLinkLabel(link:
|
|
109
|
+
export declare function getLinkLabel(link: DatasetOnlineResource): string;
|
|
110
110
|
export declare function getMimeTypeForFormat(format: FileFormat): string | null;
|
|
111
111
|
//# sourceMappingURL=link-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/links/link-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"link-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/links/link-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2DAA2D,CAAA;AAIjG,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgHV,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAA;AAE7C,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAUhE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,qBAAqB,GAAG,MAAM,CAEnE;AAED,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,MAAM,GACpB,UAAU,GAAG,IAAI,CAgBnB;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,qBAAqB,GAAG,UAAU,CAcrE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,qBAAqB,EAC3B,KAAK,EAAE,MAAM,GACZ,OAAO,CAQT;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAO7D;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,qBAAqB,EAC3B,MAAM,EAAE,UAAU,GACjB,OAAO,CAMT;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAQ5D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,qBAAqB,GAAG,MAAM,CA0BhE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAEtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.service.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/services/theme.service.ts"],"names":[],"mappings":";AAGA,qBAGa,YAAY;IAEvB,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM;IAI5B,MAAM,CAAC,wBAAwB,CAC7B,SAAS,KAAA,EACT,UAAU,KAAA,EACV,SAAS,WAAsB;IAiBjC,MAAM,CAAC,iBAAiB,CACtB,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,EACvB,QAAQ,CAAC,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,MAAM,EAClB,kBAAkB,CAAC,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"theme.service.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/services/theme.service.ts"],"names":[],"mappings":";AAGA,qBAGa,YAAY;IAEvB,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM;IAI5B,MAAM,CAAC,wBAAwB,CAC7B,SAAS,KAAA,EACT,UAAU,KAAA,EACV,SAAS,WAAsB;IAiBjC,MAAM,CAAC,iBAAiB,CACtB,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,EACvB,QAAQ,CAAC,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,MAAM,EAClB,kBAAkB,CAAC,EAAE,MAAM;IA6F7B,MAAM,CAAC,kBAAkB,CACvB,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,GAChB,MAAM;IAQT,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;yCA1IjC,YAAY;6CAAZ,YAAY;CAkJxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bytes-convert.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/utils/bytes-convert.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"bytes-convert.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/utils/bytes-convert.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,UAEjD;AACD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,UAE7C"}
|
package/package.json
CHANGED
|
@@ -141,7 +141,7 @@ Cette section contient des *caractères internationaux* (ainsi que des "caractè
|
|
|
141
141
|
],
|
|
142
142
|
topics: ['agriculture'],
|
|
143
143
|
spatialRepresentation: 'grid',
|
|
144
|
-
|
|
144
|
+
onlineResources: [
|
|
145
145
|
{
|
|
146
146
|
type: 'download',
|
|
147
147
|
url: new URL('http://my-org.net/download/1.zip'),
|
|
@@ -222,7 +222,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
|
|
|
222
222
|
},
|
|
223
223
|
],
|
|
224
224
|
spatialRepresentation: 'vector',
|
|
225
|
-
|
|
225
|
+
onlineResources: [
|
|
226
226
|
{
|
|
227
227
|
type: 'link',
|
|
228
228
|
url: new URL('https://map.geo.admin.ch/?layers=ch.are.alpenkonvention'),
|
|
@@ -68,7 +68,7 @@ Toutes ces données sont reprises dans BDR.`,
|
|
|
68
68
|
resourceCreated: new Date('2002-01-01'),
|
|
69
69
|
resourceUpdated: new Date('2022-06-16'),
|
|
70
70
|
resourcePublished: new Date('2022-06-16'),
|
|
71
|
-
|
|
71
|
+
onlineResources: [
|
|
72
72
|
{
|
|
73
73
|
description:
|
|
74
74
|
"Application de consultation des routes et autoroutes de Wallonie. Cette application est sécurisée et n'est accessible que pour les agents de la DGO1 du SPW.",
|
|
@@ -20,12 +20,9 @@ import { getUpdateFrequencyFromFrequencyCode } from '../iso19139/utils/update-fr
|
|
|
20
20
|
import {
|
|
21
21
|
CatalogRecord,
|
|
22
22
|
Constraint,
|
|
23
|
-
DatasetDistribution,
|
|
24
|
-
DatasetDistributionType,
|
|
25
|
-
DatasetDownloadDistribution,
|
|
26
|
-
DatasetServiceDistribution,
|
|
27
23
|
DatasetSpatialExtent,
|
|
28
|
-
|
|
24
|
+
OnlineResource,
|
|
25
|
+
OnlineResourceType,
|
|
29
26
|
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
30
27
|
import { matchProtocol } from '../common/distribution.mapper'
|
|
31
28
|
import { Thesaurus } from './types'
|
|
@@ -158,13 +155,13 @@ export class Gn4FieldMapper {
|
|
|
158
155
|
const rawLinks = getAsArray(
|
|
159
156
|
selectField<SourceWithUnknownProps[]>(source, 'link')
|
|
160
157
|
)
|
|
161
|
-
const
|
|
158
|
+
const onlineResources = rawLinks
|
|
162
159
|
.map((link) => this.mapLink(link))
|
|
163
160
|
.filter((v) => v !== null)
|
|
164
161
|
return {
|
|
165
162
|
...output,
|
|
166
|
-
|
|
167
|
-
}
|
|
163
|
+
onlineResources,
|
|
164
|
+
} as CatalogRecord
|
|
168
165
|
},
|
|
169
166
|
contact: (output, source) => ({
|
|
170
167
|
...output,
|
|
@@ -287,7 +284,7 @@ export class Gn4FieldMapper {
|
|
|
287
284
|
return {
|
|
288
285
|
...output,
|
|
289
286
|
kind,
|
|
290
|
-
}
|
|
287
|
+
} as CatalogRecord
|
|
291
288
|
},
|
|
292
289
|
geom: (output, source) => {
|
|
293
290
|
const geoms = getAsArray(selectField(source, 'geom'))
|
|
@@ -387,7 +384,7 @@ export class Gn4FieldMapper {
|
|
|
387
384
|
return fieldName in this.fields ? this.fields[fieldName] : this.genericField
|
|
388
385
|
}
|
|
389
386
|
|
|
390
|
-
getLinkType(url: string, protocol?: string):
|
|
387
|
+
getLinkType(url: string, protocol?: string): OnlineResourceType {
|
|
391
388
|
if (!protocol) {
|
|
392
389
|
return 'link'
|
|
393
390
|
}
|
|
@@ -406,9 +403,7 @@ export class Gn4FieldMapper {
|
|
|
406
403
|
return 'link'
|
|
407
404
|
}
|
|
408
405
|
|
|
409
|
-
mapLink = (
|
|
410
|
-
sourceLink: SourceWithUnknownProps
|
|
411
|
-
): DatasetDistribution | null => {
|
|
406
|
+
mapLink = (sourceLink: SourceWithUnknownProps): OnlineResource | null => {
|
|
412
407
|
const url = getAsUrl(
|
|
413
408
|
selectFallback(
|
|
414
409
|
selectTranslatedField<string>(sourceLink, 'urlObject', this.lang3),
|
|
@@ -452,20 +447,27 @@ export class Gn4FieldMapper {
|
|
|
452
447
|
type,
|
|
453
448
|
url: url,
|
|
454
449
|
accessServiceProtocol,
|
|
455
|
-
}
|
|
450
|
+
}
|
|
456
451
|
case 'link':
|
|
457
452
|
return {
|
|
458
453
|
...distribution,
|
|
459
454
|
type,
|
|
460
455
|
url: url,
|
|
461
|
-
}
|
|
456
|
+
}
|
|
462
457
|
case 'download':
|
|
463
458
|
return {
|
|
464
459
|
...distribution,
|
|
465
460
|
type,
|
|
466
461
|
url: url,
|
|
467
462
|
...(mimeType && { mimeType }),
|
|
468
|
-
}
|
|
463
|
+
}
|
|
464
|
+
case 'endpoint':
|
|
465
|
+
return {
|
|
466
|
+
...distribution,
|
|
467
|
+
type,
|
|
468
|
+
endpointUrl: url,
|
|
469
|
+
protocol: accessServiceProtocol,
|
|
470
|
+
}
|
|
469
471
|
}
|
|
470
472
|
}
|
|
471
473
|
|
|
@@ -4,10 +4,10 @@ import { Iso19139Converter } from '../iso19139'
|
|
|
4
4
|
import { renameElements } from '../xml-utils'
|
|
5
5
|
import {
|
|
6
6
|
readContacts,
|
|
7
|
-
readDistributions,
|
|
8
7
|
readKind,
|
|
9
8
|
readLandingPage,
|
|
10
9
|
readLineage,
|
|
10
|
+
readOnlineResources,
|
|
11
11
|
readOwnerOrganization,
|
|
12
12
|
readRecordCreated,
|
|
13
13
|
readRecordPublished,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
writeContacts,
|
|
20
20
|
writeContactsForResource,
|
|
21
|
-
writeDistributions,
|
|
22
21
|
writeKind,
|
|
23
22
|
writeLandingPage,
|
|
24
23
|
writeLineage,
|
|
24
|
+
writeOnlineResources,
|
|
25
25
|
writeOwnerOrganization,
|
|
26
26
|
writeRecordCreated,
|
|
27
27
|
writeRecordPublished,
|
|
@@ -48,7 +48,7 @@ export class Iso191153Converter extends Iso19139Converter {
|
|
|
48
48
|
this.readers['ownerOrganization'] = readOwnerOrganization
|
|
49
49
|
this.readers['landingPage'] = readLandingPage
|
|
50
50
|
this.readers['lineage'] = readLineage
|
|
51
|
-
this.readers['
|
|
51
|
+
this.readers['onlineResources'] = readOnlineResources
|
|
52
52
|
|
|
53
53
|
this.writers['uniqueIdentifier'] = writeUniqueIdentifier
|
|
54
54
|
this.writers['kind'] = writeKind
|
|
@@ -63,7 +63,7 @@ export class Iso191153Converter extends Iso19139Converter {
|
|
|
63
63
|
this.writers['ownerOrganization'] = writeOwnerOrganization
|
|
64
64
|
this.writers['landingPage'] = writeLandingPage
|
|
65
65
|
this.writers['lineage'] = writeLineage
|
|
66
|
-
this.writers['
|
|
66
|
+
this.writers['onlineResources'] = writeOnlineResources
|
|
67
67
|
this.writers['status'] = writeStatus
|
|
68
68
|
this.writers['spatialRepresentation'] = writeSpatialRepresentation
|
|
69
69
|
}
|
|
@@ -19,15 +19,16 @@ import {
|
|
|
19
19
|
} from '../function-utils'
|
|
20
20
|
import {
|
|
21
21
|
extractCharacterString,
|
|
22
|
-
|
|
22
|
+
extractDatasetOnlineResources,
|
|
23
23
|
extractDateTime,
|
|
24
24
|
extractRole,
|
|
25
|
+
extractServiceOnlineResources,
|
|
25
26
|
extractUrl,
|
|
26
27
|
findIdentification,
|
|
27
28
|
} from '../iso19139/read-parts'
|
|
28
29
|
import {
|
|
29
|
-
DatasetDistribution,
|
|
30
30
|
Individual,
|
|
31
|
+
OnlineResource,
|
|
31
32
|
Organization,
|
|
32
33
|
RecordKind,
|
|
33
34
|
Role,
|
|
@@ -320,10 +321,17 @@ const getMimeType = pipe(
|
|
|
320
321
|
map(matchMimeType)
|
|
321
322
|
)
|
|
322
323
|
|
|
323
|
-
export function
|
|
324
|
+
export function readOnlineResources(rootEl: XmlElement): OnlineResource[] {
|
|
325
|
+
if (readKind(rootEl) === 'dataset') {
|
|
326
|
+
return pipe(
|
|
327
|
+
findNestedElements('mrd:distributionInfo', 'mrd:MD_Distribution'),
|
|
328
|
+
mapArray(extractDatasetOnlineResources(getMimeType)),
|
|
329
|
+
flattenArray()
|
|
330
|
+
)(rootEl)
|
|
331
|
+
}
|
|
324
332
|
return pipe(
|
|
325
333
|
findNestedElements('mrd:distributionInfo', 'mrd:MD_Distribution'),
|
|
326
|
-
mapArray(
|
|
334
|
+
mapArray(extractServiceOnlineResources()),
|
|
327
335
|
flattenArray()
|
|
328
336
|
)(rootEl)
|
|
329
337
|
}
|
|
@@ -2,7 +2,6 @@ import {
|
|
|
2
2
|
CatalogRecord,
|
|
3
3
|
DatasetRecord,
|
|
4
4
|
Individual,
|
|
5
|
-
ServiceOnlineResource,
|
|
6
5
|
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
7
6
|
import {
|
|
8
7
|
addAttribute,
|
|
@@ -34,14 +33,14 @@ import {
|
|
|
34
33
|
pipe,
|
|
35
34
|
} from '../function-utils'
|
|
36
35
|
import {
|
|
37
|
-
appendDistribution,
|
|
38
36
|
appendKeywords,
|
|
37
|
+
appendOnlineResource,
|
|
38
|
+
appendServiceOnlineResources,
|
|
39
39
|
createDistributionInfo,
|
|
40
40
|
findOrCreateDistribution,
|
|
41
41
|
findOrCreateIdentification,
|
|
42
42
|
getProgressCode,
|
|
43
43
|
getRoleCode,
|
|
44
|
-
getServiceEndpointProtocol,
|
|
45
44
|
removeKeywords,
|
|
46
45
|
writeCharacterString,
|
|
47
46
|
writeDateTime,
|
|
@@ -481,7 +480,7 @@ function removeTransferOptions(rootEl: XmlElement) {
|
|
|
481
480
|
)(rootEl)
|
|
482
481
|
}
|
|
483
482
|
|
|
484
|
-
function
|
|
483
|
+
function appendOnlineResourceFormat(mimeType: string) {
|
|
485
484
|
return appendChildren(
|
|
486
485
|
pipe(
|
|
487
486
|
createElement('mrd:distributionFormat'),
|
|
@@ -494,11 +493,18 @@ function appendDistributionFormat(mimeType: string) {
|
|
|
494
493
|
)
|
|
495
494
|
}
|
|
496
495
|
|
|
497
|
-
export function
|
|
496
|
+
export function writeOnlineResources(
|
|
497
|
+
record: CatalogRecord,
|
|
498
|
+
rootEl: XmlElement
|
|
499
|
+
) {
|
|
498
500
|
removeTransferOptions(rootEl)
|
|
499
501
|
|
|
500
|
-
|
|
501
|
-
|
|
502
|
+
if (record.kind === 'service') {
|
|
503
|
+
appendServiceOnlineResources(record, rootEl)
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
// for each online resource, either find an existing distribution info or create a new one
|
|
507
|
+
record.onlineResources.forEach((onlineResource, index) => {
|
|
502
508
|
pipe(
|
|
503
509
|
fallback(
|
|
504
510
|
pipe(
|
|
@@ -507,7 +513,7 @@ export function writeDistributions(record: DatasetRecord, rootEl: XmlElement) {
|
|
|
507
513
|
),
|
|
508
514
|
appendChildTree(createDistributionInfo())
|
|
509
515
|
),
|
|
510
|
-
|
|
516
|
+
appendOnlineResource(onlineResource, appendOnlineResourceFormat)
|
|
511
517
|
)(rootEl)
|
|
512
518
|
})
|
|
513
519
|
}
|
|
@@ -18,7 +18,6 @@ import {
|
|
|
18
18
|
readAbstract,
|
|
19
19
|
readContacts,
|
|
20
20
|
readContactsForResource,
|
|
21
|
-
readDistributions,
|
|
22
21
|
readIsoTopics,
|
|
23
22
|
readKeywords,
|
|
24
23
|
readKind,
|
|
@@ -46,7 +45,6 @@ import {
|
|
|
46
45
|
writeAbstract,
|
|
47
46
|
writeContacts,
|
|
48
47
|
writeContactsForResource,
|
|
49
|
-
writeDistributions,
|
|
50
48
|
writeGraphicOverviews,
|
|
51
49
|
writeKeywords,
|
|
52
50
|
writeKind,
|
|
@@ -100,7 +98,6 @@ export class Iso19139Converter extends BaseConverter<string> {
|
|
|
100
98
|
spatialRepresentation: readSpatialRepresentation,
|
|
101
99
|
overviews: readOverviews,
|
|
102
100
|
lineage: readLineage,
|
|
103
|
-
distributions: readDistributions,
|
|
104
101
|
onlineResources: readOnlineResources,
|
|
105
102
|
temporalExtents: readTemporalExtents,
|
|
106
103
|
spatialExtents: readSpatialExtents,
|
|
@@ -138,7 +135,6 @@ export class Iso19139Converter extends BaseConverter<string> {
|
|
|
138
135
|
spatialRepresentation: writeSpatialRepresentation,
|
|
139
136
|
overviews: writeGraphicOverviews,
|
|
140
137
|
lineage: writeLineage,
|
|
141
|
-
distributions: writeDistributions,
|
|
142
138
|
onlineResources: writeOnlineResources,
|
|
143
139
|
temporalExtents: writeTemporalExtents,
|
|
144
140
|
spatialExtents: writeSpatialExtents,
|
|
@@ -177,6 +173,7 @@ export class Iso19139Converter extends BaseConverter<string> {
|
|
|
177
173
|
const licenses = this.readers['licenses'](rootEl)
|
|
178
174
|
const overviews = this.readers['overviews'](rootEl)
|
|
179
175
|
const landingPage = this.readers['landingPage'](rootEl)
|
|
176
|
+
const onlineResources = this.readers['onlineResources'](rootEl)
|
|
180
177
|
|
|
181
178
|
if (kind === 'dataset') {
|
|
182
179
|
const status = this.readers['status'](rootEl)
|
|
@@ -185,7 +182,6 @@ export class Iso19139Converter extends BaseConverter<string> {
|
|
|
185
182
|
const spatialExtents = this.readers['spatialExtents'](rootEl)
|
|
186
183
|
const temporalExtents = this.readers['temporalExtents'](rootEl)
|
|
187
184
|
const lineage = this.readers['lineage'](rootEl)
|
|
188
|
-
const distributions = this.readers['distributions'](rootEl)
|
|
189
185
|
const updateFrequency = this.readers['updateFrequency'](rootEl)
|
|
190
186
|
|
|
191
187
|
return {
|
|
@@ -215,12 +211,11 @@ export class Iso19139Converter extends BaseConverter<string> {
|
|
|
215
211
|
overviews,
|
|
216
212
|
spatialExtents,
|
|
217
213
|
temporalExtents,
|
|
218
|
-
|
|
214
|
+
onlineResources,
|
|
219
215
|
updateFrequency,
|
|
220
216
|
...(landingPage && { landingPage }),
|
|
221
217
|
} as DatasetRecord
|
|
222
218
|
} else {
|
|
223
|
-
const onlineResources = this.readers['onlineResources'](rootEl)
|
|
224
219
|
return {
|
|
225
220
|
uniqueIdentifier,
|
|
226
221
|
kind,
|
|
@@ -307,6 +302,8 @@ export class Iso19139Converter extends BaseConverter<string> {
|
|
|
307
302
|
fieldChanged('licenses') && this.writers['licenses'](record, rootEl)
|
|
308
303
|
fieldChanged('otherConstraints') &&
|
|
309
304
|
this.writers['otherConstraints'](record, rootEl)
|
|
305
|
+
fieldChanged('onlineResources') &&
|
|
306
|
+
this.writers['onlineResources'](record, rootEl)
|
|
310
307
|
|
|
311
308
|
if (record.kind === 'dataset') {
|
|
312
309
|
fieldChanged('status') && this.writers['status'](record, rootEl)
|
|
@@ -319,12 +316,7 @@ export class Iso19139Converter extends BaseConverter<string> {
|
|
|
319
316
|
this.writers['temporalExtents'](record, rootEl)
|
|
320
317
|
fieldChanged('spatialExtents') &&
|
|
321
318
|
this.writers['spatialExtents'](record, rootEl)
|
|
322
|
-
fieldChanged('distributions') &&
|
|
323
|
-
this.writers['distributions'](record, rootEl)
|
|
324
319
|
fieldChanged('lineage') && this.writers['lineage'](record, rootEl)
|
|
325
|
-
} else {
|
|
326
|
-
fieldChanged('onlineResources') &&
|
|
327
|
-
this.writers['onlineResources'](record, rootEl)
|
|
328
320
|
}
|
|
329
321
|
|
|
330
322
|
this.beforeDocumentCreation(rootEl)
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Constraint,
|
|
3
|
-
|
|
3
|
+
DatasetOnlineResource,
|
|
4
4
|
GraphicOverview,
|
|
5
5
|
Individual,
|
|
6
6
|
Keyword,
|
|
7
|
+
OnlineResource,
|
|
7
8
|
Organization,
|
|
8
9
|
RecordKind,
|
|
9
10
|
RecordStatus,
|
|
@@ -326,12 +327,12 @@ const getMimeType = pipe(
|
|
|
326
327
|
)
|
|
327
328
|
|
|
328
329
|
/**
|
|
329
|
-
* Extract
|
|
330
|
+
* Extract online resources from an MD_Distribution element
|
|
330
331
|
* @param getMimeTypeFn This function starts from a gmd:transferOptions element
|
|
331
332
|
*/
|
|
332
|
-
export function
|
|
333
|
+
export function extractDatasetOnlineResources(
|
|
333
334
|
getMimeTypeFn: ChainableFunction<XmlElement, string>
|
|
334
|
-
): ChainableFunction<XmlElement,
|
|
335
|
+
): ChainableFunction<XmlElement, DatasetOnlineResource[]> {
|
|
335
336
|
const getUrl = pipe(findChildElement('gmd:linkage'), extractMandatoryUrl())
|
|
336
337
|
const getProtocolStr = pipe(
|
|
337
338
|
findChildElement('gmd:protocol'),
|
|
@@ -774,14 +775,6 @@ export function readLineage(rootEl: XmlElement): string {
|
|
|
774
775
|
)(rootEl)
|
|
775
776
|
}
|
|
776
777
|
|
|
777
|
-
export function readDistributions(rootEl: XmlElement): DatasetDistribution[] {
|
|
778
|
-
return pipe(
|
|
779
|
-
findNestedElements('gmd:distributionInfo', 'gmd:MD_Distribution'),
|
|
780
|
-
mapArray(extractDatasetDistributions(getMimeType)),
|
|
781
|
-
flattenArray()
|
|
782
|
-
)(rootEl)
|
|
783
|
-
}
|
|
784
|
-
|
|
785
778
|
export function readUpdateFrequency(rootEl: XmlElement): UpdateFrequency {
|
|
786
779
|
return pipe(
|
|
787
780
|
findIdentification(),
|
|
@@ -845,9 +838,14 @@ export function extractServiceOnlineResources(): ChainableFunction<
|
|
|
845
838
|
)
|
|
846
839
|
}
|
|
847
840
|
|
|
848
|
-
export function readOnlineResources(
|
|
849
|
-
rootEl
|
|
850
|
-
|
|
841
|
+
export function readOnlineResources(rootEl: XmlElement): OnlineResource[] {
|
|
842
|
+
if (readKind(rootEl) === 'dataset') {
|
|
843
|
+
return pipe(
|
|
844
|
+
findNestedElements('gmd:distributionInfo', 'gmd:MD_Distribution'),
|
|
845
|
+
mapArray(extractDatasetOnlineResources(getMimeType)),
|
|
846
|
+
flattenArray()
|
|
847
|
+
)(rootEl)
|
|
848
|
+
}
|
|
851
849
|
return pipe(
|
|
852
850
|
findNestedElements('gmd:distributionInfo', 'gmd:MD_Distribution'),
|
|
853
851
|
mapArray(extractServiceOnlineResources()),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CatalogRecord,
|
|
3
3
|
Constraint,
|
|
4
|
-
|
|
4
|
+
DatasetOnlineResource,
|
|
5
5
|
DatasetRecord,
|
|
6
6
|
DatasetServiceDistribution,
|
|
7
7
|
Individual,
|
|
@@ -29,7 +29,6 @@ import {
|
|
|
29
29
|
tap,
|
|
30
30
|
} from '../function-utils'
|
|
31
31
|
import {
|
|
32
|
-
XmlElement,
|
|
33
32
|
addAttribute,
|
|
34
33
|
appendChildren,
|
|
35
34
|
createChild,
|
|
@@ -44,6 +43,7 @@ import {
|
|
|
44
43
|
removeChildren,
|
|
45
44
|
removeChildrenByName,
|
|
46
45
|
setTextContent,
|
|
46
|
+
XmlElement,
|
|
47
47
|
} from '../xml-utils'
|
|
48
48
|
import { readKind } from './read-parts'
|
|
49
49
|
import { writeGeometry } from './utils/geometry'
|
|
@@ -179,7 +179,7 @@ export function getRoleCode(role: Role): string {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
export function
|
|
182
|
+
export function getServiceDistributionProtocol(
|
|
183
183
|
distribution: DatasetServiceDistribution
|
|
184
184
|
): string {
|
|
185
185
|
switch (distribution.accessServiceProtocol.toLowerCase()) {
|
|
@@ -610,11 +610,11 @@ export function createLicense(license: Constraint) {
|
|
|
610
610
|
)
|
|
611
611
|
}
|
|
612
612
|
|
|
613
|
-
export function
|
|
613
|
+
export function removeOnlineResources() {
|
|
614
614
|
return pipe(removeChildrenByName('gmd:distributionInfo'))
|
|
615
615
|
}
|
|
616
616
|
|
|
617
|
-
function
|
|
617
|
+
function appendOnlineResourceFormat(mimeType: string) {
|
|
618
618
|
return appendChildren(
|
|
619
619
|
pipe(
|
|
620
620
|
createElement('gmd:distributionFormat'),
|
|
@@ -638,8 +638,8 @@ export function createDistributionInfo() {
|
|
|
638
638
|
}
|
|
639
639
|
|
|
640
640
|
// apply to MD_Distribution
|
|
641
|
-
export function
|
|
642
|
-
|
|
641
|
+
export function appendOnlineResource(
|
|
642
|
+
onlineResource: DatasetOnlineResource,
|
|
643
643
|
appendFormatFn: (
|
|
644
644
|
mimeType: string
|
|
645
645
|
) => ChainableFunction<XmlElement, XmlElement>
|
|
@@ -647,16 +647,16 @@ export function appendDistribution(
|
|
|
647
647
|
let name: string
|
|
648
648
|
let functionCode: string
|
|
649
649
|
let protocol: string
|
|
650
|
-
if (
|
|
651
|
-
name =
|
|
650
|
+
if (onlineResource.type === 'service') {
|
|
651
|
+
name = onlineResource.identifierInService // this is for GeoNetwork to know the layer name
|
|
652
652
|
functionCode = 'download'
|
|
653
|
-
protocol =
|
|
654
|
-
} else if (
|
|
655
|
-
name =
|
|
653
|
+
protocol = getServiceDistributionProtocol(onlineResource)
|
|
654
|
+
} else if (onlineResource.type === 'download') {
|
|
655
|
+
name = onlineResource.name
|
|
656
656
|
functionCode = 'download'
|
|
657
657
|
protocol = 'WWW:DOWNLOAD'
|
|
658
658
|
} else {
|
|
659
|
-
name =
|
|
659
|
+
name = onlineResource.name
|
|
660
660
|
functionCode = 'information'
|
|
661
661
|
protocol = 'WWW:LINK'
|
|
662
662
|
}
|
|
@@ -666,12 +666,12 @@ export function appendDistribution(
|
|
|
666
666
|
createChild('gmd:MD_DigitalTransferOptions'),
|
|
667
667
|
createChild('gmd:onLine'),
|
|
668
668
|
createChild('gmd:CI_OnlineResource'),
|
|
669
|
-
writeLinkage(
|
|
670
|
-
'description' in
|
|
669
|
+
writeLinkage(onlineResource.url),
|
|
670
|
+
'description' in onlineResource
|
|
671
671
|
? appendChildren(
|
|
672
672
|
pipe(
|
|
673
673
|
createElement('gmd:description'),
|
|
674
|
-
writeCharacterString(
|
|
674
|
+
writeCharacterString(onlineResource.description)
|
|
675
675
|
)
|
|
676
676
|
)
|
|
677
677
|
: noop,
|
|
@@ -695,7 +695,9 @@ export function appendDistribution(
|
|
|
695
695
|
)
|
|
696
696
|
)
|
|
697
697
|
return pipe(
|
|
698
|
-
'mimeType' in
|
|
698
|
+
'mimeType' in onlineResource
|
|
699
|
+
? appendFormatFn(onlineResource.mimeType)
|
|
700
|
+
: noop,
|
|
699
701
|
appendTransferOptions
|
|
700
702
|
)
|
|
701
703
|
}
|
|
@@ -1032,20 +1034,6 @@ export function writeGraphicOverviews(
|
|
|
1032
1034
|
)(rootEl)
|
|
1033
1035
|
}
|
|
1034
1036
|
|
|
1035
|
-
export function writeDistributions(record: DatasetRecord, rootEl: XmlElement) {
|
|
1036
|
-
pipe(
|
|
1037
|
-
removeDistributions(),
|
|
1038
|
-
appendChildren(
|
|
1039
|
-
...record.distributions.map((d) =>
|
|
1040
|
-
pipe(
|
|
1041
|
-
createDistributionInfo(),
|
|
1042
|
-
appendDistribution(d, appendDistributionFormat)
|
|
1043
|
-
)
|
|
1044
|
-
)
|
|
1045
|
-
)
|
|
1046
|
-
)(rootEl)
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
1037
|
export function writeLineage(record: DatasetRecord, rootEl: XmlElement) {
|
|
1050
1038
|
pipe(
|
|
1051
1039
|
findNestedChildOrCreate(
|
|
@@ -1127,16 +1115,40 @@ export function createOnlineResource(onlineResource: ServiceOnlineResource) {
|
|
|
1127
1115
|
)
|
|
1128
1116
|
}
|
|
1129
1117
|
|
|
1130
|
-
export function
|
|
1131
|
-
record:
|
|
1118
|
+
export function appendDatasetOnlineResources(
|
|
1119
|
+
record: DatasetRecord,
|
|
1132
1120
|
rootEl: XmlElement
|
|
1133
1121
|
) {
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1122
|
+
appendChildren(
|
|
1123
|
+
...record.onlineResources.map((d) =>
|
|
1124
|
+
pipe(
|
|
1125
|
+
createDistributionInfo(),
|
|
1126
|
+
appendOnlineResource(d, appendOnlineResourceFormat)
|
|
1127
|
+
)
|
|
1128
|
+
)
|
|
1137
1129
|
)(rootEl)
|
|
1138
1130
|
}
|
|
1139
1131
|
|
|
1132
|
+
export function appendServiceOnlineResources(
|
|
1133
|
+
record: ServiceRecord,
|
|
1134
|
+
rootEl: XmlElement
|
|
1135
|
+
) {
|
|
1136
|
+
appendChildren(...record.onlineResources.map(createOnlineResource))(rootEl)
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
export function writeOnlineResources(
|
|
1140
|
+
record: CatalogRecord,
|
|
1141
|
+
rootEl: XmlElement
|
|
1142
|
+
) {
|
|
1143
|
+
removeOnlineResources()(rootEl)
|
|
1144
|
+
|
|
1145
|
+
if (record.kind === 'dataset') {
|
|
1146
|
+
appendDatasetOnlineResources(record, rootEl)
|
|
1147
|
+
return
|
|
1148
|
+
}
|
|
1149
|
+
appendServiceOnlineResources(record, rootEl)
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1140
1152
|
export function writeTemporalExtents(
|
|
1141
1153
|
record: DatasetRecord,
|
|
1142
1154
|
rootEl: XmlElement
|