CatalogueOfLife / checklistbank

UI for checklistbank.org
https://www.checklistbank.org/
6 stars 2 forks source link

Create publisher page #1355

Closed mdoering closed 5 months ago

mdoering commented 5 months ago

We need a publisher page to link to from sources and also to display content of a publisher. Suggest to include:

Publisher Infos

Project sectors: count (link to sector search) Datasets published: count (link to dataset search)

mdoering commented 5 months ago

count datasets: http://api.dev.checklistbank.org/dataset?limit=0&gbifPublisherKey=0674aea0-a7e1-11d8-9534-b8a03c50a862

count sectors: http://api.dev.checklistbank.org/dataset/{key}/sector?limit=0&gbifPublisherKey=0674aea0-a7e1-11d8-9534-b8a03c50a862

with {key} being a project or release dataset key

mdoering commented 5 months ago

how do I reach a publisher page?

thomasstjerne commented 5 months ago

So far only from the list of publishers: https://www.dev.checklistbank.org/catalogue/3/publishers

mdoering commented 5 months ago

maybe we should add the project title (or alias) to all project pages at the top next to the project tag? A publisher page now say for example Publisher: SNSB [Project]

mdoering commented 5 months ago

one thing - the API uses the publisherKey query param in all searches but the dataset one. The publisher page now uses gbifPublisherKey which is not understood so the counts are wrong.

https://api.dev.checklistbank.org/dataset/3/sector?limit=0&publisherKey=0674aea0-a7e1-11d8-9534-b8a03c50a862 https://api.dev.checklistbank.org/dataset/3/sector?limit=0&gbifPublisherKey=0674aea0-a7e1-11d8-9534-b8a03c50a862

How about I also change the dataset one to use publisherKey only? I dont think it needs the gbif prefix really, or does it?

thomasstjerne commented 5 months ago

It only uses gbifPublisherKey for the facet and link to the dataset search: https://www.dev.checklistbank.org/dataset?gbifPublisherKey=943a5811-d56e-4c37-853d-bd64957d3833 - it uses publisherKey for sector count and link.

mdoering commented 5 months ago

hm, the page shows a lot of sectors though when there should only be 33 https://www.dev.checklistbank.org/catalogue/3/publisher/0674aea0-a7e1-11d8-9534-b8a03c50a862

thomasstjerne commented 5 months ago

You are right - fixed now