geonetwork-ui 2.4.0-dev.8f04e899 → 2.4.0-dev.9121e5f4

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 (172) hide show
  1. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +10 -1
  2. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.mjs +2 -1
  3. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.mjs +3 -1
  4. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +2 -2
  5. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +9 -5
  6. package/esm2022/libs/common/domain/src/lib/model/record/organization.model.mjs +1 -1
  7. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  8. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  9. package/esm2022/libs/data-access/gn4/src/openapi/model/user.api.model.mjs +1 -1
  10. package/esm2022/libs/feature/catalog/src/index.mjs +2 -1
  11. package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +1 -1
  12. package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +6 -6
  13. package/esm2022/libs/feature/catalog/src/lib/organization-url.token.mjs +4 -0
  14. package/esm2022/libs/feature/catalog/src/lib/records/records.service.mjs +4 -6
  15. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +4 -2
  16. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +8 -12
  17. package/esm2022/libs/feature/router/src/lib/default/constants.mjs +2 -1
  18. package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
  19. package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +9 -2
  20. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +8 -1
  21. package/esm2022/libs/feature/search/src/index.mjs +2 -2
  22. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +49 -0
  23. package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +3 -2
  24. package/esm2022/libs/feature/search/src/lib/state/selectors.mjs +4 -1
  25. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +5 -5
  26. package/esm2022/libs/ui/catalog/src/lib/ui-catalog.module.mjs +5 -2
  27. package/esm2022/libs/ui/dataviz/src/lib/figure/figure.component.mjs +5 -8
  28. package/esm2022/libs/ui/elements/src/index.mjs +1 -2
  29. package/esm2022/libs/ui/elements/src/lib/error/error.component.mjs +5 -3
  30. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +4 -4
  31. package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +24 -5
  32. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +7 -9
  33. package/esm2022/libs/ui/layout/src/index.mjs +2 -1
  34. package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +71 -0
  35. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +1 -1
  36. package/esm2022/libs/ui/search/src/index.mjs +2 -1
  37. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +120 -0
  38. package/esm2022/translations/de.json +27 -4
  39. package/esm2022/translations/en.json +30 -4
  40. package/esm2022/translations/es.json +27 -4
  41. package/esm2022/translations/fr.json +31 -5
  42. package/esm2022/translations/it.json +27 -4
  43. package/esm2022/translations/nl.json +27 -4
  44. package/esm2022/translations/pt.json +27 -4
  45. package/fesm2022/geonetwork-ui.mjs +478 -228
  46. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  47. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +1 -0
  48. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  49. package/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.d.ts.map +1 -1
  50. package/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.d.ts.map +1 -1
  51. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +2 -1
  52. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  53. package/libs/common/domain/src/lib/model/record/organization.model.d.ts +1 -0
  54. package/libs/common/domain/src/lib/model/record/organization.model.d.ts.map +1 -1
  55. package/libs/common/domain/src/lib/platform.service.interface.d.ts +2 -1
  56. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  57. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +2 -0
  58. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  59. package/libs/data-access/gn4/src/openapi/model/user.api.model.d.ts +1 -1
  60. package/libs/feature/catalog/src/index.d.ts +1 -0
  61. package/libs/feature/catalog/src/index.d.ts.map +1 -1
  62. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts.map +1 -1
  63. package/libs/feature/catalog/src/lib/organisations/organisations.component.d.ts.map +1 -1
  64. package/libs/feature/catalog/src/lib/organization-url.token.d.ts +3 -0
  65. package/libs/feature/catalog/src/lib/organization-url.token.d.ts.map +1 -0
  66. package/libs/feature/catalog/src/lib/records/records.service.d.ts.map +1 -1
  67. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -1
  68. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  69. package/libs/feature/router/src/lib/default/constants.d.ts +1 -0
  70. package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
  71. package/libs/feature/router/src/lib/default/router.config.d.ts +1 -0
  72. package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
  73. package/libs/feature/router/src/lib/default/router.service.d.ts +1 -0
  74. package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
  75. package/libs/feature/router/src/lib/default/state/router.facade.d.ts +1 -0
  76. package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
  77. package/libs/feature/search/src/index.d.ts +1 -1
  78. package/libs/feature/search/src/index.d.ts.map +1 -1
  79. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +25 -0
  80. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -0
  81. package/libs/feature/search/src/lib/state/search.facade.d.ts +1 -0
  82. package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
  83. package/libs/feature/search/src/lib/state/selectors.d.ts +1 -0
  84. package/libs/feature/search/src/lib/state/selectors.d.ts.map +1 -1
  85. package/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.d.ts +2 -2
  86. package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts +2 -1
  87. package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts.map +1 -1
  88. package/libs/ui/dataviz/src/lib/figure/figure.component.d.ts +1 -2
  89. package/libs/ui/dataviz/src/lib/figure/figure.component.d.ts.map +1 -1
  90. package/libs/ui/elements/src/index.d.ts +0 -1
  91. package/libs/ui/elements/src/index.d.ts.map +1 -1
  92. package/libs/ui/elements/src/lib/error/error.component.d.ts +3 -1
  93. package/libs/ui/elements/src/lib/error/error.component.d.ts.map +1 -1
  94. package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts +5 -1
  95. package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts.map +1 -1
  96. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +19 -19
  97. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  98. package/libs/ui/layout/src/index.d.ts +1 -0
  99. package/libs/ui/layout/src/index.d.ts.map +1 -1
  100. package/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.d.ts +2 -2
  101. package/libs/ui/layout/src/lib/max-lines/max-lines.component.d.ts.map +1 -0
  102. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  103. package/libs/ui/search/src/index.d.ts +1 -0
  104. package/libs/ui/search/src/index.d.ts.map +1 -1
  105. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +30 -0
  106. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -0
  107. package/package.json +1 -1
  108. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +14 -0
  109. package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.ts +1 -0
  110. package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.ts +3 -1
  111. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +1 -1
  112. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +26 -15
  113. package/src/libs/common/domain/src/lib/model/record/organization.model.ts +1 -0
  114. package/src/libs/common/domain/src/lib/platform.service.interface.ts +5 -1
  115. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +3 -0
  116. package/src/libs/common/fixtures/src/lib/organisations.fixture.ts +28 -0
  117. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +8 -0
  118. package/src/libs/data-access/datafeeder/src/openapi/model/datasetMetadata.api.model.ts +4 -0
  119. package/src/libs/data-access/datafeeder/src/openapi/model/datasetUploadStatus.api.model.ts +2 -0
  120. package/src/libs/data-access/gn4/src/openapi/model/user.api.model.ts +1 -1
  121. package/src/libs/feature/catalog/src/index.ts +1 -0
  122. package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +0 -1
  123. package/src/libs/feature/catalog/src/lib/organisations/organisations.component.html +1 -1
  124. package/src/libs/feature/catalog/src/lib/organisations/organisations.component.ts +2 -2
  125. package/src/libs/feature/catalog/src/lib/organization-url.token.ts +6 -0
  126. package/src/libs/feature/catalog/src/lib/records/records.service.ts +6 -8
  127. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +8 -6
  128. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +42 -31
  129. package/src/libs/feature/router/src/lib/default/constants.ts +1 -0
  130. package/src/libs/feature/router/src/lib/default/router.config.ts +1 -0
  131. package/src/libs/feature/router/src/lib/default/router.service.ts +13 -1
  132. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +9 -1
  133. package/src/libs/feature/search/src/index.ts +1 -1
  134. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +9 -0
  135. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +49 -0
  136. package/src/libs/feature/search/src/lib/state/search.facade.ts +5 -0
  137. package/src/libs/feature/search/src/lib/state/selectors.ts +7 -0
  138. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html +8 -6
  139. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.ts +2 -2
  140. package/src/libs/ui/catalog/src/lib/ui-catalog.module.ts +2 -0
  141. package/src/libs/ui/dataviz/src/lib/figure/figure.component.html +11 -3
  142. package/src/libs/ui/dataviz/src/lib/figure/figure.component.ts +3 -7
  143. package/src/libs/ui/elements/src/index.ts +0 -1
  144. package/src/libs/ui/elements/src/lib/error/error.component.html +30 -6
  145. package/src/libs/ui/elements/src/lib/error/error.component.ts +2 -0
  146. package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +1 -1
  147. package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.ts +22 -1
  148. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +2 -4
  149. package/src/libs/ui/layout/src/index.ts +1 -0
  150. package/src/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.html +1 -0
  151. package/src/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.ts +9 -5
  152. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +0 -1
  153. package/src/libs/ui/search/src/index.ts +1 -0
  154. package/src/libs/ui/search/src/lib/results-table/results-table.component.css +0 -0
  155. package/src/libs/{feature → ui}/search/src/lib/results-table/results-table.component.html +8 -8
  156. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +138 -0
  157. package/translations/de.json +27 -4
  158. package/translations/en.json +30 -4
  159. package/translations/es.json +27 -4
  160. package/translations/fr.json +31 -5
  161. package/translations/it.json +27 -4
  162. package/translations/nl.json +27 -4
  163. package/translations/pt.json +27 -4
  164. package/translations/sk.json +28 -5
  165. package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +0 -136
  166. package/esm2022/libs/ui/elements/src/lib/max-lines/max-lines.component.mjs +0 -69
  167. package/libs/feature/search/src/lib/results-table/results-table.component.d.ts +0 -36
  168. package/libs/feature/search/src/lib/results-table/results-table.component.d.ts.map +0 -1
  169. package/libs/ui/elements/src/lib/max-lines/max-lines.component.d.ts.map +0 -1
  170. package/src/libs/feature/search/src/lib/results-table/results-table.component.ts +0 -171
  171. /package/src/libs/feature/search/src/lib/results-table/{results-table.component.css → results-table-container.component.css} +0 -0
  172. /package/src/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.css +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ui-layout.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/layout/src/lib/ui-layout.module.ts"],"names":[],"mappings":";;;;;;;;AAUA,qBAea,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
