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

Minor changes in datacite handling #29

Merged
merged 9 commits into from Mar 22, 2021
Merged

Conversation

mpsonntag
Copy link
Contributor

@mpsonntag mpsonntag commented Mar 18, 2021

This PR introduces minor changes to handling of Datacite.AuthorID and Datacite.Reference:

  • when encountering an AuthorID that is clearly missing its value e.g. 'orcid:' or 'researcherid:', the parseAuthorID function now returns nil instead of an AuthorID with URI and scheme but no value. Required for gin-doi issue #77.
  • References are no longer added to Datacite via the AddReference function if either the reference ID or type cannot be identified or are not provided. Required for gin-doi issue #76.
  • the PR further adds a change in RenderAuthor handling; separators (, and ;) are now succeeded by a string. Closes Introduce spaces to RenderAuthor() #30.
  • tests for all functions in util.go are added.
  • test for all used functions and methods in doi.go are added.
  • docstrings and usage references in dependent libraries are added to all functions, methods and structs in doi.go.

When encountering an authorID that is clearly missing
its value e.g. 'orcid:' or 'researcherid:', parseAuthorID
now returns nil instead of an authorID with URI and scheme
but no value.
References are no longer added to Datacite via the AddReference func
if either the reference ID or type cannot be identified or are not
provided.
@coveralls
Copy link

coveralls commented Mar 18, 2021

Pull Request Test Coverage Report for Build 667825932

  • 13 of 14 (92.86%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.8%) to 56.855%

Changes Missing Coverage Covered Lines Changed/Added Lines %
libgin/util.go 2 3 66.67%
Totals Coverage Status
Change from base Build 611658884: 1.8%
Covered Lines: 1269
Relevant Lines: 2232

💛 - Coveralls

Closes G-Node#30

Separators are now succeeded by spaces.
Adds docstrings to all functions, methods and structs.
Adds projects references of used and deprecation notices of
unused functions, methods and structs.
@achilleas-k achilleas-k merged commit f776c7c into G-Node:master Mar 22, 2021
@mpsonntag mpsonntag deleted the orcid branch March 23, 2021 10:56
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.

Introduce spaces to RenderAuthor()
3 participants