Page MenuHomePhabricator

Offer to automatically convert bare-formatted references if we spot something that looks a bit like a URL or a DOI in it
Closed, ResolvedPublic8 Estimated Story Points

Description

<ref>Bairamzadeh S., Pishvaee M.S.,  Saidi-Mehrabad M., (2016). Multi-objective Robust Possibilistic Programming Approach to Sustainable Bioethanol Supply Chain Design under Multiple Uncertainties, Industrial & Engineering Chemistry Research.  [http://pubs.acs.org/doi/abs/10.1021/acs.iecr.5b02875 DOI: 10.1021/acs.iecr.5b02875]</ref>

in to

<ref>{{Cite journal|title = Multiobjective Robust Possibilistic Programming Approach to Sustainable Bioethanol Supply Chain Design under Multiple Uncertainties|url = http://pubs.acs.org/doi/abs/10.1021/acs.iecr.5b02875|journal = Industrial & Engineering Chemistry Research|date = 2015-12-22|pages = 237–256|volume = 55|issue = 1|doi = 10.1021/acs.iecr.5b02875|language = EN|first = Samira|last = Bairamzadeh|first2 = Mir Saman|last2 = Pishvaee|first3 = Mohammad|last3 = Saidi-Mehrabad}}</ref>

Current process:

  1. Copy url
  2. Replace all content of reference with the copied url
  3. Press "Apply changes"
  4. Press Convert
  5. Press Insert

There must be a better way to do this.

Event Timeline

Josve05a raised the priority of this task from to Needs Triage.
Josve05a updated the task description. (Show Details)
Josve05a added projects: Citoid, VisualEditor.
Josve05a subscribed.
Jdforrester-WMF changed the task status from Open to Stalled.Feb 9 2016, 8:29 PM
Jdforrester-WMF subscribed.

For bare URL references we provide a tool to convert them (<ref>foo.com</ref> -> <ref>{{cite news…}}</ref>), but I can't see how hand-written prose could be automatically converted in a sane way?

For bare URL references we provide a tool to convert them (<ref>foo.com</ref> -> <ref>{{cite news…}}</ref>), but I can't see how hand-written prose could be automatically converted in a sane way?

URL-detection? If the reference mentions an url, offer to replace the reference with a pre-filled citation based on the url alone, and ignore the rest of the existing reference?

DOI detection? If the reference mentions a doi-number offer to replace the reference with a pre-filled citation based on the doi number alone, and ignore the rest of the existing reference?

Nemo_bis renamed this task from Automaticly convert bare-formated references to Automaticly convert bare-formatted references.Jul 17 2016, 12:37 PM
Josve05a changed the task status from Stalled to Open.Jul 17 2016, 12:40 PM

Removing the stalled status, since I answered how it could be done.

Jdforrester-WMF renamed this task from Automaticly convert bare-formatted references to Offer to automaticly convert bare-formatted references if we spot something that looks a bit like a URL or a DOI in it.Jul 19 2016, 7:05 PM
Jdforrester-WMF triaged this task as Low priority.
Jdforrester-WMF set the point value for this task to 8.
Jdforrester-WMF set Security to None.
Jdforrester-WMF moved this task from To Triage to Freezer on the VisualEditor board.
Deskana lowered the priority of this task from Low to Lowest.Aug 30 2018, 12:33 PM

Now that T198567 works, we could potentially offer the conversion for any text, not just bare urls at present. Citoid actually will look for urls anywhere in the text, and it'll also search worldcat and crossref.

Not guaranteed to work great though but if it's now very feasible, all you have to do is allow the "convert" option for any bare references.

Mvolz renamed this task from Offer to automaticly convert bare-formatted references if we spot something that looks a bit like a URL or a DOI in it to Offer to automaticlly convert bare-formatted references if we spot something that looks a bit like a URL or a DOI in it.Apr 1 2019, 8:55 AM

Similar, but that's one for doing it in a separate tool en masse, I think, rather than expanding the current option.

Change 802171 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/Citoid@master] Citoid context: Offer 'convert' button when there is other non-link content

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

Change 802171 merged by jenkins-bot:

[mediawiki/extensions/Citoid@master] Citoid context: Offer 'convert' button when there is other non-link content

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

This works as shown in https://photos.app.goo.gl/B7RJED2UVa9daj5p8.

@matmarex , kindly confirm that I am testing for the right thing sand it works as expected. Thanks!

ppelberg claimed this task.
matmarex renamed this task from Offer to automaticlly convert bare-formatted references if we spot something that looks a bit like a URL or a DOI in it to Offer to automatically convert bare-formatted references if we spot something that looks a bit like a URL or a DOI in it.Jul 22 2022, 10:58 AM