geonetwork-ui 2.4.0-dev.83f48876 → 2.4.0-dev.86d11ddb

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.
Files changed (568) hide show
  1. package/esm2022/libs/api/metadata-converter/src/index.mjs +2 -2
  2. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +10 -3
  3. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.mjs +1 -1
  4. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.mjs +5 -5
  5. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +7 -4
  6. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +10 -7
  7. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +12 -17
  8. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +35 -7
  9. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.mjs +31 -0
  10. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +50 -33
  11. package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +27 -4
  12. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +96 -40
  13. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +11 -1
  14. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +51 -7
  15. package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +28 -1
  16. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  17. package/esm2022/libs/common/domain/src/lib/model/user/user.model.mjs +1 -1
  18. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  19. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  20. package/esm2022/libs/data-access/gn4/src/fixtures/site.fixtures.mjs +5 -5
  21. package/esm2022/libs/data-access/gn4/src/fixtures/ui.fixtures.mjs +3 -3
  22. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +1 -1
  23. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +1 -1
  24. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +1 -1
  25. package/esm2022/libs/feature/editor/src/index.mjs +2 -1
  26. package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +2 -1
  27. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +6 -1
  28. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +4 -1
  29. package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +17 -0
  30. package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +80 -0
  31. package/esm2022/libs/feature/editor/src/lib/components/import-record/import-record.component.mjs +93 -0
  32. package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +71 -0
  33. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +145 -0
  34. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date-updated/form-field-date-updated.component.mjs +19 -0
  35. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +31 -40
  36. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +11 -9
  37. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +101 -0
  38. 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
  39. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.mjs +44 -0
  40. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +103 -0
  41. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +12 -16
  42. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +9 -8
  43. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +140 -5
  44. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +41 -68
  45. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +17 -15
  46. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +45 -44
  47. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -2
  48. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +5 -3
  49. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +8 -8
  50. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -4
  51. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +69 -8
  52. package/esm2022/libs/feature/editor/src/lib/models/editor-config.model.mjs +1 -1
  53. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +5 -1
  54. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +6 -6
  55. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +7 -6
  56. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +8 -5
  57. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +6 -7
  58. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +8 -7
  59. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +7 -6
  60. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +7 -26
  61. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +29 -13
  62. package/esm2022/libs/feature/map/src/lib/style/map-style.fixtures.mjs +3 -3
  63. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +10 -5
  64. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
  65. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +1 -1
  66. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +1 -1
  67. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -2
  68. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +3 -3
  69. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +42 -8
  70. package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +6 -2
  71. package/esm2022/libs/ui/dataviz/src/lib/table/table.fixtures.mjs +3 -3
  72. package/esm2022/libs/ui/elements/src/index.mjs +3 -2
  73. package/esm2022/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.mjs +27 -0
  74. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +2 -2
  75. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +1 -1
  76. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +2 -2
  77. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +6 -5
  78. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
  79. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
  80. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +5 -11
  81. package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +3 -3
  82. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +5 -5
  83. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +11 -5
  84. package/esm2022/libs/ui/inputs/src/index.mjs +6 -1
  85. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +24 -7
  86. package/esm2022/libs/ui/inputs/src/lib/badge/badge.component.mjs +5 -3
  87. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +8 -1
  88. package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +11 -4
  89. package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +9 -3
  90. package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +26 -24
  91. package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +87 -0
  92. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +19 -15
  93. package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +32 -0
  94. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +7 -21
  95. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +6 -17
  96. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +3 -7
  97. package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +43 -0
  98. package/esm2022/libs/ui/layout/src/index.mjs +3 -1
  99. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +5 -3
  100. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
  101. package/esm2022/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.mjs +29 -0
  102. package/esm2022/libs/ui/layout/src/lib/sortable-list/sortable-list.component.mjs +43 -0
  103. package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +3 -3
  104. package/esm2022/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.mjs +7 -7
  105. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +49 -11
  106. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +23 -11
  107. package/esm2022/libs/ui/widgets/src/index.mjs +2 -1
  108. package/esm2022/libs/ui/widgets/src/lib/popover/popover.component.mjs +68 -0
  109. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +10 -10
  110. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +1 -1
  111. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +1 -1
  112. package/esm2022/libs/util/shared/src/lib/services/theme.service.mjs +2 -1
  113. package/esm2022/libs/util/shared/src/lib/utils/bytes-convert.mjs +4 -1
  114. package/esm2022/translations/de.json +83 -19
  115. package/esm2022/translations/en.json +76 -12
  116. package/esm2022/translations/es.json +73 -9
  117. package/esm2022/translations/fr.json +87 -23
  118. package/esm2022/translations/it.json +76 -12
  119. package/esm2022/translations/nl.json +73 -9
  120. package/esm2022/translations/pt.json +73 -9
  121. package/fesm2022/geonetwork-ui.mjs +3567 -1659
  122. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  123. package/libs/api/metadata-converter/src/index.d.ts +1 -1
  124. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  125. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts +3 -3
  126. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  127. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts +2 -6
  128. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts.map +1 -1
  129. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +2 -2
  130. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -1
  131. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts +1 -1
  132. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
  133. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
  134. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +12 -6
  135. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  136. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts +5 -0
  137. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts.map +1 -0
  138. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +10 -8
  139. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  140. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +7 -0
  141. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
  142. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +18 -8
  143. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  144. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
  145. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +22 -2
  146. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  147. package/libs/common/domain/src/lib/model/record/contact.model.d.ts +1 -0
  148. package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
  149. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +9 -7
  150. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  151. package/libs/common/domain/src/lib/model/user/user.model.d.ts +1 -1
  152. package/libs/common/domain/src/lib/model/user/user.model.d.ts.map +1 -1
  153. package/libs/common/domain/src/lib/platform.service.interface.d.ts +16 -0
  154. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  155. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +15 -0
  156. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  157. package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts +2 -2
  158. package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts.map +1 -1
  159. package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts +1 -1
  160. package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts.map +1 -1
  161. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +2 -2
  162. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  163. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +6 -6
  164. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  165. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +3 -3
  166. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  167. package/libs/feature/editor/src/index.d.ts +1 -0
  168. package/libs/feature/editor/src/index.d.ts.map +1 -1
  169. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +1 -0
  170. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
  171. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +5 -0
  172. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
  173. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +1 -0
  174. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  175. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts +8 -0
  176. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts.map +1 -0
  177. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts +33 -0
  178. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -0
  179. package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts +33 -0
  180. package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts.map +1 -0
  181. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts +15 -0
  182. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -0
  183. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +41 -0
  184. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts.map +1 -0
  185. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date-updated/form-field-date-updated.component.d.ts +9 -0
  186. 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
  187. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts +11 -19
  188. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -1
  189. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +6 -4
  190. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -1
  191. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +22 -0
  192. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +1 -0
  193. 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
  194. 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
  195. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts +15 -0
  196. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts.map +1 -0
  197. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +31 -0
  198. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -0
  199. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +4 -6
  200. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
  201. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts +4 -3
  202. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -1
  203. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +28 -0
  204. 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
  205. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +10 -16
  206. 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
  207. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +5 -5
  208. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts.map +1 -1
  209. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +18 -20
  210. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  211. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +1 -1
  212. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
  213. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +5 -3
  214. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
  215. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +2 -1
  216. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  217. package/libs/feature/editor/src/lib/fields.config.d.ts +16 -0
  218. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  219. package/libs/feature/editor/src/lib/models/editor-config.model.d.ts +6 -0
  220. package/libs/feature/editor/src/lib/models/editor-config.model.d.ts.map +1 -1
  221. package/libs/feature/editor/src/lib/services/editor.service.d.ts +1 -0
  222. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  223. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts +1 -1
  224. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
  225. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +6 -6
  226. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
  227. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts +1 -1
  228. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
  229. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +1 -1
  230. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  231. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +1 -1
  232. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
  233. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +1 -1
  234. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
  235. package/libs/feature/map/src/lib/feature-map.module.d.ts +16 -21
  236. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  237. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +1 -1
  238. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
  239. package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts +2 -2
  240. package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts.map +1 -1
  241. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  242. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +3 -3
  243. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  244. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -2
  245. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  246. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +2 -2
  247. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  248. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +7 -7
  249. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  250. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +12 -3
  251. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
  252. package/libs/feature/search/src/lib/state/search.facade.d.ts +1 -0
  253. package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
  254. package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts +2 -2
  255. package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts.map +1 -1
  256. package/libs/ui/elements/src/index.d.ts +2 -1
  257. package/libs/ui/elements/src/index.d.ts.map +1 -1
  258. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts +18 -0
  259. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -0
  260. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +2 -2
  261. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  262. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -7
  263. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
  264. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +2 -2
  265. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  266. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts +2 -2
  267. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts.map +1 -1
  268. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +0 -3
  269. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
  270. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
  271. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +8 -6
  272. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  273. package/libs/ui/inputs/src/index.d.ts +5 -0
  274. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  275. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +9 -1
  276. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  277. package/libs/ui/inputs/src/lib/badge/badge.component.d.ts.map +1 -1
  278. package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
  279. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  280. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -1
  281. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
  282. package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts +5 -3
  283. package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts.map +1 -1
  284. package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts +24 -0
  285. package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts.map +1 -0
  286. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +4 -5
  287. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -1
  288. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts +16 -0
  289. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts.map +1 -0
  290. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +0 -4
  291. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  292. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +2 -4
  293. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  294. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +34 -35
  295. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  296. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +18 -0
  297. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -0
  298. package/libs/ui/layout/src/index.d.ts +2 -0
  299. package/libs/ui/layout/src/index.d.ts.map +1 -1
  300. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts +2 -2
  301. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts.map +1 -1
  302. package/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.d.ts +1 -1
  303. package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts +20 -0
  304. package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts.map +1 -0
  305. package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts +14 -0
  306. package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -0
  307. package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts +3 -3
  308. package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts.map +1 -1
  309. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +10 -1
  310. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
  311. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +8 -4
  312. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  313. package/libs/ui/widgets/src/index.d.ts +1 -0
  314. package/libs/ui/widgets/src/index.d.ts.map +1 -1
  315. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts +19 -0
  316. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts.map +1 -0
  317. package/libs/util/app-config/src/lib/fixtures.d.ts +8 -8
  318. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  319. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
  320. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
  321. package/libs/util/shared/src/lib/links/link-utils.d.ts +6 -6
  322. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  323. package/libs/util/shared/src/lib/services/theme.service.d.ts.map +1 -1
  324. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts +2 -1
  325. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts.map +1 -1
  326. package/package.json +1 -1
  327. package/src/libs/api/metadata-converter/src/index.ts +1 -1
  328. package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +7 -2
  329. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +6 -2
  330. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +38 -13
  331. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +6 -2
  332. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +18 -16
  333. package/src/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.ts +2 -6
  334. package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +4 -4
  335. package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +12 -4
  336. package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +14 -8
  337. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +11 -16
  338. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +85 -17
  339. package/src/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.ts +39 -0
  340. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +118 -64
  341. package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +33 -6
  342. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +156 -72
  343. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +12 -1
  344. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +90 -15
  345. package/src/libs/common/domain/src/lib/model/record/contact.model.ts +28 -0
  346. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +10 -8
  347. package/src/libs/common/domain/src/lib/model/user/user.model.ts +1 -1
  348. package/src/libs/common/domain/src/lib/platform.service.interface.ts +30 -0
  349. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +20 -0
  350. package/src/libs/common/fixtures/src/index.ts +1 -1
  351. package/src/libs/common/fixtures/src/lib/editor/editor.fixtures.ts +37 -37
  352. package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-request.ts → aggregations-request.fixtures.ts} +1 -3
  353. package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-response.ts → aggregations-response.fixtures.ts} +6 -8
  354. package/src/libs/common/fixtures/src/lib/elasticsearch/{full-response.ts → full-response.fixtures.ts} +1 -3
  355. package/src/libs/common/fixtures/src/lib/elasticsearch/index.ts +5 -5
  356. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +1 -3
  357. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata.fixtures.ts +1739 -1742
  358. package/src/libs/common/fixtures/src/lib/elasticsearch/{search-requests.ts → search-requests.fixtures.ts} +1 -3
  359. package/src/libs/common/fixtures/src/lib/elasticsearch/{search-responses.ts → search-responses.fixtures.ts} +4 -6
  360. package/src/libs/common/fixtures/src/lib/geojson.fixtures.ts +57178 -57195
  361. package/src/libs/common/fixtures/src/lib/gn4/groups.fixtures.ts +2 -4
  362. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +233 -164
  363. package/src/libs/common/fixtures/src/lib/ol-feature.fixtures.ts +10 -0
  364. package/src/libs/common/fixtures/src/lib/organisations.fixture.ts +37 -3
  365. package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +9 -7
  366. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +9 -9
  367. package/src/libs/common/fixtures/src/lib/repository.fixtures.ts +4 -4
  368. package/src/libs/common/fixtures/src/lib/search/aggregations.ts +2 -3
  369. package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +14 -15
  370. package/src/libs/common/fixtures/src/lib/user.fixtures.ts +32 -15
  371. package/src/libs/data-access/gn4/src/fixtures/site.fixtures.ts +4 -4
  372. package/src/libs/data-access/gn4/src/fixtures/ui.fixtures.ts +2 -2
  373. package/src/libs/feature/catalog/src/lib/sources/sources.fixture.ts +1 -1
  374. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +3 -3
  375. package/src/libs/feature/dataviz/src/lib/figure/figure.fixtures.ts +2 -2
  376. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +6 -6
  377. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +4 -4
  378. package/src/libs/feature/editor/src/index.ts +1 -0
  379. package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +2 -0
  380. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +15 -0
  381. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +4 -0
  382. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +15 -0
  383. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +18 -0
  384. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.html +26 -0
  385. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +90 -0
  386. package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.html +43 -0
  387. package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.ts +129 -0
  388. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.html +35 -0
  389. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +79 -0
  390. 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
  391. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +66 -0
  392. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +211 -0
  393. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date-updated/form-field-date-updated.component.css +0 -0
  394. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date-updated/form-field-date-updated.component.html +4 -0
  395. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-date-updated/form-field-date-updated.component.ts +21 -0
  396. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +7 -16
  397. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +44 -45
  398. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.css +8 -0
  399. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +13 -5
  400. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.css +0 -0
  401. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +4 -0
  402. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts +128 -0
  403. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.css +0 -0
  404. 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
  405. 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
  406. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.css +0 -0
  407. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.html +6 -0
  408. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.ts +48 -0
  409. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.css +0 -0
  410. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +11 -0
  411. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +122 -0
  412. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +15 -8
  413. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +11 -14
  414. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.html +5 -3
  415. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.ts +11 -4
  416. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +20 -1
  417. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +212 -1
  418. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.css +4 -0
  419. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +31 -4
  420. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +43 -86
  421. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.css +4 -0
  422. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.html +16 -14
  423. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +17 -15
  424. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +110 -68
  425. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +51 -44
  426. package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -1
  427. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +32 -29
  428. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +9 -3
  429. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +1 -1
  430. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -1
  431. package/src/libs/feature/editor/src/lib/fields.config.ts +76 -7
  432. package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +12 -0
  433. package/src/libs/feature/editor/src/lib/services/editor.service.ts +7 -0
  434. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +3 -0
  435. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +12 -8
  436. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +5 -0
  437. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +1 -1
  438. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +10 -7
  439. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +1 -1
  440. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +5 -0
  441. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.html +1 -1
  442. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +6 -1
  443. package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -15
  444. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +24 -1
  445. package/src/libs/feature/map/src/lib/map-context/map-context.fixtures.ts +26 -22
  446. package/src/libs/feature/map/src/lib/style/map-style.fixtures.ts +29 -27
  447. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +8 -4
  448. package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +3 -3
  449. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +2 -2
  450. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +2 -2
  451. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +5 -1
  452. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +2 -1
  453. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +3 -1
  454. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +61 -3
  455. package/src/libs/feature/search/src/lib/state/fixtures/search-state.fixtures.ts +2 -2
  456. package/src/libs/feature/search/src/lib/state/search.facade.ts +6 -0
  457. package/src/libs/ui/dataviz/src/lib/chart/chart.fixtures.ts +2 -2
  458. package/src/libs/ui/dataviz/src/lib/table/table.fixtures.ts +2 -2
  459. package/src/libs/ui/elements/src/index.ts +2 -1
  460. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.css +0 -0
  461. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.html +12 -0
  462. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.ts +37 -0
  463. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +4 -4
  464. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +7 -7
  465. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -3
  466. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +13 -17
  467. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +1 -1
  468. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +7 -1
  469. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +12 -8
  470. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +14 -20
  471. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +0 -10
  472. package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.html +1 -1
  473. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +2 -2
  474. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +8 -2
  475. package/src/libs/ui/inputs/src/index.ts +5 -0
  476. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.css +25 -18
  477. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +38 -24
  478. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +19 -4
  479. package/src/libs/ui/inputs/src/lib/badge/badge.component.html +12 -3
  480. package/src/libs/ui/inputs/src/lib/badge/badge.component.ts +2 -1
  481. package/src/libs/ui/inputs/src/lib/button/button.component.ts +15 -1
  482. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.css +7 -2
  483. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +14 -6
  484. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +7 -1
  485. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.css +7 -2
  486. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.html +28 -23
  487. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +7 -1
  488. package/src/libs/ui/inputs/src/lib/editable-label/editable-label.directive.ts +40 -26
  489. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.css +4 -0
  490. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +89 -0
  491. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +92 -0
  492. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.css +4 -0
  493. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +76 -68
  494. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +17 -14
  495. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.css +4 -3
  496. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +0 -1
  497. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +1 -2
  498. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +3 -2
  499. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +3 -28
  500. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +4 -3
  501. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +4 -16
  502. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
  503. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.css +9 -0
  504. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +37 -0
  505. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +33 -0
  506. package/src/libs/ui/layout/src/index.ts +2 -0
  507. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +8 -3
  508. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts +4 -3
  509. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +1 -0
  510. package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.css +0 -0
  511. package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.html +15 -0
  512. package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.ts +44 -0
  513. package/src/libs/ui/layout/src/lib/sortable-list/sortable-list.component.html +37 -0
  514. package/src/libs/ui/{elements → layout}/src/lib/sortable-list/sortable-list.component.ts +15 -18
  515. package/src/libs/ui/map/src/lib/ui-map.module.ts +1 -1
  516. package/src/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.ts +7 -6
  517. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +10 -1
  518. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +55 -3
  519. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +16 -4
  520. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +14 -15
  521. package/src/libs/ui/widgets/src/index.ts +1 -0
  522. package/src/libs/ui/widgets/src/lib/popover/popover.component.css +0 -0
  523. package/src/libs/ui/widgets/src/lib/popover/popover.component.html +3 -0
  524. package/src/libs/ui/widgets/src/lib/popover/popover.component.ts +85 -0
  525. package/src/libs/util/app-config/src/lib/fixtures.ts +9 -9
  526. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +4 -3
  527. package/src/libs/util/shared/src/lib/links/link-utils.ts +6 -6
  528. package/src/libs/util/shared/src/lib/services/theme.service.ts +1 -0
  529. package/src/libs/util/shared/src/lib/utils/bytes-convert.ts +4 -1
  530. package/tailwind.base.config.js +1 -0
  531. package/tailwind.base.css +49 -6
  532. package/translations/de.json +83 -19
  533. package/translations/en.json +76 -12
  534. package/translations/es.json +73 -9
  535. package/translations/fr.json +87 -23
  536. package/translations/it.json +76 -12
  537. package/translations/nl.json +73 -9
  538. package/translations/pt.json +73 -9
  539. package/translations/sk.json +74 -10
  540. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +0 -15
  541. 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
  542. 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
  543. package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +0 -43
  544. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +0 -8
  545. 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
  546. 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
  547. 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
  548. 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
  549. 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
  550. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +0 -22
  551. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +0 -1
  552. package/src/libs/common/fixtures/src/lib/ol-feature.fixture.ts +0 -7
  553. package/src/libs/common/fixtures/src/lib/utils/freeze.ts +0 -10
  554. package/src/libs/common/fixtures/src/lib/utils/index.ts +0 -1
  555. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +0 -8
  556. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +0 -70
  557. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +0 -4
  558. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +0 -15
  559. 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
  560. 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
  561. 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
  562. 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
  563. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +0 -36
  564. /package/src/libs/feature/editor/src/lib/components/{overview-upload/overview-upload.component.css → contact-card/contact-card.component.css} +0 -0
  565. /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.css → generic-keywords/generic-keywords.component.css} +0 -0
  566. /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 → import-record/import-record.component.css} +0 -0
  567. /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.css → online-resource-card/online-resource-card.component.css} +0 -0
  568. /package/src/libs/ui/{elements → layout}/src/lib/sortable-list/sortable-list.component.css +0 -0
