geonetwork-ui 2.3.0-dev.f736344f → 2.3.0

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 (593) hide show
  1. package/esm2022/index.mjs +2 -1
  2. package/esm2022/libs/api/metadata-converter/src/index.mjs +5 -5
  3. package/esm2022/libs/api/metadata-converter/src/lib/base.converter.mjs +14 -0
  4. package/esm2022/libs/api/metadata-converter/src/lib/find-converter.mjs +15 -0
  5. package/esm2022/libs/api/metadata-converter/src/lib/gn4/atomic-operations.mjs +3 -3
  6. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.converter.mjs +52 -0
  7. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +8 -4
  8. package/esm2022/libs/api/metadata-converter/src/lib/gn4/index.mjs +4 -0
  9. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/index.mjs +2 -0
  10. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.mjs +123 -0
  11. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +116 -0
  12. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +138 -0
  13. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/index.mjs +2 -0
  14. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +244 -0
  15. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +76 -65
  16. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/individual-name.mjs +18 -0
  17. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.mjs +14 -0
  18. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/role.mapper.mjs +48 -0
  19. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/status.mapper.mjs +18 -0
  20. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/update-frequency.mapper.mjs +64 -0
  21. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +89 -61
  22. package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +76 -14
  23. package/esm2022/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.mjs +1 -1
  24. package/esm2022/libs/api/repository/src/lib/gn4/auth/gravatar.service.mjs +12 -1
  25. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +4 -4
  26. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +36 -3
  27. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +21 -7
  28. package/esm2022/libs/common/domain/src/lib/model/record/index.mjs +2 -1
  29. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  30. package/esm2022/libs/common/domain/src/lib/model/record/user-feedbacks.model.mjs +2 -0
  31. package/esm2022/libs/common/domain/src/lib/model/user/index.mjs +2 -0
  32. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  33. package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +35 -7
  34. package/esm2022/libs/data-access/gn4/src/openapi/model/models.mjs +1 -2
  35. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +1 -1
  36. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +48 -3
  37. package/esm2022/libs/feature/editor/src/index.mjs +2 -2
  38. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +6 -2
  39. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.mjs +11 -0
  40. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.mjs +28 -0
  41. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +64 -0
  42. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.mjs +11 -0
  43. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +15 -0
  44. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +45 -0
  45. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +50 -0
  46. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +11 -0
  47. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +11 -0
  48. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +104 -0
  49. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +126 -0
  50. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +2 -0
  51. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +10 -0
  52. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +29 -0
  53. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +1 -1
  54. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +10 -10
  55. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +23 -1
  56. package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +1 -1
  57. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +8 -8
  58. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +6 -2
  59. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +3 -3
  60. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +125 -0
  61. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +1 -1
  62. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +1 -1
  63. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +7 -3
  64. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +12 -7
  65. package/esm2022/libs/feature/map/src/lib/map-context/map-context.model.mjs +2 -1
  66. package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +100 -32
  67. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +18 -51
  68. package/esm2022/libs/feature/notifications/src/index.mjs +4 -0
  69. package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +18 -0
  70. package/esm2022/libs/feature/notifications/src/lib/notification.model.mjs +2 -0
  71. package/esm2022/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.mjs +49 -0
  72. package/esm2022/libs/feature/notifications/src/lib/notifications.service.mjs +29 -0
  73. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
  74. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +4 -4
  75. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +22 -10
  76. package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +22 -4
  77. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +37 -10
  78. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +52 -8
  79. package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +50 -17
  80. package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +18 -3
  81. package/esm2022/libs/feature/router/src/lib/default/state/router.effects.mjs +2 -2
  82. package/esm2022/libs/feature/search/src/index.mjs +2 -1
  83. package/esm2022/libs/feature/search/src/lib/results-layout/results-layout.component.mjs +1 -1
  84. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +4 -4
  85. package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +3 -3
  86. package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +1 -1
  87. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +1 -1
  88. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +1 -1
  89. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +3 -3
  90. package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +1 -1
  91. package/esm2022/libs/ui/elements/src/index.mjs +16 -16
  92. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -2
  93. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +2 -2
  94. package/esm2022/libs/ui/elements/src/lib/error/error.component.mjs +30 -0
  95. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +5 -5
  96. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +16 -3
  97. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +45 -0
  98. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
  99. package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +34 -0
  100. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +98 -36
  101. package/esm2022/libs/ui/elements/src/lib/thumbnail/thumbnail.component.mjs +4 -3
  102. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +19 -15
  103. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.mjs +59 -0
  104. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +60 -0
  105. package/esm2022/libs/ui/inputs/src/index.mjs +16 -16
  106. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -1
  107. package/esm2022/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.mjs +4 -3
  108. package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +22 -0
  109. package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +7 -5
  110. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +19 -8
  111. package/esm2022/libs/ui/inputs/src/lib/files-drop/files-drop.directive.mjs +59 -0
  112. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +183 -0
  113. package/esm2022/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +29 -0
  114. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +27 -4
  115. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +21 -3
  116. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +21 -31
  117. package/esm2022/libs/ui/layout/src/index.mjs +7 -5
  118. package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +76 -0
  119. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +42 -18
  120. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +18 -0
  121. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +3 -8
  122. package/esm2022/libs/util/app-config/src/lib/app-config.mjs +3 -1
  123. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
  124. package/esm2022/libs/util/app-config/src/lib/model.mjs +1 -1
  125. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +2 -2
  126. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +22 -1
  127. package/esm2022/libs/util/shared/src/lib/utils/bytes-convert.mjs +4 -0
  128. package/esm2022/libs/util/shared/src/lib/utils/image-resize.mjs +60 -0
  129. package/esm2022/libs/util/shared/src/lib/utils/index.mjs +8 -6
  130. package/esm2022/translations/de.json +44 -0
  131. package/esm2022/translations/en.json +44 -0
  132. package/esm2022/translations/es.json +44 -0
  133. package/esm2022/translations/fr.json +44 -0
  134. package/esm2022/translations/it.json +44 -0
  135. package/esm2022/translations/nl.json +44 -0
  136. package/esm2022/translations/pt.json +44 -0
  137. package/fesm2022/geonetwork-ui.mjs +6088 -3676
  138. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  139. package/index.d.ts +1 -0
  140. package/index.d.ts.map +1 -1
  141. package/index.ts +1 -0
  142. package/libs/api/metadata-converter/src/index.d.ts +4 -4
  143. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  144. package/libs/api/metadata-converter/src/lib/{metadata-base.mapper.d.ts → base.converter.d.ts} +3 -3
  145. package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -0
  146. package/libs/api/metadata-converter/src/lib/find-converter.d.ts +3 -0
  147. package/libs/api/metadata-converter/src/lib/find-converter.d.ts.map +1 -0
  148. package/libs/api/metadata-converter/src/lib/gn4/{gn4.metadata.mapper.d.ts → gn4.converter.d.ts} +5 -5
  149. package/libs/api/metadata-converter/src/lib/gn4/gn4.converter.d.ts.map +1 -0
  150. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  151. package/libs/api/metadata-converter/src/lib/gn4/index.d.ts +4 -0
  152. package/libs/api/metadata-converter/src/lib/gn4/index.d.ts.map +1 -0
  153. package/libs/api/metadata-converter/src/lib/iso19115-3/index.d.ts +2 -0
  154. package/libs/api/metadata-converter/src/lib/iso19115-3/index.d.ts.map +1 -0
  155. package/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.d.ts +9 -0
  156. package/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.d.ts.map +1 -0
  157. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +20 -0
  158. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -0
  159. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts +21 -0
  160. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -0
  161. package/libs/api/metadata-converter/src/lib/iso19139/index.d.ts +2 -0
  162. package/libs/api/metadata-converter/src/lib/iso19139/index.d.ts.map +1 -0
  163. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts +11 -0
  164. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -0
  165. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +38 -7
  166. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  167. package/libs/api/metadata-converter/src/lib/iso19139/utils/individual-name.d.ts +8 -0
  168. package/libs/api/metadata-converter/src/lib/iso19139/utils/individual-name.d.ts.map +1 -0
  169. package/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.d.ts.map +1 -0
  170. package/libs/api/metadata-converter/src/lib/iso19139/utils/role.mapper.d.ts.map +1 -0
  171. package/libs/api/metadata-converter/src/lib/iso19139/utils/status.mapper.d.ts.map +1 -0
  172. package/libs/api/metadata-converter/src/lib/iso19139/utils/update-frequency.mapper.d.ts.map +1 -0
  173. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +40 -3
  174. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  175. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +14 -1
  176. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
  177. package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts +1 -0
  178. package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts.map +1 -1
  179. package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts +1 -0
  180. package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts.map +1 -1
  181. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +2 -2
  182. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  183. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts +6 -2
  184. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
  185. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +9 -6
  186. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  187. package/libs/common/domain/src/lib/model/record/index.d.ts +1 -0
  188. package/libs/common/domain/src/lib/model/record/index.d.ts.map +1 -1
  189. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +9 -7
  190. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  191. package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts +15 -0
  192. package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts.map +1 -0
  193. package/libs/common/domain/src/lib/model/user/index.d.ts +2 -0
  194. package/libs/common/domain/src/lib/model/user/index.d.ts.map +1 -0
  195. package/libs/common/domain/src/lib/platform.service.interface.d.ts +3 -0
  196. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  197. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts +9 -5
  198. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
  199. package/libs/data-access/gn4/src/openapi/model/models.d.ts +0 -1
  200. package/libs/data-access/gn4/src/openapi/model/models.d.ts.map +1 -1
  201. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +4 -1
  202. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  203. package/libs/feature/editor/src/index.d.ts +1 -1
  204. package/libs/feature/editor/src/index.d.ts.map +1 -1
  205. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +8 -5
  206. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  207. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.d.ts +1 -1
  208. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.d.ts.map +1 -0
  209. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.d.ts +1 -1
  210. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.d.ts.map +1 -0
  211. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +39 -0
  212. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -0
  213. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.d.ts +1 -1
  214. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.d.ts.map +1 -0
  215. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +8 -0
  216. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts.map +1 -0
  217. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +16 -0
  218. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -0
  219. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.d.ts +2 -2
  220. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -0
  221. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +1 -1
  222. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -0
  223. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts +1 -1
  224. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +1 -0
  225. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +21 -0
  226. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts.map +1 -0
  227. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.component.d.ts +13 -4
  228. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -0
  229. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +1 -0
  230. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -0
  231. package/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.d.ts +3 -3
  232. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -0
  233. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +1 -1
  234. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  235. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  236. package/libs/feature/editor/src/lib/models/fields.model.d.ts +1 -1
  237. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  238. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
  239. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +28 -0
  240. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -0
  241. package/libs/feature/map/src/lib/feature-map.module.d.ts +2 -1
  242. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  243. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +2 -0
  244. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
  245. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts +17 -5
  246. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts.map +1 -1
  247. package/libs/feature/map/src/lib/map-context/map-context.service.d.ts +1 -1
  248. package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +1 -1
  249. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts +2 -3
  250. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  251. package/libs/feature/notifications/src/index.d.ts +4 -0
  252. package/libs/feature/notifications/src/index.d.ts.map +1 -0
  253. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts +7 -0
  254. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts.map +1 -0
  255. package/libs/feature/notifications/src/lib/notification.model.d.ts +7 -0
  256. package/libs/feature/notifications/src/lib/notification.model.d.ts.map +1 -0
  257. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts +12 -0
  258. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts.map +1 -0
  259. package/libs/feature/notifications/src/lib/notifications.service.d.ts +15 -0
  260. package/libs/feature/notifications/src/lib/notifications.service.d.ts.map +1 -0
  261. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  262. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +2 -2
  263. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  264. package/libs/feature/record/src/lib/state/mdview.actions.d.ts +40 -6
  265. package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
  266. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +24 -4
  267. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  268. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +18 -5
  269. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  270. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +8 -5
  271. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
  272. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +12 -9
  273. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
  274. package/libs/feature/search/src/index.d.ts +1 -0
  275. package/libs/feature/search/src/index.d.ts.map +1 -1
  276. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts +3 -3
  277. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  278. package/libs/ui/elements/src/index.d.ts +15 -15
  279. package/libs/ui/elements/src/index.d.ts.map +1 -1
  280. package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
  281. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  282. package/libs/ui/elements/src/lib/error/error.component.d.ts +16 -0
  283. package/libs/ui/elements/src/lib/error/error.component.d.ts.map +1 -0
  284. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +3 -1
  285. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  286. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts +13 -0
  287. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts.map +1 -0
  288. package/libs/ui/elements/src/lib/notification/notification.component.d.ts +13 -0
  289. package/libs/ui/elements/src/lib/notification/notification.component.d.ts.map +1 -0
  290. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +24 -4
  291. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
  292. package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts +1 -1
  293. package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts.map +1 -1
  294. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +29 -28
  295. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  296. package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts +11 -0
  297. package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts.map +1 -0
  298. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts +21 -0
  299. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts.map +1 -0
  300. package/libs/ui/inputs/src/index.d.ts +15 -15
  301. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  302. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  303. package/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.d.ts +1 -1
  304. package/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.d.ts.map +1 -1
  305. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts +9 -0
  306. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -0
  307. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts +1 -1
  308. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
  309. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts +2 -1
  310. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts.map +1 -1
  311. package/libs/ui/inputs/src/lib/files-drop/files-drop.directive.d.ts +14 -0
  312. package/libs/ui/inputs/src/lib/files-drop/files-drop.directive.d.ts.map +1 -0
  313. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +44 -0
  314. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -0
  315. package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts +12 -0
  316. package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts.map +1 -0
  317. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +7 -1
  318. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  319. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +5 -1
  320. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  321. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +35 -42
  322. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  323. package/libs/ui/layout/src/index.d.ts +6 -4
  324. package/libs/ui/layout/src/index.d.ts.map +1 -1
  325. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +25 -0
  326. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -0
  327. package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts +13 -6
  328. package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts.map +1 -1
  329. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts +8 -0
  330. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts.map +1 -0
  331. package/libs/ui/layout/src/lib/ui-layout.module.d.ts +4 -5
  332. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  333. package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
  334. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  335. package/libs/util/app-config/src/lib/model.d.ts +1 -0
  336. package/libs/util/app-config/src/lib/model.d.ts.map +1 -1
  337. package/libs/util/shared/src/lib/links/link-utils.d.ts +18 -0
  338. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  339. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts +2 -0
  340. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts.map +1 -0
  341. package/libs/util/shared/src/lib/utils/image-resize.d.ts +3 -0
  342. package/libs/util/shared/src/lib/utils/image-resize.d.ts.map +1 -0
  343. package/libs/util/shared/src/lib/utils/index.d.ts +7 -5
  344. package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
  345. package/package.json +2 -2
  346. package/src/libs/api/metadata-converter/src/index.ts +4 -4
  347. package/src/libs/api/metadata-converter/src/lib/{metadata-base.mapper.ts → base.converter.ts} +2 -2
  348. package/src/libs/api/metadata-converter/src/lib/find-converter.ts +16 -0
  349. package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +41 -6
  350. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +11 -4
  351. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +33 -7
  352. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +580 -0
  353. package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +2 -2
  354. package/src/libs/api/metadata-converter/src/lib/gn4/{gn4.metadata.mapper.ts → gn4.converter.ts} +2 -2
  355. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +9 -3
  356. package/src/libs/api/metadata-converter/src/lib/gn4/index.ts +3 -0
  357. package/src/libs/api/metadata-converter/src/lib/iso19115-3/index.ts +1 -0
  358. package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +176 -0
  359. package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +329 -0
  360. package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +513 -0
  361. package/src/libs/api/metadata-converter/src/lib/iso19139/index.ts +1 -0
  362. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +331 -0
  363. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +185 -94
  364. package/src/libs/api/metadata-converter/src/lib/iso19139/utils/individual-name.ts +20 -0
  365. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +246 -111
  366. package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +84 -16
  367. package/src/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.ts +1 -0
  368. package/src/libs/api/repository/src/lib/gn4/auth/gravatar.service.ts +12 -1
  369. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +2 -2
  370. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +51 -1
  371. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +40 -7
  372. package/src/libs/common/domain/src/lib/model/record/index.ts +1 -0
  373. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +12 -7
  374. package/src/libs/common/domain/src/lib/model/record/user-feedbacks.model.ts +15 -0
  375. package/src/libs/common/domain/src/lib/platform.service.interface.ts +3 -0
  376. package/src/libs/common/fixtures/src/index.ts +8 -6
  377. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +8 -0
  378. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +11 -3
  379. package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +83 -0
  380. package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +43 -12
  381. package/src/libs/data-access/gn4/src/openapi/model/models.ts +0 -1
  382. package/src/libs/data-access/gn4/src/spec.yaml +1 -1
  383. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +66 -2
  384. package/src/libs/feature/editor/src/index.ts +1 -1
  385. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +8 -1
  386. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +8 -0
  387. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +70 -0
  388. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.ts +1 -0
  389. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.ts +4 -1
  390. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.html +8 -0
  391. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +64 -0
  392. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.ts +1 -0
  393. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +4 -0
  394. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +15 -0
  395. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +20 -0
  396. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +44 -0
  397. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.ts +4 -1
  398. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +1 -0
  399. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.css +0 -0
  400. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.ts +1 -0
  401. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.css +0 -0
  402. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.html +14 -0
  403. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +143 -0
  404. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.css +0 -0
  405. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +97 -0
  406. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +142 -0
  407. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.css +0 -0
  408. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.html +1 -0
  409. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.ts +4 -4
  410. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +9 -9
  411. package/src/libs/feature/editor/src/lib/fields.config.ts +22 -0
  412. package/src/libs/feature/editor/src/lib/models/fields.model.ts +1 -1
  413. package/src/libs/feature/editor/src/lib/services/editor.service.ts +27 -16
  414. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +5 -1
  415. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.html +1 -1
  416. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.css +7 -0
  417. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +50 -0
  418. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +135 -0
  419. package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -0
  420. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.html +8 -0
  421. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +5 -0
  422. package/src/libs/feature/map/src/lib/map-context/map-context.model.ts +17 -3
  423. package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +108 -40
  424. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +23 -63
  425. package/src/libs/feature/notifications/src/index.ts +3 -0
  426. package/src/libs/feature/notifications/src/lib/feature-notifications.module.ts +10 -0
  427. package/src/libs/feature/notifications/src/lib/notification.model.ts +6 -0
  428. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.css +0 -0
  429. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.html +17 -0
  430. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.ts +44 -0
  431. package/src/libs/feature/notifications/src/lib/notifications.service.ts +27 -0
  432. package/src/libs/feature/record/src/lib/feature-record.module.ts +5 -2
  433. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +22 -10
  434. package/src/libs/feature/record/src/lib/state/mdview.actions.ts +51 -6
  435. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +82 -7
  436. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +86 -9
  437. package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +79 -24
  438. package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +40 -10
  439. package/src/libs/feature/router/src/lib/default/state/router.effects.ts +2 -2
  440. package/src/libs/feature/search/src/index.ts +1 -0
  441. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +4 -4
  442. package/src/libs/feature/search/src/lib/results-table/results-table.component.html +3 -3
  443. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +2 -2
  444. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html +5 -5
  445. package/src/libs/ui/elements/src/index.ts +15 -15
  446. package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +2 -1
  447. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +1 -1
  448. package/src/libs/ui/elements/src/lib/{search-results-error/search-results-error.component.html → error/error.component.html} +18 -3
  449. package/src/libs/ui/elements/src/lib/{search-results-error/search-results-error.component.ts → error/error.component.ts} +5 -4
  450. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  451. package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +38 -20
  452. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +12 -0
  453. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.css +0 -5
  454. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +0 -21
  455. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +1 -14
  456. package/src/libs/ui/elements/src/lib/notification/notification.component.css +0 -0
  457. package/src/libs/ui/elements/src/lib/notification/notification.component.html +52 -0
  458. package/src/libs/ui/elements/src/lib/notification/notification.component.ts +31 -0
  459. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +27 -11
  460. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +125 -30
  461. package/src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.ts +5 -3
  462. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +9 -7
  463. package/src/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.ts +54 -0
  464. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.css +0 -0
  465. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.html +75 -0
  466. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +62 -0
  467. package/src/libs/ui/inputs/src/index.ts +15 -15
  468. package/src/libs/ui/inputs/src/lib/button/button.component.ts +1 -1
  469. package/src/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.ts +3 -0
  470. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.css +3 -0
  471. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +11 -0
  472. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +16 -0
  473. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +8 -1
  474. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -0
  475. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +14 -0
  476. package/src/libs/ui/inputs/src/lib/files-drop/files-drop.directive.ts +45 -0
  477. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.css +0 -0
  478. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +146 -0
  479. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +193 -0
  480. package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.css +6 -0
  481. package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.html +26 -0
  482. package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.ts +32 -0
  483. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +2 -1
  484. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +29 -0
  485. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +2 -1
  486. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +17 -1
  487. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +6 -22
  488. package/src/libs/ui/layout/src/index.ts +6 -4
  489. package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +23 -0
  490. package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +20 -0
  491. package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +84 -0
  492. package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +8 -4
  493. package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +4 -4
  494. package/src/libs/ui/layout/src/lib/carousel/carousel.component.ts +45 -15
  495. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.css +0 -0
  496. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +18 -0
  497. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts +16 -0
  498. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +0 -2
  499. package/src/libs/util/app-config/src/lib/app-config.ts +2 -0
  500. package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
  501. package/src/libs/util/app-config/src/lib/model.ts +1 -0
  502. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +1 -1
  503. package/src/libs/util/shared/src/lib/links/link-utils.ts +21 -0
  504. package/src/libs/util/shared/src/lib/utils/bytes-convert.ts +3 -0
  505. package/src/libs/util/shared/src/lib/utils/image-resize.ts +72 -0
  506. package/src/libs/util/shared/src/lib/utils/index.ts +7 -5
  507. package/tailwind.base.css +36 -0
  508. package/translations/de.json +44 -0
  509. package/translations/en.json +44 -0
  510. package/translations/es.json +44 -0
  511. package/translations/fr.json +44 -0
  512. package/translations/it.json +44 -0
  513. package/translations/nl.json +44 -0
  514. package/translations/pt.json +44 -0
  515. package/translations/sk.json +44 -0
  516. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.mjs +0 -52
  517. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/codelists/keyword.mapper.mjs +0 -14
  518. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/codelists/role.mapper.mjs +0 -48
  519. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/codelists/status.mapper.mjs +0 -18
  520. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/codelists/update-frequency.mapper.mjs +0 -64
  521. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/converter.mjs +0 -130
  522. package/esm2022/libs/api/metadata-converter/src/lib/metadata-base.mapper.mjs +0 -14
  523. package/esm2022/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.mjs +0 -13
  524. package/esm2022/libs/feature/editor/src/lib/record-form/record-form.component.mjs +0 -30
  525. package/esm2022/libs/ui/elements/src/lib/search-results-error/search-results-error.component.mjs +0 -29
  526. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.mjs +0 -11
  527. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.mjs +0 -27
  528. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.mjs +0 -11
  529. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.mjs +0 -27
  530. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.mjs +0 -49
  531. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +0 -11
  532. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +0 -11
  533. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.component.mjs +0 -76
  534. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.model.mjs +0 -2
  535. package/esm2022/libs/ui/inputs/src/lib/form-field/index.mjs +0 -10
  536. package/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.d.ts.map +0 -1
  537. package/libs/api/metadata-converter/src/lib/iso19139/codelists/keyword.mapper.d.ts.map +0 -1
  538. package/libs/api/metadata-converter/src/lib/iso19139/codelists/role.mapper.d.ts.map +0 -1
  539. package/libs/api/metadata-converter/src/lib/iso19139/codelists/status.mapper.d.ts.map +0 -1
  540. package/libs/api/metadata-converter/src/lib/iso19139/codelists/update-frequency.mapper.d.ts.map +0 -1
  541. package/libs/api/metadata-converter/src/lib/iso19139/converter.d.ts +0 -4
  542. package/libs/api/metadata-converter/src/lib/iso19139/converter.d.ts.map +0 -1
  543. package/libs/api/metadata-converter/src/lib/metadata-base.mapper.d.ts.map +0 -1
  544. package/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.d.ts +0 -18
  545. package/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.d.ts.map +0 -1
  546. package/libs/feature/editor/src/lib/record-form/record-form.component.d.ts.map +0 -1
  547. package/libs/ui/elements/src/lib/search-results-error/search-results-error.component.d.ts +0 -15
  548. package/libs/ui/elements/src/lib/search-results-error/search-results-error.component.d.ts.map +0 -1
  549. package/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.d.ts.map +0 -1
  550. package/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.d.ts.map +0 -1
  551. package/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.d.ts.map +0 -1
  552. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts +0 -11
  553. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts.map +0 -1
  554. package/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.d.ts.map +0 -1
  555. package/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +0 -1
  556. package/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +0 -1
  557. package/libs/ui/inputs/src/lib/form-field/form-field.component.d.ts.map +0 -1
  558. package/libs/ui/inputs/src/lib/form-field/form-field.model.d.ts.map +0 -1
  559. package/libs/ui/inputs/src/lib/form-field/index.d.ts.map +0 -1
  560. package/src/libs/api/metadata-converter/src/lib/iso19139/converter.ts +0 -196
  561. package/src/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.ts +0 -18
  562. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.html +0 -11
  563. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.ts +0 -15
  564. package/src/libs/ui/inputs/src/lib/form-field/form-field.component.html +0 -68
  565. package/src/libs/ui/inputs/src/lib/form-field/form-field.component.ts +0 -80
  566. /package/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/keyword.mapper.d.ts +0 -0
  567. /package/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/role.mapper.d.ts +0 -0
  568. /package/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/status.mapper.d.ts +0 -0
  569. /package/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/update-frequency.mapper.d.ts +0 -0
  570. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.d.ts +0 -0
  571. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.d.ts +0 -0
  572. /package/src/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/keyword.mapper.ts +0 -0
  573. /package/src/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/role.mapper.ts +0 -0
  574. /package/src/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/status.mapper.ts +0 -0
  575. /package/src/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/update-frequency.mapper.ts +0 -0
  576. /package/src/libs/feature/editor/src/lib/{record-form/record-form.component.css → components/overview-upload/overview-upload.component.css} +0 -0
  577. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.css +0 -0
  578. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.html +0 -0
  579. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.css +0 -0
  580. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.html +0 -0
  581. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.css} +0 -0
  582. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.css} +0 -0
  583. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.html +0 -0
  584. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.css} +0 -0
  585. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.css} +0 -0
  586. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.css} +0 -0
  587. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.html +0 -0
  588. /package/src/libs/{ui/inputs/src/lib/form-field/form-field.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.css} +0 -0
  589. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +0 -0
  590. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.html +0 -0
  591. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.ts +0 -0
  592. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.ts +0 -0
  593. /package/src/libs/ui/elements/src/lib/{search-results-error/search-results-error.component.css → error/error.component.css} +0 -0
