-
Notifications
You must be signed in to change notification settings - Fork 4
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
Importing OSF DOIs via the Publications edit tab #2429
Comments
Is this actually an article? https://osf.io/9r62x/ What happens is that dx.doi.org doesn't get any hits, so data.crosscite.org is called next and does two things:
I think that the proper solution here would be to attempt to catch the error at (2) and return gracefully from that; the results at (1) aren't correct and I can't deal with the redirection to a web page. EDIT: osf.io has an API: https://developer.osf.io/ The only way to get this to work (assuming publications are being sought) is to write a new query to look for publications in osf.io directly, once the previous two have failed. |
ah, i see, so dx.doi.org doesn't return anything because it's not of the correct type? Yes, it is essentially an OSF directory containing a variety of things including documents but also including all past versions of the database. Would other osf dois that point to publications/documents/manuscripts work? |
I believe so.
I don't know. Do you happen to have any to try? |
Try https://doi.org/10.17605/OSF.IO/3WQPR It's a pdf but should work as adocument. however it is of resource type "other". You may need to just search osf for an appropriate resource type and take its doi. |
Searching OSF will require writing new API queries; data.crosscite.org doesn't redirect correctly and so can't be used. Example: https://osf.io/zn79k/, 10.17605/OSF.IO/ZN79K |
I cannot retrieve 10.17605/OSF.IO/9r62x from the Publications page. It's an OSF DOI. When I press Import DOI it just spins and hangs.
@knirirr asked me to make a ticket, and says: Behind the scenes a CORS problem prevents crosscite.org from redirecting to osf.io. So, not strictly a hang, but the Javascript doesn't exit cleanly and reload the buttons.
The text was updated successfully, but these errors were encountered: