ioos / ckanext-ioos-theme

IOOS Catalog as a CKAN extension
GNU Affero General Public License v3.0
7 stars 14 forks source link

Enhance Attribution in MD_DataIdentification #145

Closed mwengren closed 7 years ago

mwengren commented 7 years ago

We've had requests from RAs that the NDBC SOS records in the Catalog reflect attribution of the RA as the data 'originator' or original publisher, or whatever the appropriate term should be.

The sensorml2sio module has been updated to include that info at the following xpath:

//gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:citedResponsibleParty/gmd:CI_ResponsibleParty/gmd:role/gmd:CI_RoleCode(@codeListValue="originator")

Can we look into what it would take to parse this from the XML (as well as any other gmd:citedResponsibleParty elements with similar xpath under MD_DataIdentification with other codeListValues - 'publisher' in this case would be NDBC) and display somewhere in the UI? Probably under the 'Access' tab, which currently includes a 'Distributor' credit.

Here's an example record:

https://data.ioos.us/dataset/waimea-bay-hi-106

Registry XML: https://registry.ioos.us/waf/NOAA%20NDBC/sdf.ndbc.noaa.gov-urn_ioos_station_wmo_51201.xml

lukecampbell commented 7 years ago

I think it's certainly doable. @benjwadams could take a look.

It's all defined in ckanext-spatial's model and the harvester to pass that information to the UI.

From there the jinja templates pull it out and make use of it like this one for the access tab.

lukecampbell commented 7 years ago

Just a heads up this is ready to go, I can deploy tonight if everyone's ok with that?

@mwengren @rsignell-usgs @benjwadams

mwengren commented 7 years ago

Resolved by ioos/catalog-ckan#149.