Page MenuHomePhabricator

Use open access URL via oaDOI in citoid response
Open, NormalPublic

Description

Per the English Wikipedia guideline,

Links inserted with |url= are expected to be free to read by default

(Other wikis generally have similar policies on the external links targets.)

Yet, when I enter a DOI, Citoid produces citations which invariably contain the DOI.org/<DOI> resolved target URL in the url parameter.

For instance, the answer of https://en.wikipedia.org/api/rest_v1/data/citation/zotero/10.1109%2fICSE.2012.6227139 points to a paywall:

{
  "url":"https://ieeexplore.ieee.org/document/6227139/"
  ...
}

To avoid having a complex logic on whether to have an url parameter or not, it would be enough to instead use the oadoi.org/<DOI> target URL, which will be the same as DOI.org's if no open access version is known.

Then, the answer of Citoid would point to the open-access version

{
  "url":"http://arxiv.org/pdf/1203.5188"
  ...
}

Event Timeline

Restricted Application added a project: VisualEditor. · View Herald TranscriptAug 30 2017, 10:48 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Nemo_bis updated the task description. (Show Details)Aug 30 2017, 10:48 AM
Mvolz moved this task from Backlog to Service on the Citoid board.Sep 5 2017, 9:30 AM
Mvolz claimed this task.Jan 15 2018, 11:21 AM
Mvolz triaged this task as Normal priority.

Thanks - it doesn't look like it has overwhelming support there?

From my perspective, I'd like to do it but it seems a little risky if the resolver falls over at some point. Using doi.org seems like it might be the better, longer term option.

But on on the other hand if we're talking the url field, we insert the doi anyway - and if the citation template points to the doi.org resolver, that way there's two different pathways to resolve it. Although if it does fall over at some point there might be a performance hit to each individual request as we wait for it to time out.

Cirdan added a subscriber: Cirdan.May 17 2018, 2:02 PM

It would be great to link to oadoi.org when a doi is present.

A tentative fix to link to oadoi.org on wikipedia: https://github.com/wikimedia/mediawiki/pull/88

WDYT?

Mvolz added a comment.Sep 8 2018, 5:55 PM

A tentative fix to link to oadoi.org on wikipedia: https://github.com/wikimedia/mediawiki/pull/88
WDYT?

This patch is unrelated to this task (which is about citations, not interwiki links.) I'm not sure if it would be merged even if it were submitted correctly (we don't accept prs through GitHub) but if you'd like to try anyway there are directions here: https://m.mediawiki.org/wiki/Special:MyLanguage/Gerrit/Tutorial

Thanks for your feedback.

Then, where is the code that transforms a <ref doi=XXXX> into an actual <a href> link?

Hi Mvolz,

Thanks to your pointer, just created a change on gerrit: https://gerrit.wikimedia.org/r/#/c/mediawiki/services/citoid/+/459591

It is inspired from your past commit https://gerrit.wikimedia.org/r/#/c/mediawiki/services/citoid/+/346744/

WDYT?

@martin.monperrus Let me emphasize that this is a significant change that should get community approval first. There has already been a lot of discussion about similar changes to the DOI template on the English Wikipedia and there is clearly a consensus against this IMHO.

@Pintoch

Thanks a lot for the insider insight.

There has already been a lot of discussion about similar changes to the DOI template on the
English Wikipedia and there is clearly a consensus against this IMHO.

Would you have a pointer to the discussion?

Thanks,

--Martin

To clarify: that discussion was about changing the "canonical" URL for all DOIs.

Using OA URLs in the url= parameter has wide consensus and is recommended by the guidelines on the English Wikipedia; and the user can always manually change to something else if needed, so it doesn't directly impact any consensus or guidelines on other wikis either.

@martin.monperrus see my first comment in this thread.

@Nemo_bis intuitively, as long as the address is dereferenced (such as url=https://hal.archives-ouvertes.fr/… instead of url=https://oadoi.org/...), it should not attract too many flamewars, but still, it's hard to be sure. Editors might not be aware / understand why suddenly Citoid inserted that link.

martin.monperrus renamed this task from Link open access URL via oaDOI in cite journal to Use open access URL via oaDOI in citoid response.Sep 16 2018, 2:25 PM
martin.monperrus updated the task description. (Show Details)
Mvolz added a comment.Oct 25 2018, 5:15 PM

New changes to citoid are frozen until we complete T197242 - sorry about that!