scholia icon indicating copy to clipboard operation
scholia copied to clipboard

DOIs truncated at first '<' when entered into the searchbox

Open stuartyeates opened this issue 8 months ago • 2 comments

Describe the bug The main search box truncates DOIs at first '<'

To Reproduce Steps to reproduce the behavior:

  1. Go to https://pubmed.ncbi.nlm.nih.gov/9336221/ and confirm that the DOI there is in fact a valid, working DOI
  2. Cut and paste the DOI into the scholia front page
  3. See that everything after the '<' has been truncated
  4. Observe that the document the DOI points to is actually already in wikidata: https://scholia.toolforge.org/work/Q29616105

Expected behavior The full DOI "10.1002/(sici)1096-9861(19971020)387:2<167::aid-cne1>3.0.co;2-z." appears

stuartyeates avatar Apr 27 '25 21:04 stuartyeates

https://academic.oup.com/jmammal/article/83/3/674/2373162 is another example, from a different publisher.

stuartyeates avatar Apr 27 '25 21:04 stuartyeates

These DOIs are derived from the SICI standard (now retired), see https://en.wikipedia.org/wiki/Serial_Item_and_Contribution_Identifier

It appears that all of these contain a '<' and will fail.

stuartyeates avatar Apr 28 '25 20:04 stuartyeates

Is the issue still present for you? I'm not seeing what you describe as the full DOI in the search box as of today, see screenshot from Firefox. As the search box now shows the full DOI, but the suggestions preview is not returning a suggestion.

What I do notice is the search preview suggestions list states "no results" yet hitting enter to do the search returns the correct Q because it exists in Wikidata. So this issue may have been resolved as reported, but an issue still exists in terms of the search suggestion lookup.

Initial Image

Second example Image

brierjonOU avatar Jul 31 '25 15:07 brierjonOU

This must be solved with https://github.com/WDscholia/scholia/pull/2695

There are several searches: The Wikidata API search and the search in Scholia where we identify the query (or some part of it) as a DOI and search on that extracted DOI. I suppose this might not be entirely obvious for a user. hmm... I am taking the liberty to close the issue as the main problem has been solved.

fnielsen avatar Aug 15 '25 15:08 fnielsen