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

hyperlink in word document #18

Open
lkuiucsb opened this issue Jun 25, 2019 · 3 comments
Open

hyperlink in word document #18

lkuiucsb opened this issue Jun 25, 2019 · 3 comments
Labels
question Further information is requested

Comments

@lkuiucsb
Copy link
Collaborator

If the word document (e.g. abstract or method) has a hyperlink, the EML will be invalid. The code could either remove the hyperlink from the word document or change into other format that EML accepts.

@atn38
Copy link
Contributor

atn38 commented Jun 26, 2019

I knew about this bug, and thought it has something to do with the EML::set_TextType function that we use under the hood. But that's not true according to this MRE:

library(EML)

person <- list(individualName = list(givenName = "Blizzard", surName = "Frosty"))


my_eml <- list(packageId = "id", system = "system",
               dataset = list(
                 title = "A Mimimal Valid EML Dataset",
                 creator = person,
                 contact = person,
                 abstract = set_TextType("hyperlink_bug.docx")
               ))

eml_validate(my_eml)

using this minimal word file hyperlink_bug.docx

@atn38
Copy link
Contributor

atn38 commented Jul 2, 2019

Just tried again, I can't reproduce this.

@atn38 atn38 added the question Further information is requested label Jul 2, 2019
@atn38
Copy link
Contributor

atn38 commented Jul 2, 2019

The problem seems not about invalid XML but that the hyperlinked content gets put into its own paragraph tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants