EarthSystemCoG / COG

COG source code
BSD 3-Clause "New" or "Revised" License
8 stars 16 forks source link

Enable display of Citation and PID information #1276

Closed LucaCinquini closed 7 years ago

LucaCinquini commented 8 years ago

Who: Katharina, Martina

For CMIP6 dataset, CoG will need to display links to the dataset citations on the DKRZ portal. Katharina to issue a pull request.

LucaCinquini commented 7 years ago

From Katharina:

A short summary of the modifications:

  1. For Citation

    In case a Citation link is available as xlink a "Show/Hide Citation" option is displayed in the dataset options. A click on "Show Citation" will access the xlink (a json document at DKRZ) to get and display some basic Citation information.

  2. For PIDs

    a) Dataset PID: If a dataset PID is available as a xlink a "PID" option will be displayed in the dataset options. This is a simple link to the PID landing page.

b) File PID: If a tracking_id is identified as a PID it will be displayed as link to the PID landing page in the file metadata.

c) Collection PIDs: This option is available for registered users in the Data Cart only. It will generate a collection PID for the selected datasets.

Please note that the "Collection PID" option is only visible if the esgfpid library is installed and the PID configs are set in the cog_setting.cfg as following:

[PID] PID_CREDENTIALS = rabbit_mq1 | user1 | password1 rabbit_mq2 | user2 | password2

Otherwise the option is hidden. I have not added esgfpid to the requirements.txt so currently this option is disabled by default. Probably we want to install it at some dedicated nodes only (e.g. tier1)

You can have a look at the modifications on my testnode: https://esgf-fedtest.dkrz.de/search/testproject/?project=CMIP6&model=ACCESS-1-0

I tested it as part of an ESGF Installation and it seems to work just fine. However, I'm not sure how to proceed - do you want to test it from my branch first or do you want me to just sent an pull request to devel? I am up to date with the devel branch so merging should be easy :)