Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ISO view for generic ISO, NCEI, and Pangaea content #1240

Merged
merged 12 commits into from May 7, 2018

Conversation

amoeba
Copy link
Contributor

@amoeba amoeba commented May 1, 2018

This PR contains various bug fixes some major improvements to the ISO View Service XLTs. These changes will impact any ISO19139 content and how it renders out of the View Service.

Summary:

  • Moved the Alternate Data Access Table from MetacatUI to the View Service Remove Alternate Data Access table from MetadataView metacatui#583
  • Added support for how PANGAEA does Parameters (attributes) by inserting a simple table of the parameters when the metadata has contentInfo elements in it
  • Added support for how PANGAEA does links to their data downloads (distributionInfo) by putting a table of links at the top of the view
  • Fixed various minor issues in the XSLTs which caused headers to get shown when there was no content in the metadata for that section

@taojing2002 would you mind taking a look-through? I've hot-patched cn-stage-ucsb-1 with these changes and done some moderate testing but always appreciate feedbacl. See https://search-stage.test.dataone.org/#view/doi:10.1594/PANGAEA.832895_20170724_1121 for an example.

amoeba added 11 commits April 4, 2018 18:11
While fixing #1232 I couldn't help but notice some issues with this XSL.

- XPaths were hardcoded for things like /gmd:identificationInfo/gmd:MD_DataIdentification but MD_DataIdentification is also largely swappable for SV_ServiceIdentification too so I've relaxed the XPath to catch both
- I was using both // and .// so I switched everything to .// to be consistent. Not sure what's best practice
- Found a bug in the Metadata Contacts and cited responsible parties sections which were assuming that section was always present in the metadata even though it's optional
-I simplified the XPath for dataset contact
- I added some comments to annotate the code a bit more for consistency
It turns out dataset contact, as defined by gmd:pointOfContact is optional and the xslt wasn't accounting for this
I failed to merge these changes I'm collpasing the two branches
@amoeba amoeba requested a review from taojing2002 May 1, 2018 01:15
@amoeba amoeba added the review label May 1, 2018
@amoeba
Copy link
Contributor Author

amoeba commented May 2, 2018

Hey @taojing2002 this is code we would like in the next release but we'd also like this to get released with @laurenwalker 's MetacatUI 1.14.15 patch release. We moved the Alternate Data Access Table from MetacatUI and put it in Metacat's View Service so if these two products aren't released/patched at the same time the user will see two tables.

@amoeba amoeba merged commit 6d40bdb into dev-2.9 May 7, 2018
@amoeba amoeba removed the review label May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant