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

Wrong =HYPERLINK() syntax #36

Open
sneumann opened this issue Mar 2, 2022 · 1 comment · May be fixed by #37
Open

Wrong =HYPERLINK() syntax #36

sneumann opened this issue Mar 2, 2022 · 1 comment · May be fixed by #37

Comments

@sneumann
Copy link

sneumann commented Mar 2, 2022

Hi,
when adding a term, Ontomaton will insert
=HYPERLINK("http://purl.obolibrary.org/obo/MS_1000702","micrOTOF")
which results in a parsing #ERROR complaint by google.
The correct content will be using a semicolon instead:
=HYPERLINK("http://purl.obolibrary.org/obo/MS_1000702";"micrOTOF")

Fixing will need changes in

sheet.getRange(row, selectedColumn).setFormula('=HYPERLINK("'+ ontologyObject.accession +'","' + ontologyObject.term + '")')

and
sheet.getRange(row, selectedColumn).setFormula('=HYPERLINK("' + ontologyObject.url + '","' + ontologyObject.term + '")')

Yours,
Steffen

@sneumann
Copy link
Author

sneumann commented Mar 2, 2022

Hm, when trying to find a reference for that issue and perceived change of behavior, I found
https://stackoverflow.com/questions/64773174/sharing-a-sheet-with-formulas-separated-by-commas-to-someone-in-a-region-that-us. Indeed, when switching the Locale to "Vereinigtes Königreich" :-) Ontomaton works as advertised.
From reading I am unsure if my PR #37 is the generic solution (yet), but https://stackoverflow.com/a/61283851 suggests it is.

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 a pull request may close this issue.

1 participant