@@ -15,7 +15,20 @@ import {
15
15
  UpdateFrequencyCode,
16
16
  UpdateFrequencyCustom,
17
17
  } from '../../../../../../libs/common/domain/src/lib/model/record'
18
+ import format from 'date-fns/format'
19
+ import {
20
+ ChainableFunction,
21
+ fallback,
22
+ filterArray,
23
+ getAtIndex,
24
+ map,
25
+ mapArray,
26
+ noop,
27
+ pipe,
28
+ tap,
29
+ } from '../function-utils'
18
30
  import {
31
+ XmlElement,
19
32
  addAttribute,
20
33
  appendChildren,
21
34
  createChild,
@@ -24,31 +37,17 @@ import {
24
37
  findChildOrCreate,
25
38
  findChildrenElement,
26
39
  findNestedChildOrCreate,
27
- findNestedElement,
28
40
  findNestedElements,
29
41
  readAttribute,
30
- readText,
31
42
  removeAllChildren,
32
43
  removeChildren,
33
44
  removeChildrenByName,
34
45
  setTextContent,
35
- XmlElement,
36
46
  } from '../xml-utils'
37
- import {
38
- ChainableFunction,
39
- fallback,
40
- filterArray,
41
- getAtIndex,
42
- map,
43
- mapArray,
44
- noop,
45
- pipe,
46
- tap,
47
- } from '../function-utils'
48
- import format from 'date-fns/format'
49
47
  import { readKind } from './read-parts'
48
+ import { namePartsToFull } from './utils/individual-name'
50
49
 
51
- function writeCharacterString(
50
+ export function writeCharacterString(
52
51
  text: string
53
52
  ): ChainableFunction<XmlElement, XmlElement> {
54
53
  return tap(
@@ -56,7 +55,9 @@ function writeCharacterString(
56
55
  )
57
56
  }
58
57
 
59
- function writeLinkage(url: URL): ChainableFunction<XmlElement, XmlElement> {
58
+ export function writeLinkage(
59
+ url: URL
60
+ ): ChainableFunction<XmlElement, XmlElement> {
60
61
  return tap(
61
62
  pipe(
62
63
  findNestedChildOrCreate('gmd:linkage', 'gmd:URL'),
@@ -65,7 +66,7 @@ function writeLinkage(url: URL): ChainableFunction<XmlElement, XmlElement> {
65
66
  )
66
67
  }
67
68
 
68
- function writeAnchor(
69
+ export function writeAnchor(
69
70
  url: URL,
70
71
  text?: string
71
72
  ): ChainableFunction<XmlElement, XmlElement> {
@@ -78,7 +79,9 @@ function writeAnchor(
78
79
  )
79
80
  }
80
81
 
81
- function writeDateTime(date: Date): ChainableFunction<XmlElement, XmlElement> {
82
+ export function writeDateTime(
83
+ date: Date
84
+ ): ChainableFunction<XmlElement, XmlElement> {
82
85
  return tap(
83
86
  pipe(
84
87
  findChildOrCreate('gco:DateTime'),
@@ -87,7 +90,9 @@ function writeDateTime(date: Date): ChainableFunction<XmlElement, XmlElement> {
87
90
  )
88
91
  }
89
92
 
90
- function writeDate(date: Date): ChainableFunction<XmlElement, XmlElement> {
93
+ export function writeDate(
94
+ date: Date
95
+ ): ChainableFunction<XmlElement, XmlElement> {
91
96
  return tap(
92
97
  pipe(
93
98
  findChildOrCreate('gco:Date'),
@@ -96,7 +101,7 @@ function writeDate(date: Date): ChainableFunction<XmlElement, XmlElement> {
96
101
  )
97
102
  }
98
103
 
99
- function getProgressCode(status: RecordStatus): string {
104
+ export function getProgressCode(status: RecordStatus): string {
100
105
  switch (status) {
101
106
  case 'completed':
102
107
  return 'completed'
@@ -115,7 +120,7 @@ function getProgressCode(status: RecordStatus): string {
115
120
  }
116
121
  }
117
122
 
118
- function getRoleCode(role: Role): string {
123
+ export function getRoleCode(role: Role): string {
119
124
  switch (role) {
120
125
  case 'author':
121
126
  return 'author'
@@ -164,7 +169,7 @@ function getRoleCode(role: Role): string {
164
169
  }
165
170
  }
166
171
 
167
- function getDistributionProtocol(
172
+ export function getDistributionProtocol(
168
173
  distribution: DatasetServiceDistribution
169
174
  ): string {
170
175
  switch (distribution.accessServiceProtocol.toLowerCase()) {
@@ -179,7 +184,7 @@ function getDistributionProtocol(
179
184
  }
180
185
  }
181
186
 
182
- function getMaintenanceFrequencyCode(
187
+ export function getMaintenanceFrequencyCode(
183
188
  updateFrequency: UpdateFrequencyCode
184
189
  ): string | null {
185
190
  switch (updateFrequency) {
@@ -198,7 +203,7 @@ function getMaintenanceFrequencyCode(
198
203
  }
199
204
  }
200
205
 
201
- function getISODuration(updateFrequency: UpdateFrequencyCustom): string {
206
+ export function getISODuration(updateFrequency: UpdateFrequencyCustom): string {
202
207
  const duration = {
203
208
  years: 0,
204
209
  months: 0,
@@ -212,7 +217,7 @@ function getISODuration(updateFrequency: UpdateFrequencyCustom): string {
212
217
  else duration.hours = Math.round(24 / updateFrequency.updatedTimes)
213
218
  break
214
219
  case 'week':
215
- duration.days = Math.round(7 / updateFrequency.updatedTimes)
220
+ duration.days = Math.round(7 / updateFrequency.updatedTimes - 0.0001) // this is to make sure that '2 times per week' = 'every 3 days'
216
221
  break
217
222
  case 'month':
218
223
  if (updateFrequency.updatedTimes <= 1) duration.months = 1
@@ -227,19 +232,61 @@ function getISODuration(updateFrequency: UpdateFrequencyCustom): string {
227
232
  return `P${duration.years}Y${duration.months}M${duration.days}D${hours}`
228
233
  }
229
234
 
230
- function appendResponsibleParty(contact: Individual) {
231
- const name =
232
- contact.lastName && contact.firstName
233
- ? `${contact.firstName} ${contact.lastName}`
234
- : contact.lastName || contact.firstName || null
235
+ export function appendResponsibleParty(contact: Individual) {
236
+ const fullName = namePartsToFull(contact.firstName, contact.lastName)
237
+
238
+ const createAddress = pipe(
239
+ createElement('gmd:address'),
240
+ createChild('gmd:CI_Address'),
241
+ appendChildren(
242
+ pipe(
243
+ createElement('gmd:electronicMailAddress'),
244
+ writeCharacterString(contact.email)
245
+ )
246
+ ),
247
+ contact.address
248
+ ? appendChildren(
249
+ pipe(
250
+ createElement('gmd:deliveryPoint'),
251
+ writeCharacterString(contact.address)
252
+ )
253
+ )
254
+ : noop
255
+ )
256
+
257
+ const createContact = pipe(
258
+ createElement('gmd:contactInfo'),
259
+ createChild('gmd:CI_Contact'),
260
+ contact.phone
261
+ ? appendChildren(
262
+ pipe(
263
+ createElement('gmd:phone'),
264
+ createChild('gmd:CI_Telephone'),
265
+ createChild('gmd:voice'),
266
+ writeCharacterString(contact.phone)
267
+ )
268
+ )
269
+ : noop,
270
+ appendChildren(createAddress),
271
+ 'website' in contact.organization
272
+ ? appendChildren(
273
+ pipe(
274
+ createElement('gmd:onlineResource'),
275
+ createChild('gmd:CI_OnlineResource'),
276
+ writeLinkage(contact.organization.website)
277
+ )
278
+ )
279
+ : noop
280
+ )
281
+
235
282
  return appendChildren(
236
283
  pipe(
237
284
  createElement('gmd:CI_ResponsibleParty'),
238
- name
285
+ fullName
239
286
  ? appendChildren(
240
287
  pipe(
241
288
  createElement('gmd:individualName'),
242
- writeCharacterString(name)
289
+ writeCharacterString(fullName)
243
290
  )
244
291
  )
245
292
  : noop,
@@ -256,27 +303,7 @@ function appendResponsibleParty(contact: Individual) {
256
303
  createElement('gmd:organisationName'),
257
304
  writeCharacterString(contact.organization.name)
258
305
  ),
259
- pipe(
260
- createElement('gmd:contactInfo'),
261
- createChild('gmd:CI_Contact'),
262
- appendChildren(
263
- pipe(
264
- createElement('gmd:address'),
265
- createChild('gmd:CI_Address'),
266
- createChild('gmd:electronicMailAddress'),
267
- writeCharacterString(contact.email)
268
- )
269
- ),
270
- 'website' in contact.organization
271
- ? appendChildren(
272
- pipe(
273
- createElement('gmd:onlineResource'),
274
- createChild('gmd:CI_OnlineResource'),
275
- writeLinkage(contact.organization.website)
276
- )
277
- )
278
- : noop
279
- ),
306
+ createContact,
280
307
  pipe(
281
308
  createElement('gmd:role'),
282
309
  createChild('gmd:CI_RoleCode'),
@@ -291,7 +318,7 @@ function appendResponsibleParty(contact: Individual) {
291
318
  )
292
319
  }
293
320
 
294
- function updateCitationDate(
321
+ export function updateCitationDate(
295
322
  date: Date,
296
323
  type: 'revision' | 'creation' | 'publication'
297
324
  ) {
@@ -311,8 +338,8 @@ function updateCitationDate(
311
338
  )
312
339
  }
313
340
 
314
- function appendCitationDate(
315
- date,
341
+ export function appendCitationDate(
342
+ date: Date,
316
343
  type: 'revision' | 'creation' | 'publication'
317
344
  ) {
318
345
  return appendChildren(
@@ -335,12 +362,12 @@ function appendCitationDate(
335
362
  )
336
363
  }
337
364
 
338
- function removeKeywords() {
365
+ export function removeKeywords() {
339
366
  return removeChildren(pipe(findNestedElements('gmd:descriptiveKeywords')))
340
367
  }
341
368
 
342
369
  // returns a <gmd:thesaurusName> element
343
- function createThesaurus(thesaurus: KeywordThesaurus) {
370
+ export function createThesaurus(thesaurus: KeywordThesaurus) {
344
371
  return pipe(
345
372
  createElement('gmd:thesaurusName'),
346
373
  createChild('gmd:CI_Citation'),
@@ -365,14 +392,15 @@ function createThesaurus(thesaurus: KeywordThesaurus) {
365
392
  )
366
393
  }
367
394
 
368
- function appendKeywords(keywords: Keyword[]) {
395
+ export function appendKeywords(keywords: Keyword[]) {
396
+ // keywords are grouped by thesaurus if they have one, otherwise by type
369
397
  const keywordsByThesaurus: Keyword[][] = keywords.reduce((acc, keyword) => {
370
398
  const thesaurusId = keyword.thesaurus?.id
371
399
  const type = keyword.type
372
400
  let existingGroup = acc.find((group) =>
373
- group[0].thesaurus
374
- ? group[0].thesaurus.id === thesaurusId
375
- : group[0].type === type
401
+ thesaurusId
402
+ ? group[0].thesaurus?.id === thesaurusId
403
+ : group[0].type === type && !group[0].thesaurus
376
404
  )
377
405
  if (!existingGroup) {
378
406
  existingGroup = []
@@ -413,7 +441,7 @@ function appendKeywords(keywords: Keyword[]) {
413
441
  )
414
442
  }
415
443
 
416
- function createConstraint(
444
+ export function createConstraint(
417
445
  constraint: Constraint,
418
446
  type: 'legal' | 'security' | 'other'
419
447
  ) {
@@ -471,7 +499,7 @@ function createConstraint(
471
499
  )
472
500
  }
473
501
 
474
- function removeOtherConstraints() {
502
+ export function removeOtherConstraints() {
475
503
  return removeChildren(
476
504
  pipe(
477
505
  findChildrenElement('gmd:resourceConstraints'),
@@ -485,7 +513,7 @@ function removeOtherConstraints() {
485
513
  )
486
514
  }
487
515
 
488
- function removeSecurityConstraints() {
516
+ export function removeSecurityConstraints() {
489
517
  return removeChildren(
490
518
  pipe(
491
519
  findChildrenElement('gmd:resourceConstraints'),
@@ -499,7 +527,7 @@ function removeSecurityConstraints() {
499
527
  )
500
528
  }
501
529
 
502
- function removeLegalConstraints() {
530
+ export function removeLegalConstraints() {
503
531
  return removeChildren(
504
532
  pipe(
505
533
  findChildrenElement('gmd:resourceConstraints'),
@@ -519,7 +547,7 @@ function removeLegalConstraints() {
519
547
  )
520
548
  }
521
549
 
522
- function removeLicenses() {
550
+ export function removeLicenses() {
523
551
  return removeChildren(
524
552
  pipe(
525
553
  findChildrenElement('gmd:resourceConstraints'),
@@ -539,7 +567,7 @@ function removeLicenses() {
539
567
  )
540
568
  }
541
569
 
542
- function createLicense(license: Constraint) {
570
+ export function createLicense(license: Constraint) {
543
571
  return pipe(
544
572
  createElement('gmd:resourceConstraints'),
545
573
  createChild('gmd:MD_LegalConstraints'),
@@ -572,44 +600,52 @@ function createLicense(license: Constraint) {
572
600
  )
573
601
  }
574
602
 
575
- function removeDistributions() {
603
+ export function removeDistributions() {
576
604
  return pipe(removeChildrenByName('gmd:distributionInfo'))
577
605
  }
578
606
 
579
- function createDistribution(distribution: DatasetDistribution) {
580
- const appendDistributionFormat =
581
- 'mimeType' in distribution
582
- ? appendChildren(
583
- pipe(
584
- createElement('gmd:distributionFormat'),
585
- createChild('gmd:MD_Format'),
586
- appendChildren(
587
- pipe(
588
- createElement('gmd:name'),
589
- writeCharacterString(distribution.mimeType)
590
- ),
591
- pipe(
592
- createElement('gmd:version'),
593
- writeCharacterString('1.0') // hardcoding this as it most likely won't be used but is mandatory
594
- )
595
- )
596
- )
607
+ function appendDistributionFormat(mimeType: string) {
608
+ return appendChildren(
609
+ pipe(
610
+ createElement('gmd:distributionFormat'),
611
+ createChild('gmd:MD_Format'),
612
+ appendChildren(
613
+ pipe(createElement('gmd:name'), writeCharacterString(mimeType)),
614
+ pipe(
615
+ createElement('gmd:version'),
616
+ writeCharacterString('1.0') // hardcoding this as it most likely won't be used but is mandatory
597
617
  )
598
- : noop
618
+ )
619
+ )
620
+ )
621
+ }
599
622
 
600
- let linkageUrl, name, functionCode, protocol
623
+ export function createDistributionInfo() {
624
+ return pipe(
625
+ createElement('gmd:distributionInfo'),
626
+ createChild('gmd:MD_Distribution')
627
+ )
628
+ }
629
+
630
+ // apply to MD_Distribution
631
+ export function appendDistribution(
632
+ distribution: DatasetDistribution,
633
+ appendFormatFn: (
634
+ mimeType: string
635
+ ) => ChainableFunction<XmlElement, XmlElement>
636
+ ) {
637
+ let name: string
638
+ let functionCode: string
639
+ let protocol: string
601
640
  if (distribution.type === 'service') {
602
- linkageUrl = distribution.url.toString()
603
641
  name = distribution.identifierInService // this is for GeoNetwork to know the layer name
604
642
  functionCode = 'download'
605
643
  protocol = getDistributionProtocol(distribution)
606
644
  } else if (distribution.type === 'download') {
607
- linkageUrl = distribution.url.toString()
608
645
  name = distribution.name
609
646
  functionCode = 'download'
610
647
  protocol = 'WWW:DOWNLOAD'
611
648
  } else {
612
- linkageUrl = distribution.url.toString()
613
649
  name = distribution.name
614
650
  functionCode = 'information'
615
651
  protocol = 'WWW:LINK'
@@ -620,7 +656,7 @@ function createDistribution(distribution: DatasetDistribution) {
620
656
  createChild('gmd:MD_DigitalTransferOptions'),
621
657
  createChild('gmd:onLine'),
622
658
  createChild('gmd:CI_OnlineResource'),
623
- writeLinkage(linkageUrl),
659
+ writeLinkage(distribution.url),
624
660
  'description' in distribution
625
661
  ? appendChildren(
626
662
  pipe(
@@ -649,9 +685,7 @@ function createDistribution(distribution: DatasetDistribution) {
649
685
  )
650
686
  )
651
687
  return pipe(
652
- createElement('gmd:distributionInfo'),
653
- createChild('gmd:MD_Distribution'),
654
- appendDistributionFormat,
688
+ 'mimeType' in distribution ? appendFormatFn(distribution.mimeType) : noop,
655
689
  appendTransferOptions
656
690
  )
657
691
  }
@@ -660,7 +694,7 @@ function createDistribution(distribution: DatasetDistribution) {
660
694
  * Looks for srv:SV_ServiceIdentification or gmd:MD_DataIdentification element
661
695
  * depending on record type, create if missing
662
696
  */
663
- function findOrCreateIdentification() {
697
+ export function findOrCreateIdentification() {
664
698
  return (rootEl: XmlElement) => {
665
699
  const kind = readKind(rootEl)
666
700
  let eltName = 'gmd:MD_DataIdentification'
@@ -669,7 +703,7 @@ function findOrCreateIdentification() {
669
703
  }
670
704
  }
671
705
 
672
- function findOrCreateDistribution() {
706
+ export function findOrCreateDistribution() {
673
707
  return (rootEl: XmlElement) => {
674
708
  return findNestedChildOrCreate(
675
709
  'gmd:distributionInfo',
@@ -763,11 +797,26 @@ export function writeStatus(record: DatasetRecord, rootEl: XmlElement) {
763
797
  }
764
798
 
765
799
  export function writeContacts(record: CatalogRecord, rootEl: XmlElement) {
800
+ pipe(
801
+ removeChildrenByName('gmd:contact'),
802
+ appendChildren(
803
+ ...record.contacts.map((contact) =>
804
+ pipe(createElement('gmd:contact'), appendResponsibleParty(contact))
805
+ )
806
+ )
807
+ )(rootEl)
808
+ }
809
+
810
+ export function writeContactsForResource(
811
+ record: CatalogRecord,
812
+ rootEl: XmlElement
813
+ ) {
766
814
  pipe(
767
815
  findOrCreateIdentification(),
768
816
  removeChildrenByName('gmd:pointOfContact'),
817
+ removeChildrenByName('gmd:contact'),
769
818
  appendChildren(
770
- ...record.contacts.map((contact) =>
819
+ ...record.contactsForResource.map((contact) =>
771
820
  pipe(
772
821
  createElement('gmd:pointOfContact'),
773
822
  appendResponsibleParty(contact)
@@ -878,26 +927,47 @@ export function writeUpdateFrequency(
878
927
  )(rootEl)
879
928
  }
880
929
 
881
- export function writeDatasetCreated(record: DatasetRecord, rootEl: XmlElement) {
882
- if (!('datasetCreated' in record)) return
930
+ export function writeResourceCreated(
931
+ record: DatasetRecord,
932
+ rootEl: XmlElement
933
+ ) {
934
+ if (!('resourceCreated' in record)) return
883
935
  pipe(
884
936
  findOrCreateIdentification(),
885
937
  findNestedChildOrCreate('gmd:citation', 'gmd:CI_Citation'),
886
938
  fallback(
887
- updateCitationDate(record.datasetCreated, 'creation'),
888
- appendCitationDate(record.datasetCreated, 'creation')
939
+ updateCitationDate(record.resourceCreated, 'creation'),
940
+ appendCitationDate(record.resourceCreated, 'creation')
889
941
  )
890
942
  )(rootEl)
891
943
  }
892
944
 
893
- export function writeDatasetUpdated(record: DatasetRecord, rootEl: XmlElement) {
894
- if (!('datasetUpdated' in record)) return
945
+ export function writeResourceUpdated(
946
+ record: DatasetRecord,
947
+ rootEl: XmlElement
948
+ ) {
949
+ if (!('resourceUpdated' in record)) return
895
950
  pipe(
896
951
  findOrCreateIdentification(),
897
952
  findNestedChildOrCreate('gmd:citation', 'gmd:CI_Citation'),
898
953
  fallback(
899
- updateCitationDate(record.datasetUpdated, 'revision'),
900
- appendCitationDate(record.datasetUpdated, 'revision')
954
+ updateCitationDate(record.resourceUpdated, 'revision'),
955
+ appendCitationDate(record.resourceUpdated, 'revision')
956
+ )
957
+ )(rootEl)
958
+ }
959
+
960
+ export function writeResourcePublished(
961
+ record: DatasetRecord,
962
+ rootEl: XmlElement
963
+ ) {
964
+ if (!('resourcePublished' in record)) return
965
+ pipe(
966
+ findOrCreateIdentification(),
967
+ findNestedChildOrCreate('gmd:citation', 'gmd:CI_Citation'),
968
+ fallback(
969
+ updateCitationDate(record.resourcePublished, 'publication'),
970
+ appendCitationDate(record.resourcePublished, 'publication')
901
971
  )
902
972
  )(rootEl)
903
973
  }
@@ -955,7 +1025,14 @@ export function writeGraphicOverviews(
955
1025
  export function writeDistributions(record: DatasetRecord, rootEl: XmlElement) {
956
1026
  pipe(
957
1027
  removeDistributions(),
958
- appendChildren(...record.distributions.map(createDistribution))
1028
+ appendChildren(
1029
+ ...record.distributions.map((d) =>
1030
+ pipe(
1031
+ createDistributionInfo(),
1032
+ appendDistribution(d, appendDistributionFormat)
1033
+ )
1034
+ )
1035
+ )
959
1036
  )(rootEl)
960
1037
  }
961
1038
 
@@ -972,7 +1049,7 @@ export function writeLineage(record: DatasetRecord, rootEl: XmlElement) {
972
1049
  )(rootEl)
973
1050
  }
974
1051
 
975
- function getServiceEndpointProtocol(endpoint: ServiceEndpoint): string {
1052
+ export function getServiceEndpointProtocol(endpoint: ServiceEndpoint): string {
976
1053
  switch (endpoint.protocol.toLowerCase()) {
977
1054
  case 'wfs':
978
1055
  return 'OGC:WFS'
@@ -985,7 +1062,7 @@ function getServiceEndpointProtocol(endpoint: ServiceEndpoint): string {
985
1062
  }
986
1063
  }
987
1064
 
988
- function createOnlineResource(onlineResource: ServiceOnlineResource) {
1065
+ export function createOnlineResource(onlineResource: ServiceOnlineResource) {
989
1066
  let linkageUrl, functionCode, protocol
990
1067
  if (onlineResource.type === 'endpoint') {
991
1068
  linkageUrl = onlineResource.endpointUrl.toString()
@@ -1049,3 +1126,61 @@ export function writeOnlineResources(
1049
1126
  appendChildren(...record.onlineResources.map(createOnlineResource))
1050
1127
  )(rootEl)
1051
1128
  }
1129
+
1130
+ export function writeTemporalExtents(
1131
+ record: DatasetRecord,
1132
+ rootEl: XmlElement
1133
+ ) {
1134
+ pipe(
1135
+ findOrCreateIdentification(),
1136
+ findNestedChildOrCreate('gmd:extent', 'gmd:EX_Extent'),
1137
+ removeChildrenByName('gmd:temporalElement'),
1138
+ appendChildren(
1139
+ ...record.temporalExtents.map((extent) =>
1140
+ pipe(
1141
+ createElement('gmd:temporalElement'),
1142
+ createChild('gmd:EX_TemporalExtent'),
1143
+ appendChildren(
1144
+ 'start' in extent && 'end' in extent
1145
+ ? pipe(
1146
+ createElement('gmd:extent'),
1147
+ createChild('gml:TimePeriod'),
1148
+ appendChildren(
1149
+ pipe(
1150
+ createElement('gml:beginPosition'),
1151
+ pipe(
1152
+ extent.start
1153
+ ? setTextContent(format(extent.start, 'yyyy-MM-dd'))
1154
+ : addAttribute('indeterminatePosition', 'unknown')
1155
+ )
1156
+ ),
1157
+ pipe(
1158
+ createElement('gml:endPosition'),
1159
+ pipe(
1160
+ extent.end
1161
+ ? setTextContent(format(extent.end, 'yyyy-MM-dd'))
1162
+ : addAttribute('indeterminatePosition', 'unknown')
1163
+ )
1164
+ )
1165
+ )
1166
+ )
1167
+ : pipe(
1168
+ createElement('gmd:extent'),
1169
+ createChild('gml:TimeInstant'),
1170
+ appendChildren(
1171
+ pipe(
1172
+ createElement('gml:timePosition'),
1173
+ pipe(
1174
+ extent.start
1175
+ ? setTextContent(format(extent.start, 'yyyy-MM-dd'))
1176
+ : addAttribute('indeterminatePosition', 'unknown')
1177
+ )
1178
+ )
1179
+ )
1180
+ )
1181
+ )
1182
+ )
1183
+ )
1184
+ )
1185
+ )(rootEl)
1186
+ }