1
+ {"version":3,"file":"ui-layout.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/layout/src/lib/ui-layout.module.ts"],"names":[],"mappings":";;;;;;;;AASA,qBAea,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
@@ -17,4 +17,5 @@ export * from './lib/record-preview-title/record-preview-title.component';
17
17
  export * from './lib/record-metric/record-metric.component';
18
18
  export * from './lib/results-list-item/results-list-item.component';
19
19
  export * from './lib/results-hits-number/results-hits-number.component';
20
+ export * from './lib/results-table/results-table.component';
20
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/search/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3E,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,gDAAgD,CAAA;AAC9D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,wBAAwB,CAAA;AACtC,cAAc,0CAA0C,CAAA;AACxD,cAAc,2CAA2C,CAAA;AACzD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,yDAAyD,CAAA;AACvE,cAAc,uDAAuD,CAAA;AACrE,cAAc,yDAAyD,CAAA;AACvE,cAAc,yDAAyD,CAAA;AACvE,cAAc,yDAAyD,CAAA;AACvE,cAAc,2DAA2D,CAAA;AACzE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,qDAAqD,CAAA;AACnE,cAAc,yDAAyD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/search/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3E,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,gDAAgD,CAAA;AAC9D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,wBAAwB,CAAA;AACtC,cAAc,0CAA0C,CAAA;AACxD,cAAc,2CAA2C,CAAA;AACzD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,yDAAyD,CAAA;AACvE,cAAc,uDAAuD,CAAA;AACrE,cAAc,yDAAyD,CAAA;AACvE,cAAc,yDAAyD,CAAA;AACvE,cAAc,yDAAyD,CAAA;AACvE,cAAc,2DAA2D,CAAA;AACzE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,qDAAqD,CAAA;AACnE,cAAc,yDAAyD,CAAA;AACvE,cAAc,6CAA6C,CAAA"}
@@ -0,0 +1,30 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record';
3
+ import { FileFormat } from '../../../../../../libs/util/shared/src';
4
+ import { SortByField } from '../../../../../../libs/common/domain/src/lib/model/search';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ResultsTableComponent {
7
+ records: CatalogRecord[];
8
+ selectedRecordsIdentifiers: string[];
9
+ sortOrder: SortByField;
10
+ recordHasDraft: (record: CatalogRecord) => boolean;
11
+ sortByChange: EventEmitter<[string, "asc" | "desc"]>;
12
+ recordClick: EventEmitter<CatalogRecord>;
13
+ recordsSelectedChange: EventEmitter<[CatalogRecord[], boolean]>;
14
+ dateToString(date: Date): string;
15
+ getStatus(isPublishedToAll: boolean | unknown): "published" | "not published";
16
+ getRecordFormats(record: CatalogRecord): FileFormat[];
17
+ formatUserInfo(userInfo: string | unknown): string;
18
+ getBadgeColor(format: FileFormat): string;
19
+ handleRecordClick(item: unknown): void;
20
+ setSortBy(col: string, order: 'asc' | 'desc'): void;
21
+ isSortedBy(col: string): 'desc' | 'asc' | null;
22
+ isChecked(record: CatalogRecord): boolean;
23
+ handleRecordSelectedChange(selected: boolean, record: CatalogRecord): void;
24
+ toggleSelectAll(): Promise<void>;
25
+ isAllSelected(): boolean;
26
+ isSomeSelected(): boolean;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResultsTableComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<ResultsTableComponent, "gn-ui-results-table", never, { "records": { "alias": "records"; "required": false; }; "selectedRecordsIdentifiers": { "alias": "selectedRecordsIdentifiers"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "recordHasDraft": { "alias": "recordHasDraft"; "required": false; }; }, { "sortByChange": "sortByChange"; "recordClick": "recordClick"; "recordsSelectedChange": "recordsSelectedChange"; }, never, never, true, never>;
29
+ }
30
+ //# sourceMappingURL=results-table.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"results-table.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/search/src/lib/results-table/results-table.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAA;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EACL,UAAU,EAIX,MAAM,wCAAwC,CAAA;AAS/C,OAAO,EAEL,WAAW,EACZ,MAAM,2DAA2D,CAAA;;AAElE,qBAea,qBAAqB;IACvB,OAAO,EAAE,aAAa,EAAE,CAAK;IAC7B,0BAA0B,EAAE,MAAM,EAAE,CAAK;IACzC,SAAS,EAAE,WAAW,CAAO;IAC7B,cAAc,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAc;IAG/D,YAAY,yCAA+C;IAC3D,WAAW,8BAAoC;IAC/C,qBAAqB,2CAE5B;IAEH,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAShC,SAAS,CAAC,gBAAgB,EAAE,OAAO,GAAG,OAAO;IAI7C,gBAAgB,CAAC,MAAM,EAAE,aAAa,GAAG,UAAU,EAAE;IAarD,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM;IAQlD,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM;IAIzC,iBAAiB,CAAC,IAAI,EAAE,OAAO;IAI/B,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM;IAI5C,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI;IAe9C,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO;IAIzC,0BAA0B,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa;IAI7D,eAAe;IAIrB,aAAa,IAAI,OAAO;IAMxB,cAAc,IAAI,OAAO;yCA5Fd,qBAAqB;2CAArB,qBAAqB;CAqGjC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geonetwork-ui",
3
- "version": "2.4.0-dev.8f04e899",
3
+ "version": "2.4.0-dev.9121e5f4",
4
4
  "engines": {
5
5
  "node": ">=14.17.0"
6
6
  },
@@ -302,4 +302,18 @@ export class Gn4Repository implements RecordsRepositoryInterface {
302
302
  ) !== null
303
303
  )