@@ -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,
@@ -34,6 +33,7 @@ import {
34
33
  readResourcePublished,
35
34
  readResourceUpdated,
36
35
  readSecurityConstraints,
36
+ readSpatialExtents,
37
37
  readSpatialRepresentation,
38
38
  readStatus,
39
39
  readTemporalExtents,
@@ -45,7 +45,6 @@ import {
45
45
  writeAbstract,
46
46
  writeContacts,
47
47
  writeContactsForResource,
48
- writeDistributions,
49
48
  writeGraphicOverviews,
50
49
  writeKeywords,
51
50
  writeKind,
@@ -54,12 +53,12 @@ import {
54
53
  writeLineage,
55
54
  writeOnlineResources,
56
55
  writeOtherConstraints,
57
- writeOwnerOrganization,
58
56
  writeRecordUpdated,
59
57
  writeResourceCreated,
60
58
  writeResourcePublished,
61
59
  writeResourceUpdated,
62
60
  writeSecurityConstraints,
61
+ writeSpatialExtents,
63
62
  writeSpatialRepresentation,
64
63
  writeStatus,
65
64
  writeTemporalExtents,
@@ -98,11 +97,10 @@ export class Iso19139Converter extends BaseConverter<string> {
98
97
  spatialRepresentation: readSpatialRepresentation,
99
98
  overviews: readOverviews,
100
99
  lineage: readLineage,
101
- distributions: readDistributions,
102
100
  onlineResources: readOnlineResources,
103
101
  temporalExtents: readTemporalExtents,
102
+ spatialExtents: readSpatialExtents,
104
103
  // TODO
105
- spatialExtents: () => [],
106
104
  extras: () => undefined,
107
105
  landingPage: () => undefined,
108
106
  languages: () => [],
@@ -114,7 +112,7 @@ export class Iso19139Converter extends BaseConverter<string> {
114
112
  > = {
115
113
  uniqueIdentifier: writeUniqueIdentifier,
116
114
  kind: writeKind,
117
- ownerOrganization: writeOwnerOrganization,
115
+ ownerOrganization: () => undefined, // fixme: find a way to store this value properly
118
116
  recordUpdated: writeRecordUpdated,
119
117
  recordCreated: () => undefined, // not supported in ISO19139
120
118
  recordPublished: () => undefined, // not supported in ISO19139
@@ -136,11 +134,10 @@ export class Iso19139Converter extends BaseConverter<string> {
136
134
  spatialRepresentation: writeSpatialRepresentation,
137
135
  overviews: writeGraphicOverviews,
138
136
  lineage: writeLineage,
139
- distributions: writeDistributions,
140
137
  onlineResources: writeOnlineResources,
141
138
  temporalExtents: writeTemporalExtents,
139
+ spatialExtents: writeSpatialExtents,
142
140
  // TODO
143
- spatialExtents: () => undefined,
144
141
  extras: () => undefined,
145
142
  landingPage: () => undefined,
146
143
  languages: () => undefined,
@@ -175,6 +172,7 @@ export class Iso19139Converter extends BaseConverter<string> {
175
172
  const licenses = this.readers['licenses'](rootEl)
176
173
  const overviews = this.readers['overviews'](rootEl)
177
174
  const landingPage = this.readers['landingPage'](rootEl)
175
+ const onlineResources = this.readers['onlineResources'](rootEl)
178
176
 
179
177
  if (kind === 'dataset') {
180
178
  const status = this.readers['status'](rootEl)
@@ -183,7 +181,6 @@ export class Iso19139Converter extends BaseConverter<string> {
183
181
  const spatialExtents = this.readers['spatialExtents'](rootEl)
184
182
  const temporalExtents = this.readers['temporalExtents'](rootEl)
185
183
  const lineage = this.readers['lineage'](rootEl)
186
- const distributions = this.readers['distributions'](rootEl)
187
184
  const updateFrequency = this.readers['updateFrequency'](rootEl)
188
185
 
189
186
  return {
@@ -213,12 +210,11 @@ export class Iso19139Converter extends BaseConverter<string> {
213
210
  overviews,
214
211
  spatialExtents,
215
212
  temporalExtents,
216
- distributions,
213
+ onlineResources,
217
214
  updateFrequency,
218
215
  ...(landingPage && { landingPage }),
219
216
  } as DatasetRecord
220
217
  } else {
221
- const onlineResources = this.readers['onlineResources'](rootEl)
222
218
  return {
223
219
  uniqueIdentifier,
224
220
  kind,
@@ -305,6 +301,8 @@ export class Iso19139Converter extends BaseConverter<string> {
305
301
  fieldChanged('licenses') && this.writers['licenses'](record, rootEl)
306
302
  fieldChanged('otherConstraints') &&
307
303
  this.writers['otherConstraints'](record, rootEl)
304
+ fieldChanged('onlineResources') &&
305
+ this.writers['onlineResources'](record, rootEl)
308
306
 
309
307
  if (record.kind === 'dataset') {
310
308
  fieldChanged('status') && this.writers['status'](record, rootEl)
@@ -315,12 +313,9 @@ export class Iso19139Converter extends BaseConverter<string> {
315
313
  fieldChanged('overviews') && this.writers['overviews'](record, rootEl)
316
314
  fieldChanged('temporalExtents') &&
317
315
  this.writers['temporalExtents'](record, rootEl)
318
- fieldChanged('distributions') &&
319
- this.writers['distributions'](record, rootEl)
316
+ fieldChanged('spatialExtents') &&
317
+ this.writers['spatialExtents'](record, rootEl)
320
318
  fieldChanged('lineage') && this.writers['lineage'](record, rootEl)
321
- } else {
322
- fieldChanged('onlineResources') &&
323
- this.writers['onlineResources'](record, rootEl)
324
319
  }
325
320
 
326
321
  this.beforeDocumentCreation(rootEl)
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  Constraint,
3
- DatasetDistribution,
3
+ DatasetOnlineResource,
4
4
  GraphicOverview,
5
5
  Individual,
6
6
  Keyword,
7
+ OnlineResource,
7
8
  Organization,
8
9
  RecordKind,
9
10
  RecordStatus,
@@ -13,6 +14,8 @@ import {
13
14
  UpdateFrequency,
14
15
  UpdateFrequencyCustom,
15
16
  } from '../../../../../../libs/common/domain/src/lib/model/record'
17
+ import { ThesaurusModel } from '../../../../../../libs/common/domain/src/lib/model/thesaurus'
18
+ import { Geometry } from 'geojson'
16
19
  import { matchMimeType, matchProtocol } from '../common/distribution.mapper'
17
20
  import {
18
21
  ChainableFunction,
@@ -26,21 +29,22 @@ import {
26
29
  pipe,
27
30
  } from '../function-utils'
28
31
  import {
29
- XmlElement,
30
32
  findChildElement,
31
33
  findChildrenElement,
32
34
  findNestedElement,
33
35
  findNestedElements,
34
36
  findParent,
37
+ firstChildElement,
35
38
  readAttribute,
36
39
  readText,
40
+ XmlElement,
37
41
  } from '../xml-utils'
42
+ import { readGeometry } from './utils/geometry'
38
43
  import { fullNameToParts } from './utils/individual-name'
39
44
  import { getKeywordTypeFromKeywordTypeCode } from './utils/keyword.mapper'
40
45
  import { getRoleFromRoleCode } from './utils/role.mapper'
41
46
  import { getStatusFromStatusCode } from './utils/status.mapper'
42
47
  import { getUpdateFrequencyFromFrequencyCode } from './utils/update-frequency.mapper'
43
- import { ThesaurusModel } from '../../../../../../libs/common/domain/src/lib/model/thesaurus'
44
48
 
45
49
  export function extractCharacterString(): ChainableFunction<
46
50
  XmlElement,
@@ -66,6 +70,14 @@ export function extractDateTime(): ChainableFunction<XmlElement, Date> {
66
70
  )
67
71
  }
68
72
 
73
+ export function extractDecimal(): ChainableFunction<XmlElement, number> {
74
+ return pipe(
75
+ findChildElement('gco:Decimal', false),
76
+ readText(),
77
+ map((numberStr) => (numberStr ? Number(numberStr) : null))
78
+ )
79
+ }
80
+
69
81
  export function extractUrl(): ChainableFunction<XmlElement, URL> {
70
82
  const getUrl = pipe(findChildElement('gmd:URL', false), readText())
71
83
  const getCharacterString = pipe(
@@ -315,12 +327,12 @@ const getMimeType = pipe(
315
327
  )
316
328
 
317
329
  /**
318
- * Extract distributions from a MD_Distribution element
330
+ * Extract online resources from an MD_Distribution element
319
331
  * @param getMimeTypeFn This function starts from a gmd:transferOptions element
320
332
  */
321
- export function extractDatasetDistributions(
333
+ export function extractDatasetOnlineResources(
322
334
  getMimeTypeFn: ChainableFunction<XmlElement, string>
323
- ): ChainableFunction<XmlElement, DatasetDistribution[]> {
335
+ ): ChainableFunction<XmlElement, DatasetOnlineResource[]> {
324
336
  const getUrl = pipe(findChildElement('gmd:linkage'), extractMandatoryUrl())
325
337
  const getProtocolStr = pipe(
326
338
  findChildElement('gmd:protocol'),
@@ -763,14 +775,6 @@ export function readLineage(rootEl: XmlElement): string {
763
775
  )(rootEl)
764
776
  }
765
777
 
766
- export function readDistributions(rootEl: XmlElement): DatasetDistribution[] {
767
- return pipe(
768
- findNestedElements('gmd:distributionInfo', 'gmd:MD_Distribution'),
769
- mapArray(extractDatasetDistributions(getMimeType)),
770
- flattenArray()
771
- )(rootEl)
772
- }
773
-
774
778
  export function readUpdateFrequency(rootEl: XmlElement): UpdateFrequency {
775
779
  return pipe(
776
780
  findIdentification(),
@@ -834,9 +838,14 @@ export function extractServiceOnlineResources(): ChainableFunction<
834
838
  )
835
839
  }
836
840
 
837
- export function readOnlineResources(
838
- rootEl: XmlElement
839
- ): ServiceOnlineResource[] {
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
+ }
840
849
  return pipe(
841
850
  findNestedElements('gmd:distributionInfo', 'gmd:MD_Distribution'),
842
851
  mapArray(extractServiceOnlineResources()),
@@ -895,3 +904,62 @@ export function readTemporalExtents(rootEl: XmlElement) {
895
904
  })
896
905
  )(rootEl)
897
906
  }
907
+
908
+ export function readSpatialExtents(rootEl: XmlElement) {
909
+ const extractGeometry = (rootEl: XmlElement): Geometry => {
910
+ if (!rootEl) return null
911
+ return pipe(
912
+ findChildElement('gmd:polygon', false),
913
+ firstChildElement,
914
+ map((el) => readGeometry(el))
915
+ )(rootEl)
916
+ }
917
+
918
+ const extractBBox = (
919
+ rootEl: XmlElement
920
+ ): [number, number, number, number] => {
921
+ if (!rootEl) return null
922
+ return pipe(
923
+ combine(
924
+ pipe(findChildElement('gmd:westBoundLongitude'), extractDecimal()),
925
+ pipe(findChildElement('gmd:southBoundLatitude'), extractDecimal()),
926
+ pipe(findChildElement('gmd:eastBoundLongitude'), extractDecimal()),
927
+ pipe(findChildElement('gmd:northBoundLatitude'), extractDecimal())
928
+ )
929
+ )(rootEl)
930
+ }
931
+
932
+ const extractDescription = (rootEl: XmlElement): string => {
933
+ if (!rootEl) return null
934
+ return pipe(
935
+ findNestedElement(
936
+ 'gmd:geographicIdentifier',
937
+ 'gmd:MD_Identifier',
938
+ 'gmd:code'
939
+ ),
940
+ extractCharacterString()
941
+ )(rootEl)
942
+ }
943
+
944
+ return pipe(
945
+ findIdentification(),
946
+ findNestedElements('gmd:extent', 'gmd:EX_Extent', 'gmd:geographicElement'),
947
+ mapArray(
948
+ combine(
949
+ pipe(findChildElement('gmd:EX_BoundingPolygon'), extractGeometry),
950
+ pipe(findChildElement('gmd:EX_GeographicBoundingBox'), extractBBox),
951
+ pipe(
952
+ findChildElement('gmd:EX_GeographicDescription'),
953
+ extractDescription
954
+ )
955
+ )
956
+ ),
957
+ mapArray(([geometry, bbox, description]) => {
958
+ return {
959
+ ...(geometry && { geometry }),
960
+ ...(bbox && { bbox }),
961
+ ...(description && { description }),
962
+ }
963
+ })
964
+ )(rootEl)
965
+ }
@@ -0,0 +1,39 @@
1
+ import { XmlElement } from '@rgrove/parse-xml'
2
+ import { Geometry } from 'geojson'
3
+ import GML32 from 'ol/format/GML32'
4
+ import GeoJSON from 'ol/format/GeoJSON'
5
+ import { parse } from 'ol/xml'
6
+ import {
7
+ createDocument,
8
+ getRootElement,
9
+ parseXmlString,
10
+ xmlToString,
11
+ } from '../../xml-utils'
12
+
13
+ export function readGeometry(el: XmlElement): Geometry {
14
+ const xmlDoc = createDocument(el)
15
+ xmlDoc.root.attributes['xmlns'] = 'http://www.opengis.net/gml/3.2'
16
+ const gmlString = xmlToString(xmlDoc)
17
+ const doc = parse(gmlString)
18
+ // we need an intermediate node to be able to parse the GML
19
+ const node = document.createElement('pre')
20
+ node.appendChild(doc.documentElement)
21
+ const gml32Format = new GML32()
22
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
23
+ // @ts-ignore
24
+ const geometry = gml32Format.readGeometryFromNode(node)
25
+ const geojsonFormat = new GeoJSON()
26
+ return geojsonFormat.writeGeometryObject(geometry)
27
+ }
28
+
29
+ export function writeGeometry(geometryObject: Geometry): XmlElement {
30
+ const geojsonFormat = new GeoJSON()
31
+ const geometry = geojsonFormat.readGeometry(geometryObject)
32
+ const gml32Format = new GML32()
33
+ const node = gml32Format.writeGeometryNode(geometry)
34
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
35
+ // @ts-ignore
36
+ const element = node.firstElementChild as HTMLElement
37
+ const gmlString = new XMLSerializer().serializeToString(element)
38
+ return getRootElement(parseXmlString(gmlString))
39
+ }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CatalogRecord,
3
3
  Constraint,
4
- DatasetDistribution,
4
+ DatasetOnlineResource,
5
5
  DatasetRecord,
6
6
  DatasetServiceDistribution,
7
7
  Individual,
@@ -14,7 +14,9 @@ import {
14
14
  UpdateFrequencyCode,
15
15
  UpdateFrequencyCustom,
16
16
  } from '../../../../../../libs/common/domain/src/lib/model/record'
17
+ import { ThesaurusModel } from '../../../../../../libs/common/domain/src/lib/model/thesaurus'
17
18
  import format from 'date-fns/format'
19
+ import { Geometry } from 'geojson'
18
20
  import {
19
21
  ChainableFunction,
20
22
  fallback,
@@ -27,7 +29,6 @@ import {
27
29
  tap,
28
30
  } from '../function-utils'
29
31
  import {
30
- XmlElement,
31
32
  addAttribute,
32
33
  appendChildren,
33
34
  createChild,
@@ -42,10 +43,11 @@ import {
42
43
  removeChildren,
43
44
  removeChildrenByName,
44
45
  setTextContent,
46
+ XmlElement,
45
47
  } from '../xml-utils'
46
48
  import { readKind } from './read-parts'
49
+ import { writeGeometry } from './utils/geometry'
47
50
  import { namePartsToFull } from './utils/individual-name'
48
- import { ThesaurusModel } from '../../../../../../libs/common/domain/src/lib/model/thesaurus'
49
51
 
50
52
  export function writeCharacterString(
51
53
  text: string
@@ -101,6 +103,14 @@ export function writeDate(
101
103
  )
102
104
  }
103
105
 
106
+ export function writeDecimal(
107
+ decimal: number
108
+ ): ChainableFunction<XmlElement, XmlElement> {
109
+ return tap(
110
+ pipe(findChildOrCreate('gco:Decimal'), setTextContent(decimal.toString()))
111
+ )
112
+ }
113
+
104
114
  export function getProgressCode(status: RecordStatus): string {
105
115
  switch (status) {
106
116
  case 'completed':
@@ -169,7 +179,7 @@ export function getRoleCode(role: Role): string {
169
179
  }
170
180
  }
171
181
 
172
- export function getDistributionProtocol(
182
+ export function getServiceDistributionProtocol(
173
183
  distribution: DatasetServiceDistribution
174
184
  ): string {
175
185
  switch (distribution.accessServiceProtocol.toLowerCase()) {
@@ -600,11 +610,11 @@ export function createLicense(license: Constraint) {
600
610
  )
601
611
  }
602
612
 
603
- export function removeDistributions() {
613
+ export function removeOnlineResources() {
604
614
  return pipe(removeChildrenByName('gmd:distributionInfo'))
605
615
  }
606
616
 
607
- function appendDistributionFormat(mimeType: string) {
617
+ function appendOnlineResourceFormat(mimeType: string) {
608
618
  return appendChildren(
609
619
  pipe(
610
620
  createElement('gmd:distributionFormat'),
@@ -628,8 +638,8 @@ export function createDistributionInfo() {
628
638
  }
629
639
 
630
640
  // apply to MD_Distribution
631
- export function appendDistribution(
632
- distribution: DatasetDistribution,
641
+ export function appendOnlineResource(
642
+ onlineResource: DatasetOnlineResource,
633
643
  appendFormatFn: (
634
644
  mimeType: string
635
645
  ) => ChainableFunction<XmlElement, XmlElement>
@@ -637,16 +647,16 @@ export function appendDistribution(
637
647
  let name: string
638
648
  let functionCode: string
639
649
  let protocol: string
640
- if (distribution.type === 'service') {
641
- name = distribution.identifierInService // this is for GeoNetwork to know the layer name
650
+ if (onlineResource.type === 'service') {
651
+ name = onlineResource.identifierInService // this is for GeoNetwork to know the layer name
642
652
  functionCode = 'download'
643
- protocol = getDistributionProtocol(distribution)
644
- } else if (distribution.type === 'download') {
645
- name = distribution.name
653
+ protocol = getServiceDistributionProtocol(onlineResource)
654
+ } else if (onlineResource.type === 'download') {
655
+ name = onlineResource.name
646
656
  functionCode = 'download'
647
657
  protocol = 'WWW:DOWNLOAD'
648
658
  } else {
649
- name = distribution.name
659
+ name = onlineResource.name
650
660
  functionCode = 'information'
651
661
  protocol = 'WWW:LINK'
652
662
  }
@@ -656,12 +666,12 @@ export function appendDistribution(
656
666
  createChild('gmd:MD_DigitalTransferOptions'),
657
667
  createChild('gmd:onLine'),
658
668
  createChild('gmd:CI_OnlineResource'),
659
- writeLinkage(distribution.url),
660
- 'description' in distribution
669
+ writeLinkage(onlineResource.url),
670
+ 'description' in onlineResource
661
671
  ? appendChildren(
662
672
  pipe(
663
673
  createElement('gmd:description'),
664
- writeCharacterString(distribution.description)
674
+ writeCharacterString(onlineResource.description)
665
675
  )
666
676
  )
667
677
  : noop,
@@ -685,7 +695,9 @@ export function appendDistribution(
685
695
  )
686
696
  )
687
697
  return pipe(
688
- 'mimeType' in distribution ? appendFormatFn(distribution.mimeType) : noop,
698
+ 'mimeType' in onlineResource
699
+ ? appendFormatFn(onlineResource.mimeType)
700
+ : noop,
689
701
  appendTransferOptions
690
702
  )
691
703
  }
@@ -733,33 +745,6 @@ export function writeKind(record: CatalogRecord, rootEl: XmlElement) {
733
745
  )(rootEl)
734
746
  }
735
747
 
736
- export function writeOwnerOrganization(
737
- record: CatalogRecord,
738
- rootEl: XmlElement
739
- ) {
740
- // if no contact matches the owner org, create an empty one
741
- const ownerContact: Individual = record.contacts.find(
742
- (contact) => contact.organization.name === record.ownerOrganization.name
743
- )
744
- pipe(
745
- findChildOrCreate('gmd:contact'),
746
- removeAllChildren(),
747
- appendResponsibleParty(
748
- ownerContact
749
- ? {
750
- ...ownerContact,
751
- // owner responsible party is always point of contact
752
- role: 'point_of_contact',
753
- }
754
- : {
755
- organization: record.ownerOrganization,
756
- email: '',
757
- role: 'point_of_contact',
758
- }
759
- )
760
- )(rootEl)
761
- }
762
-
763
748
  export function writeRecordUpdated(record: CatalogRecord, rootEl: XmlElement) {
764
749
  pipe(
765
750
  findChildOrCreate('gmd:dateStamp'),
@@ -1022,20 +1007,6 @@ export function writeGraphicOverviews(
1022
1007
  )(rootEl)
1023
1008
  }
1024
1009
 
1025
- export function writeDistributions(record: DatasetRecord, rootEl: XmlElement) {
1026
- pipe(
1027
- removeDistributions(),
1028
- appendChildren(
1029
- ...record.distributions.map((d) =>
1030
- pipe(
1031
- createDistributionInfo(),
1032
- appendDistribution(d, appendDistributionFormat)
1033
- )
1034
- )
1035
- )
1036
- )(rootEl)
1037
- }
1038
-
1039
1010
  export function writeLineage(record: DatasetRecord, rootEl: XmlElement) {
1040
1011
  pipe(
1041
1012
  findNestedChildOrCreate(
@@ -1117,16 +1088,40 @@ export function createOnlineResource(onlineResource: ServiceOnlineResource) {
1117
1088
  )
1118
1089
  }
1119
1090
 
1120
- export function writeOnlineResources(
1121
- record: ServiceRecord,
1091
+ export function appendDatasetOnlineResources(
1092
+ record: DatasetRecord,
1122
1093
  rootEl: XmlElement
1123
1094
  ) {
1124
- pipe(
1125
- removeDistributions(),
1126
- appendChildren(...record.onlineResources.map(createOnlineResource))
1095
+ appendChildren(
1096
+ ...record.onlineResources.map((d) =>
1097
+ pipe(
1098
+ createDistributionInfo(),
1099
+ appendOnlineResource(d, appendOnlineResourceFormat)
1100
+ )
1101
+ )
1127
1102
  )(rootEl)
1128
1103
  }
1129
1104
 
1105
+ export function appendServiceOnlineResources(
1106
+ record: ServiceRecord,
1107
+ rootEl: XmlElement
1108
+ ) {
1109
+ appendChildren(...record.onlineResources.map(createOnlineResource))(rootEl)
1110
+ }
1111
+
1112
+ export function writeOnlineResources(
1113
+ record: CatalogRecord,
1114
+ rootEl: XmlElement
1115
+ ) {
1116
+ removeOnlineResources()(rootEl)
1117
+
1118
+ if (record.kind === 'dataset') {
1119
+ appendDatasetOnlineResources(record, rootEl)
1120
+ return
1121
+ }
1122
+ appendServiceOnlineResources(record, rootEl)
1123
+ }
1124
+
1130
1125
  export function writeTemporalExtents(
1131
1126
  record: DatasetRecord,
1132
1127
  rootEl: XmlElement
@@ -1184,3 +1179,62 @@ export function writeTemporalExtents(
1184
1179
  )
1185
1180
  )(rootEl)
1186
1181
  }
1182
+
1183
+ export function writeSpatialExtents(record: DatasetRecord, rootEl: XmlElement) {
1184
+ const appendBoundingPolygon = (geometry?: Geometry) => {
1185
+ if (!geometry) return null
1186
+ return pipe(
1187
+ createElement('gmd:EX_BoundingPolygon'),
1188
+ appendChildren(
1189
+ pipe(
1190
+ createElement('gmd:polygon'),
1191
+ appendChildren(() => writeGeometry(geometry))
1192
+ )
1193
+ )
1194
+ )
1195
+ }
1196
+
1197
+ const appendGeographicBoundingBox = (
1198
+ bbox?: [number, number, number, number]
1199
+ ) => {
1200
+ if (!bbox) return null
1201
+ return pipe(
1202
+ createElement('gmd:EX_GeographicBoundingBox'),
1203
+ appendChildren(
1204
+ pipe(createElement('gmd:westBoundLongitude'), writeDecimal(bbox[0])),
1205
+ pipe(createElement('gmd:eastBoundLongitude'), writeDecimal(bbox[2])),
1206
+ pipe(createElement('gmd:southBoundLatitude'), writeDecimal(bbox[1])),
1207
+ pipe(createElement('gmd:northBoundLatitude'), writeDecimal(bbox[3]))
1208
+ )
1209
+ )
1210
+ }
1211
+
1212
+ const appendGeographicDescription = (description?: string) => {
1213
+ if (!description) return null
1214
+ return pipe(
1215
+ createElement('gmd:EX_GeographicDescription'),
1216
+ createChild('gmd:geographicIdentifier'),
1217
+ createChild('gmd:MD_Identifier'),
1218
+ createChild('gmd:code'),
1219
+ writeCharacterString(description)
1220
+ )
1221
+ }
1222
+
1223
+ pipe(
1224
+ findOrCreateIdentification(),
1225
+ findNestedChildOrCreate('gmd:extent', 'gmd:EX_Extent'),
1226
+ removeChildrenByName('gmd:geographicElement'),
1227
+ appendChildren(
1228
+ ...record.spatialExtents.map((extent) =>
1229
+ pipe(
1230
+ createElement('gmd:geographicElement'),
1231
+ appendChildren(
1232
+ appendBoundingPolygon(extent.geometry),
1233
+ appendGeographicBoundingBox(extent.bbox),
1234
+ appendGeographicDescription(extent.description)
1235
+ )
1236
+ )
1237
+ )
1238
+ )
1239
+ )(rootEl)
1240
+ }