Closed carlinmack closed 5 months ago
If you think the code could be better written, can you please save rewriting until we merge the three following PRs! it makes rebasing so much more complicated
I get a "NameError: name 'string_to_arxivs' is not defined" with copy and paste of "https://arxiv.org/abs/2403.19856" into the main search interface http://127.0.0.1:8100/search?q=https://arxiv.org/abs/2403.19856
I often just copy-and-paste, e.g., "https://arxiv.org/abs/2403.19856" or part of a DOI, e.g., "org/10.1038/d41586-024-00901-3". As far as I can tell that functionality is lost.
There is lost of flake8 errors with flake8 scholia
This PR doesn't do anything to the main search interface: I am simply modifying the arxiv to quickstatements tool to be [doi, arxiv] to quickstatements. Therefore I don't really have an answer to your issues you raise
Besides from the regex issue this is now ready for review again, the identifier to quickstatement tool handles all the query strings you have mentioned
I have merge this PR, and then but in this bug: #2459
One more error: https://github.com/WDscholia/scholia/issues/2460
One of the errors are not closed by https://github.com/WDscholia/scholia/pull/2461
Third error with this PR: https://github.com/WDscholia/scholia/issues/2462
Fourth problem: https://github.com/WDscholia/scholia/issues/2463
Fifth problem: https://github.com/WDscholia/scholia/issues/2464
Rebased version of #2340
If/when this is merged I will rebase the others :)
Description
Introduces DOI to QuickStatements (using the Crossref API) resulting in renaming the tool to Identifier to QuickStatements.
Note that this does not affect the current
/doi/[doi]
tool which creates QuickStatements using Citations.js and has different behaviour.Caveats
If you make changes to the Python code
Testing
Please describe the tests that you ran to verify your changes. Provide instructions, so we can reproduce. Please also list any relevant details for your test configuration.
string_to_type
Checklist