Page MenuHomePhabricator

Allow arbitrary search strings in citoid
Closed, ResolvedPublic

Description

Notify users draft:

You can now enter a plain text citation or the title of a journal article or book into the "Automatic" citation tab in Visual Editor. This will search both the Crossref and Worldcat repositories for the top result from each. As an example, try: E. Schrodinger, Proc. Cam. Phil. Soc. 31, 555 (1935). You can also use QIDs (from Wikidata). As an example, try Q40674886.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Mvolz moved this task from Waiting on Deploy to Service on the Citoid board.
Mvolz changed the task status from Open to Stalled.Sep 27 2018, 8:51 AM
Mvolz updated the task description. (Show Details)
Mvolz added a project: VisualEditor.
Mvolz changed the task status from Stalled to Open.Sep 27 2018, 8:54 AM

Change 466192 had a related patch set uploaded (by Mvolz; owner: Mvolz):
[mediawiki/extensions/Citoid@master] Let users know they can search by title or citation

https://gerrit.wikimedia.org/r/466192

Change 466192 merged by jenkins-bot:
[mediawiki/extensions/Citoid@master] Let users know they can search by title or citation

https://gerrit.wikimedia.org/r/466192

For user notice, something like:

You can now enter a plain text citation or the title of a journal article or book into the "Automatic" citation tab in Visual Editor. This will search both the Crossref and Worldcat databases for the top result. As an example, try: E. Schrodinger, Proc. Cam. Phil. Soc. 31, 555 (1935)

? @Whatamidoing-WMF seem okay? Also maybe it should go in the editing newsletter?

Mvolz updated the task description. (Show Details)
Mvolz updated the task description. (Show Details)

This all looks good to me.

Is it meant to return only two results, if many are possible?

Mvolz updated the task description. (Show Details)

This all looks good to me.

Is it meant to return only two results, if many are possible?

Yes... we unfortunately don't have a great way to order these, because worldcat will give a nonsensical result if it's a journal article, and crossref will give a nonsensical result if it's a book. So I return two in a random order based on speed. I'm hesitant to return a longer list without a better way to order these, so that the most relevant results are at the top.