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

"Look up doi" button weirdness #1321

Open
snacktavish opened this issue Jul 7, 2023 · 6 comments
Open

"Look up doi" button weirdness #1321

snacktavish opened this issue Jul 7, 2023 · 6 comments

Comments

@snacktavish
Copy link
Member

"Look up doi" button works fine on dev, but just links out to crossref on production. Maybe related to phylesystemapi update somehow?

@snacktavish
Copy link
Member Author

Nevermind! I tried again and it worked fine.... ? I will leave open for a bit to see if I can make it happen again and track

@jimallman
Copy link
Member

Copying this from Gitter chat:

Clicking the 'Look Up DOI...' button will fall back to CrossRef if the 'Publication reference' field is empty. Any visible text in this field should do the normal popup dance with matching DOIs.

In other words, this is expected (by me 😸) behavior unless there's text in the 'Publication reference' field. Would you liek to see a different response with there's no ref text, maybe a prompt in the site footer?

@snacktavish
Copy link
Member Author

Ahhh! I wanted it to look up the reference text form the doi, and I thought it would do it. I know if there is text in the reference field you can correct it from the doi, but maybe you need to paste the DOI into reference field not the doi field first?

@snacktavish
Copy link
Member Author

To further clarify - I had pasted in the DOI when I created the study, but for some reason it didn't autofill any text into the ref. I wanted it to try again on the auto fill - and if I pasted the DOI into the reference text field, it did fill in the whole reference. Can it do that if the DOI is just in the DOI field as well?

@jimallman
Copy link
Member

I get what you're saying. It's a reasonable use case, if all I have is the DOI or I want to make sure the reference text is correct. And yes, I can certainly add the contents of the DOI field to the search-bait. The tricky scenario is if the starting ref-text and DOI somehow disagree... Should we always choose one field over the other? Or rely on the list of possible matches to settle things, since the results offered would hopefully reflect the contents of both fields... Yeah, that seems likely.

jimallman added a commit that referenced this issue Aug 8, 2023
@jimallman
Copy link
Member

@snacktavish The new behavior (submitting DOI field to CrossRef, along with the current reference text) is live now on devtree. Please give it a try and, if you like the change, maybe close this and merge the related PR.

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

No branches or pull requests

2 participants