-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Special case 10.5555
DOIs (and fix ambiguous DOI checker results)
#106
Special case 10.5555
DOIs (and fix ambiguous DOI checker results)
#106
Conversation
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 reasonable to me. @xuanxu – I think you usually take Buffy deploys out for a spin on Heroku – would you recommend we do a branch deploy here or are you happy to merge?
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.
👍 Let's merge it
In action (I've changed the "skip" symbol to a more visible one): |
yeah that looks better, i was looking for a yellow indicator with a question mark that wasn't the looking at that review^ it seems like maybe there could be more info for "no doi given and none found" kind of citations? i don't mean to overcomplicate this one very small part of the review system, it just seems to come up semi-frequently - i had meant to add a similar directive like "editor check if this resolves" for "editor manually check this reference" but if it works fine as-is then great we can call it shipped and move on <3. |
I do think this language is a little confusing to people sometimes. @danielskatz had flagged this a while back too. So yes, 👍 to making this more directive to editors/authors. |
I suggested in Slack, and repeat here for tracking: I wonder if we can change some DOI checker language? When I see this Could we instead say And also maybe change the category for this, as Skip DOI doesn't make sense, since these aren't actually DOIs... |
There's a recurring issue where the DOI checker flags "10.5555" prefixed DOIs as missing with the ambiguous message I left in #101 (my bad). Those DOIs are known to not resolve.
This PR special-cases
10.5555
prefixed DOIs such that{doi}
field they are marked as invalid with a prompt to include it in the{url}
field instead{url}
field they are marked as:skip
with a note for the editor to confirm they resolve - I tried testing the resolution, but unhelpfully the website seems to respond with a200
code and display a404
page......To do that, I
handle_missing_doi
methodhandle_special_case
method to allow for future special cases, if anyI also fixed the ambiguous message by adding a
skip
type that is "maybe ok, editor take a look" field and made the template render categories with emoji that indicate the status of each DOI, it looks like...My ruby is bad, so someone else please check my work here!