304
304
  }
305
+
306
+ // generated by copilot
307
+ getAllDrafts(): Observable<CatalogRecord[]> {
308
+ const items = { ...window.localStorage }
309
+ const drafts = Object.keys(items)
310
+ .filter((key) => key.startsWith('geonetwork-ui-draft-'))
311
+ .map((key) => window.localStorage.getItem(key))
312
+ .filter((draft) => draft !== null)
313
+ return from(
314
+ Promise.all(
315
+ drafts.map((draft) => findConverterForDocument(draft).readRecord(draft))
316
+ )
317
+ )
318
+ }
305
319
  }
@@ -76,6 +76,7 @@ export class OrganizationsFromGroupsService
76
76
  return {
77
77
  name: group.label[lang3],
78
78
  ...(group.description && { description: group.description }),
79
+ ...(group.email && { email: group.email }),
79
80
  ...(group.logo && {
80
81
  logoUrl: getAsUrl(`${IMAGE_URL}${group.logo}`),
81
82
  }),
@@ -230,10 +230,12 @@ export class OrganizationsFromMetadataService
230
230
  if (!group) return fullOrg
231
231
  return {
232
232
  ...fullOrg,
233
+ email: emails[0],
233
234
  ...(group.description && { description: group.description }),
234
235
  ...(group.logo && { logoUrl: getAsUrl(`${IMAGE_URL}${group.logo}`) }),
235
236
  ...(group.website && { website: getAsUrl(group.website) }),
236
- }
237
+ ...(group.email && { email: group.email }),
238
+ } as Organization
237
239
  })
