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
Remove erroneous bit from codebook2-0.xsl (HTML Codebook stylesheet) #6963
Conversation
Replacing a hardcoded value with an XPath acquired value. I have made a presumption that the distributor name is the appropriate element to present here, since it is paired with the DOI value. This is my first Dataverse pull request, so let me know if I am missing a step or whatever.
Removing the XSLT that inserted the Distributor name at line 180.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't test this but the code change looks fine.
@pdurbin @johnhuck Seeing automated test failure on this branch, works in develop branch. It looks like the test is still looking for ICPSR in the comparison string. This is preventing me from building/deploying/testing: [ERROR] Failures: dct html ([ICPSR ]doi:10.5072/FK2/SOLY...> but was:<...dct html ([]doi:10.5072/FK2/SOLY...> |
@johnhuck that's exactly right. Based on the error above (line 91)... It looks like you should remove "ICPSR " from src/test/resources/html/dct_codebook.html I can see it's in there with "grep":
|
@pdurbin OK. And this is something you want me to do as well and submit another PR? I can figure out how to do that. Just want to confirm that that's what you want me to do. |
@johnhuck sure, please give it a shot. If you have any trouble, please make sure we can push to your branch so we can do it. |
Removing "ICPSR" string so that the stylesheet change I made in IQSS#6963 will pass the automation test.
I'm seeing https://travis-ci.org/github/IQSS/dataverse/builds/696173775 as of ff025fd so I'm moving this to QA. Thanks, @johnhuck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
@johnhuck This works great, thanks. Do you mind adding a release notes file that indicates that in order for previously published and exported datasets to reflect this correction, they need to be reexported, curl http://localhost:8080/api/admin/metadata/reExportAll |
@johnhuck if you're not familiar with our release notes process, I would suggest creating a file at the following location: doc/release-notes/6959-html-codebook.md You can read more about the process at http://guides.dataverse.org/en/4.20/developers/making-releases.html#write-release-notes |
@kcondon OK, I will do my best. This is good experience for me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
What this PR does / why we need it:
Removes an irrelevant hardcoded value ("ICPSR") in the HTML Codebook stylesheet.
Which issue(s) this PR closes:
Closes #6959
Special notes for your reviewer:
This updates my earlier pull request, based on discussion on the issue. Hope I did this right!
Suggestions on how to test this:
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
No
Is there a release notes update needed for this change?:
No
Additional documentation: