geonetwork-ui icon indicating copy to clipboard operation
geonetwork-ui copied to clipboard

[Datahub] Adding the "Associated resources"

Open julienperret opened this issue 1 year ago • 3 comments

When accessing a dataset page (for instance https://catalog.geohistoricaldata.org/datahub/dataset/365aa287-517b-4269-80fc-de8e336a52ec), the "Associated resources" (as displayed in GeoNetwork for instance https://catalog.geohistoricaldata.org/geonetwork/srv/eng/catalog.search#/metadata/365aa287-517b-4269-80fc-de8e336a52ec) are not visible.

Furthermore, there seems to be a confusion (in my mind at least) between "similar records" and "related records". For instance, in "libs/feature/record/src/lib/state/mdview.effects.ts", loadRelatedRecords ends up calling "this.recordsRepository.getSimilarRecords".

Is there a plan to add the "Associated resources", "Siblings", etc. views to the datahub? Is there anything we can do to help? I honestly would not know where to start.

Thanks Julien

julienperret avatar Oct 25 '23 12:10 julienperret

Hello @julienperret,

Nice to meet you and happy that you use the Datahub ! For your concerns, it is correct: there is nothing about related records in the Datahub yet. Seems that it has not been identified as a priority during the first UX phase of the project. However, as the audience grows, it's logical that the record view could be customized in a way, and that some catalogs would like to see other informations. It's the case for instance for the National Swiss catalog. So we are actually thinking about a way to do that properly.

Furthermore, there seems to be a confusion (in my mind at least) between "similar records" and "related records". For instance, in "libs/feature/record/src/lib/state/mdview.effects.ts", loadRelatedRecords ends up calling "this.recordsRepository.getSimilarRecords".

Ok thanks for the report, the code vocabulary has to be accurate and clear. The Datahub only handles similar records.

That said, if you want to add a new section in the record view, you need to start from the features/metadata-records component. You need to introduce a new smart component about the related records in a feature library (the actual RelatedRecords component should be renamed to SimilarRecords). This smart component will be able to fetch the related components with the GN4 related API. Then, you process the response and send dumb object to a ui component which is responsible to display the records (you can get inspiration from the download links, or api cards for instance).

Let us know if you have plan about implementing that.

fgravin avatar Oct 25 '23 23:10 fgravin

Hello @julienperret

Just out of curiosity, did you work on this issue on your side ? I think that Swisstopo will ask to have the associated records on the metadata page, which will be an opportunity to clarify the vocabulary as well.

Thanks for your inputs.

fgravin avatar Dec 12 '23 12:12 fgravin

This will be part of an ongoing redesign of the Dataset page of the Datahub, see https://github.com/geonetwork/geonetwork-ui/issues/722

jahow avatar Jan 18 '24 13:01 jahow