238
240
  }
239
241
 
@@ -45,7 +45,7 @@ export class Gn4PlatformMapper {
45
45
  const {
46
46
  enabled,
47
47
  emailAddresses,
48
- organisation,
48
+ organization,
49
49
  kind,
50
50
  lastLoginDate,
51
51
  accountNonExpired,
@@ -5,7 +5,6 @@ import {
5
5
  MeApiService,
6
6
  RegistriesApiService,
7
7
  SiteApiService,
8
- ThesaurusInfoApiModel,
9
8
  ToolsApiService,
10
9
  UserfeedbackApiService,
11
10
  UsersApiService,
@@ -25,6 +24,7 @@ import {
25
24
  KeywordApiResponse,
26
25
  ThesaurusApiResponse,
27
26
  } from '../../../../../../../libs/api/metadata-converter/src'
27
+ import { KeywordType } from '../../../../../../../libs/common/domain/src/lib/model/thesaurus'
28
28
 
29
29
  const minApiVersion = '4.2.2'
30
30
 
@@ -146,25 +146,36 @@ export class Gn4PlatformService implements PlatformServiceInterface {
146
146
  )
147
147
  .pipe(
148
148
  map((thesaurus) => {
149
- // FIXME: find a better way to exclude place keywords
150
- // thesaurus[0].filter((thes) => thes.dname !== 'place')
151
149
  return thesaurus[0] as ThesaurusApiResponse[]
152
150
  }),
153
151
  shareReplay(1)
154
152
  )
155
153
 
156
- searchKeywords(query: string): Observable<Keyword[]> {
157
- const keywords$: Observable<KeywordApiResponse[]> =
158
- this.registriesApiService.searchKeywords(
159
- query,
160
- this.langService.iso3,
161
- 10,
162
- 0,
163
- null,
164
- null,
165
- null,
166
- `*${query}*`
167
- ) as Observable<KeywordApiResponse[]>
154
+ searchKeywords(
155
+ query: string,
156
+ keywordTypes: KeywordType[]
157
+ ): Observable<Keyword[]> {
158
+ const keywords$: Observable<KeywordApiResponse[]> = this.allThesaurus$.pipe(
159
+ switchMap((thesaurus) => {
160
+ const selectedThesauri = []
161
+ keywordTypes.map((keywordType) => {
162
+ selectedThesauri.push(
163
+ ...thesaurus.filter((thes) => thes.dname === keywordType)
164
+ )
165
+ })
166
+
167
+ return this.registriesApiService.searchKeywords(
168
+ query,
169
+ this.langService.iso3,
170
+ 10,
171
+ 0,
172
+ null,
173
+ selectedThesauri.map((thes) => thes.key),
174
+ null,
175
+ `*${query}*`
176
+ ) as Observable<KeywordApiResponse[]>
177
+ })
178
+ )
168
179
 
169
180
  return combineLatest([keywords$, this.allThesaurus$]).pipe(
170
181
  map(([keywords, thesaurus]) => {
@@ -1,5 +1,6 @@
1
1
  export interface Organization {
2
2
  name: string
3
+ email?: string
3
4
  description?: string
4
5
  website?: URL
5
6
  logoUrl?: URL
@@ -2,6 +2,7 @@ import type { Observable } from 'rxjs'
2
2
  import type { UserModel } from './model/user/user.model'
3
3
  import type { Organization } from './model/record/organization.model'
4
4
  import { Keyword, UserFeedback } from './model/record'
5
+ import { KeywordType } from './model/thesaurus'
5
6
 
6
7
  export abstract class PlatformServiceInterface {
7
8
  abstract getType(): string
@@ -15,7 +16,10 @@ export abstract class PlatformServiceInterface {
15
16
  ): Observable<UserModel[]>
16
17
  abstract getOrganizations(): Observable<Organization[]>
17
18
  abstract translateKey(key: string): Observable<string>
18
- abstract searchKeywords(query: string): Observable<Keyword[]>
19
+ abstract searchKeywords(
20
+ query: string,
21
+ keywordTypes: KeywordType[]
22
+ ): Observable<Keyword[]>
19
23
  abstract getKeywordsByUri(uri: string): Observable<Keyword[]>
20
24
  abstract getUserFeedbacks(recordUuid: string): Observable<UserFeedback[]>
21
25
  abstract postUserFeedbacks(recordUuid: UserFeedback): Observable<void>
@@ -52,4 +52,7 @@ export abstract class RecordsRepositoryInterface {
52
52
 
53
53
  abstract clearRecordDraft(uniqueIdentifier: string): void
54
54
  abstract recordHasDraft(uniqueIdentifier: string): boolean
55
+
56
+ /** will return all pending drafts, both published and not published */
57
+ abstract getAllDrafts(): Observable<CatalogRecord[]>
55
58
  }
@@ -5,84 +5,112 @@ export const ORGANISATIONS_FIXTURE: Organization[] = deepFreeze([
5
5
  {
6
6
  name: 'I Data Org',
7
7
  description: 'one org for testing',
8
+ email: 'test@gmail.com',
9
+ website: new URL('https://my-geonetwork.org/'),
8
10
  logoUrl: new URL('https://my-geonetwork.org/logo1.png'),
9
11
  recordCount: 12,
10
12
  },
11
13
  {
12
14
  name: 'H Data Org',
13
15
  description: 'another org for testing',
16
+ email: 'test@gmail.com',
17
+ website: new URL('https://my-geonetwork.org/'),
14
18
  logoUrl: new URL('https://my-geonetwork.org/logo2.png'),
15
19
  recordCount: 15,
16
20
  },
17
21
  {
18
22
  name: 'J Data Org',
19
23
  description: 'another org for testing',
24
+ email: 'test@gmail.com',
25
+ website: new URL('https://my-geonetwork.org/'),
20
26
  logoUrl: new URL('https://my-geonetwork.org/logo3.png'),
21
27
  recordCount: 6,
22
28
  },
23
29
  {
24
30
  name: 'G Data Org',
25
31
  description: 'another org for testing',
32
+ email: 'test@gmail.com',
33
+ website: new URL('https://my-geonetwork.org/'),
26
34
  logoUrl: new URL('https://my-geonetwork.org/logo4.png'),
27
35
  recordCount: 8,
28
36
  },
29
37
  {
30
38
  name: 'B Data Org',
31
39
  description: 'another org for testing',
40
+ email: 'test@gmail.com',
41
+ website: new URL('https://my-geonetwork.org/'),
32
42
  logoUrl: new URL('https://my-geonetwork.org/logo5.png'),
33
43
  recordCount: 2,
34
44
  },
35
45
  {
36
46
  name: 'D Data Org',
37
47
  description: 'another org for testing',
48
+ email: 'test@gmail.com',
49
+ website: new URL('https://my-geonetwork.org/'),
38
50
  logoUrl: new URL('https://my-geonetwork.org/logo6.png'),
39
51
  recordCount: 17,
40
52
  },
41
53
  {
42
54
  name: 'F Data Org',
43
55
  description: 'another org for testing',
56
+ email: 'test@gmail.com',
57
+ website: new URL('https://my-geonetwork.org/'),
44
58
  logoUrl: new URL('https://my-geonetwork.org/logo7.png'),
45
59
  recordCount: 14,
46
60
  },
47
61
  {
48
62
  name: 'A Data Org',
49
63
  description: 'another org for testing',
64
+ email: 'test@gmail.com',
65
+ website: new URL('https://my-geonetwork.org/'),
50
66
  logoUrl: new URL('https://my-geonetwork.org/logo8.png'),
51
67
  recordCount: 3,
52
68
  },
53
69
  {
54
70
  name: 'C Data Org',
55
71
  description: 'another org for testing',
72
+ email: 'test@gmail.com',
73
+ website: new URL('https://my-geonetwork.org/'),
56
74
  logoUrl: new URL('https://my-geonetwork.org/logo9.png'),
57
75
  recordCount: 9,
58
76
  },
59
77
  {
60
78
  name: 'E Data Org',
61
79
  description: 'another org for testing',
80
+ email: 'test@gmail.com',
81
+ website: new URL('https://my-geonetwork.org/'),
62
82
  logoUrl: new URL('https://my-geonetwork.org/logo10.png'),
63
83
  recordCount: 1,
64
84
  },
65
85
  {
66
86
  name: 'é Data Org',
67
87
  description: 'another org for testing',
88
+ email: 'test@gmail.com',
89
+ website: new URL('https://my-geonetwork.org/'),
68
90
  logoUrl: new URL('https://my-geonetwork.org/logo10.png'),
69
91
  recordCount: 2,
70
92
  },
71
93
  {
72
94
  name: 'wizard-org',
73
95
  description: 'another org for testing',
96
+ email: 'test@gmail.com',
97
+ website: new URL('https://my-geonetwork.org/'),
74
98
  logoUrl: new URL('https://my-geonetwork.org/logo11.png'),
75
99
  recordCount: 2,
76
100
  },
77
101
  {
78
102
  name: "Université de l'Ingénierie",
79
103
  description: 'another org for testing',
104
+ email: 'test@gmail.com',
105
+ website: new URL('https://my-geonetwork.org/'),
80
106
  logoUrl: new URL('https://my-geonetwork.org/logo12.png'),
81
107
  recordCount: 2,
82
108
  },
83
109
  {
84
110
  name: 'ARS / Agence régionale de santé',
85
111
  description: 'another org for testing',
112
+ email: 'test@gmail.com',
113
+ website: new URL('https://my-geonetwork.org/'),
86
114
  logoUrl: new URL('https://my-geonetwork.org/logo12.png'),
87
115
  recordCount: 2,
88
116
  },
@@ -233,6 +233,14 @@ Malgré l'attention portée à la création de ces données, il est rappelé que
233
233
  description: 'Téléchargement du fichier',
234
234
  mimeType: 'x-gis/x-shapefile',
235
235
  },
236
+ {
237
+ type: 'service',
238
+ url: new URL('https://my-org.net/ogc'),
239
+ accessServiceProtocol: 'ogcFeatures',
240
+ name: 'ogcFeaturesSecondRecord',
241
+ description: 'This OGC service is the second part of the download',
242
+ identifierInService: 'my:featuretype',
243
+ },
236
244
  ],
237
245
  lineage: `Document d’urbanisme numérisé conformément aux prescriptions nationales du CNIG par le Service d'Information Géographique de l'Agglomération de la Région de Compiègne.
238
246
  Ce lot de données produit en 2019, a été numérisé à partir du PCI Vecteur de 2019 et contrôlé par le Service d'Information Géographique de l'Agglomération de la Région de Compiègne.`,
@@ -38,4 +38,8 @@ export interface DatasetMetadataApiModel {
38
38
  * textual description of dataset lineage
39
39
  */
40
40
  creationProcessDescription?: string
41
+ /**
42
+ * Optional, additional options for the dataset
43
+ */
44
+ options: any
41
45
  }
@@ -34,4 +34,6 @@ export interface DatasetUploadStatusApiModel {
34
34
  * detected charset
35
35
  */
36
36
  encoding?: string
37
+ format?: 'CSV' | 'SHAPEFILE'
38
+ options?: any
37
39
  }
@@ -21,7 +21,7 @@ export interface UserApiModel {
21
21
  emailAddresses?: Set<string>
22
22
  addresses?: Set<AddressApiModel>
23
23
  primaryAddress?: AddressApiModel
24
- organisation?: string
24
+ organization?: string
25
25
  kind?: string
26
26
  lastLoginDate?: string
27
27
  authorities?: Array<GrantedAuthorityApiModel>
@@ -1,4 +1,5 @@
1
1
  export * from './lib/feature-catalog.module'
2
+ export * from './lib/organization-url.token'
2
3
  export * from './lib/sources/sources.service'
3
4
  export * from './lib/sources/sources.model'
4
5
  export * from './lib/records/records.service'
@@ -4,7 +4,6 @@ import { UiCatalogModule } from '../../../../../libs/ui/catalog/src'
4
4
  import {
5
5
  GroupsApiService,
6
6
  SearchApiService,
7
- SiteApiService,
8
7
  } from '../../../../../libs/data-access/gn4/src'
9
8
  import { CommonModule } from '@angular/common'
10
9
  import { SourceLabelComponent } from './source-label/source-label.component'
@@ -19,7 +19,7 @@
19
19
  [showContent]="!!organisation.name"
20
20
  >
21
21
  <gn-ui-organisation-preview
22
- [organisation]="organisation"
22
+ [organization]="organisation"
23
23
  [organisationUrl]="getOrganisationUrl(organisation)"
24
24
  (clickedOrganisation)="orgSelect.emit($event)"
25
25
  ></gn-ui-organisation-preview>
@@ -10,10 +10,10 @@ import {
10
10
  import { Organization } from '../../../../../../libs/common/domain/src/lib/model/record'
11
11
  import { BehaviorSubject, combineLatest, Observable } from 'rxjs'
12
12
  import { map, startWith, tap } from 'rxjs/operators'
13
- import { ORGANIZATION_URL_TOKEN } from '../feature-catalog.module'
14
13
  import { OrganizationsServiceInterface } from '../../../../../../libs/common/domain/src/lib/organizations.service.interface'
15
14
  import { SortByField } from '../../../../../../libs/common/domain/src/lib/model/search'
16
15
  import { createFuzzyFilter } from '../../../../../../libs/util/shared/src'
16
+ import { ORGANIZATION_PAGE_URL_TOKEN } from '../organization-url.token'
17
17
 
18
18
  @Component({
19
19
  selector: 'gn-ui-organisations',
@@ -28,7 +28,7 @@ export class OrganisationsComponent {
28
28
  constructor(
29
29
  private organisationsService: OrganizationsServiceInterface,
30
30
  @Optional()
31
- @Inject(ORGANIZATION_URL_TOKEN)
31
+ @Inject(ORGANIZATION_PAGE_URL_TOKEN)
32
32
  private urlTemplate: string
33
33
  ) {}
34
34
 
@@ -0,0 +1,6 @@
1
+ import { InjectionToken } from '@angular/core'
2
+
3
+ // expects the replacement key ${name}
4
+ export const ORGANIZATION_PAGE_URL_TOKEN = new InjectionToken<string>(
5
+ 'organization-page-url-token'
6
+ )
@@ -1,18 +1,16 @@
1
1
  import { Injectable } from '@angular/core'
2
- import { Observable, of } from 'rxjs'
3
- import { catchError, shareReplay } from 'rxjs/operators'
2
+ import { Observable, of, switchMap } from 'rxjs'
3
+ import { shareReplay } from 'rxjs/operators'
4
4
  import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
5
5
 
6
6
  @Injectable({
7
7
  providedIn: 'root',
8
8
  })
9
9
  export class RecordsService {
10
- recordsCount$: Observable<number> = this.recordsRepository
11
- .getMatchesCount({})
12
- .pipe(
13
- shareReplay(1),
14
- catchError(() => of(0))
15
- )
10
+ recordsCount$: Observable<number> = of(true).pipe(
11
+ switchMap(() => this.recordsRepository.getMatchesCount({})),
12
+ shareReplay(1)
13
+ )
16
14
 
17
15
  constructor(private recordsRepository: RecordsRepositoryInterface) {}
18
16
  }
@@ -35,13 +35,15 @@ export class FormFieldKeywordsComponent {
35
35
  }
36
36
 
37
37
  autoCompleteAction = (query: string) => {
38
- return this.platformService.searchKeywords(query).pipe(
39
- map((keywords) =>
40
- keywords.map((keyword) => {
41
- return { title: keyword.label, value: keyword }
42
- })
38
+ return this.platformService
39
+ .searchKeywords(query, ['temporal', 'theme', 'other'])
40
+ .pipe(
41
+ map((keywords) =>
42
+ keywords.map((keyword) => {
43
+ return { title: keyword.label, value: keyword }
44
+ })
45
+ )
43
46
  )
44
- )
45
47
  }
46
48
 
47
49
  constructor(private platformService: PlatformServiceInterface) {}
@@ -1,6 +1,14 @@
1
1
  import { Injectable } from '@angular/core'
2
2
  import { select, Store } from '@ngrx/store'
3
- import { defaultIfEmpty, filter, map, mergeMap, scan } from 'rxjs/operators'
3
+ import {
4
+ catchError,
5
+ defaultIfEmpty,
6
+ filter,
7
+ map,
8
+ mergeMap,
9
+ switchMap,
10
+ toArray,
11
+ } from 'rxjs/operators'
4
12
  import * as MdViewActions from './mdview.actions'
5
13
  import * as MdViewSelectors from './mdview.selectors'
6
14
  import { LinkClassifierService, LinkUsage } from '../../../../../../libs/util/shared/src'
@@ -95,36 +103,39 @@ export class MdViewFacade {
95
103
  )
96
104
 
97
105
  geoDataLinksWithGeometry$ = this.allLinks$.pipe(
98
- mergeMap((links) => {
99
- return from(links)
100
- }),
101
- mergeMap((link) => {
102
- if (this.linkClassifier.hasUsage(link, LinkUsage.GEODATA)) {
103
- if (
104
- link.type === 'service' &&
105
- link.accessServiceProtocol === 'ogcFeatures'
106
- ) {
107
- return from(this.dataService.getItemsFromOgcApi(link.url.href)).pipe(
108
- map((collectionRecords: OgcApiRecord) => {
109
- return collectionRecords && collectionRecords.geometry
110
- ? link
111
- : null
112
- }),
113
- defaultIfEmpty(null)
114
- )
115
- } else {
116
- return of(link)
117
- }
118
- } else {
119
- return of(null)
120
- }
121
- }),
122
- scan((acc, val) => {
123
- if (val !== null && !acc.includes(val)) {
124
- acc.push(val)
125
- }
126
- return acc
127
- }, [])
106
+ switchMap((links) =>
107
+ from(links).pipe(
108
+ mergeMap((link) => {
109
+ if (this.linkClassifier.hasUsage(link, LinkUsage.GEODATA)) {
110
+ if (
111
+ link.type === 'service' &&
112
+ link.accessServiceProtocol === 'ogcFeatures'
113
+ ) {
114
+ return from(
115
+ this.dataService.getItemsFromOgcApi(link.url.href)
116
+ ).pipe(
117
+ map((collectionRecords: OgcApiRecord) => {
118
+ return collectionRecords && collectionRecords.geometry
119
+ ? link
120
+ : null
121
+ }),
122
+ defaultIfEmpty(null),
123
+ catchError((e) => {
124
+ console.error(e)
125
+ return of(null)
126
+ })
127
+ )
128
+ } else {
129
+ return of(link)
130
+ }
131
+ } else {
132
+ return of(null)
133
+ }
134
+ }),
135
+ toArray(),
136
+ map((links) => links.filter((link) => link !== null))
137
+ )
138
+ )
128
139
  )
129
140
 
130
141
  landingPageLinks$ = this.metadata$.pipe(
@@ -2,6 +2,7 @@ export const ROUTER_STATE_KEY = 'router'
2
2
 
3
3
  export const ROUTER_ROUTE_SEARCH = 'search'
4
4
  export const ROUTER_ROUTE_DATASET = 'dataset'
5
+ export const ROUTER_ROUTE_ORGANIZATION = 'organization'
5
6
 
6
7
  export enum ROUTE_PARAMS {
7
8
  SORT = '_sort',
@@ -4,6 +4,7 @@ export interface RouterConfigModel {
4
4
  searchStateId: string
5
5
  searchRouteComponent: Type<any>
6
6
  recordRouteComponent: Type<any>
7
+ organizationRouteComponent: Type<any>
7
8
  }
8
9
 
9
10
  export const ROUTER_CONFIG = new InjectionToken<RouterConfigModel>(
@@ -1,5 +1,9 @@
1
1
  import { Inject, Injectable } from '@angular/core'
2
- import { ROUTER_ROUTE_DATASET, ROUTER_ROUTE_SEARCH } from '.'
2
+ import {
3
+ ROUTER_ROUTE_DATASET,
4
+ ROUTER_ROUTE_ORGANIZATION,
5
+ ROUTER_ROUTE_SEARCH,
6
+ } from '.'
3
7
  import { Router, Routes } from '@angular/router'
4
8
  import { ROUTER_CONFIG, RouterConfigModel } from './router.config'
5
9
 
@@ -30,10 +34,18 @@ export class RouterService {
30
34
  path: `${ROUTER_ROUTE_DATASET}/:metadataUuid`,
31
35
  component: this.routerConfig.recordRouteComponent,
32
36
  },
37
+ {
38
+ path: `${ROUTER_ROUTE_ORGANIZATION}/:name`,
39
+ component: this.routerConfig.organizationRouteComponent,
40
+ },
33
41
  ]
34
42
  }
35
43
 
36
44
  getSearchRoute(): string {
37
45
  return ROUTER_ROUTE_SEARCH
38
46
  }
47
+
48
+ getOrganizationPageRoute(): string {
49
+ return ROUTER_ROUTE_ORGANIZATION
50
+ }
39
51
  }
@@ -3,7 +3,7 @@ import { MdViewActions } from '../../../../../../../libs/feature/record/src'
3
3
  import { RouterService } from '../router.service'
4
4
  import { RouterReducerState } from '@ngrx/router-store'
5
5
  import { select, Store } from '@ngrx/store'
6
- import { distinctUntilChanged, filter, map, take } from 'rxjs/operators'
6
+ import { distinctUntilChanged, filter, map, take, tap } from 'rxjs/operators'
7
7
  import {
8
8
  ROUTER_ROUTE_DATASET,
9
9
  ROUTER_ROUTE_SEARCH,
@@ -51,6 +51,14 @@ export class RouterFacade {
51
51
  })
52
52
  }
53
53
 
54
+ goToOrganization(organizationName: string) {
55
+ const path = `${this.routerService.getOrganizationPageRoute()}/${organizationName}`
56
+ this.go({
57
+ path,
58
+ queryParamsHandling: '',
59
+ })
60
+ }
61
+
54
62
  updateSearch(query?: SearchRouteParams) {
55
63
  this.go({
56
64
  path: this.routerService.getSearchRoute(),