Page MenuHomePhabricator

Insert citations automatically after generating and show citation to edit it afterwards
Open, LowPublic

Description

Current process:

  1. Click the 'Cite' button.
  2. Paste in a URL.
  3. Click 'Generate'.
  4. See the citation result.
  5. Click 'Insert'.
  6. Click 'Edit'.
  7. Fix the citation.

Or:

  1. Click the 'Cite' button.
  2. Paste in a URL.
  3. Click 'Generate'.
  4. See the citation result.
  5. Looks good, so move on to the next editing task.
  6. Oops, I forgot to click the 'Insert' button. Start over at Step #1.

Desired process:

  1. Click the 'Cite' button.
  2. Paste in a URL.
  3. Click 'Generate'.
  4. See the citation result, already inserted, with the 'Edit' button showing.
  5. If I don't like it, then backspace to delete it. If I do like it, move on. If I need to change it, click 'Edit'.

From User:Jimsmith1978 at enwiki's VEF.

Event Timeline

Restricted Application added a project: VisualEditor. · View Herald TranscriptAug 16 2017, 5:48 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

This seems reasonable, although in the code it looks like there's a loop that generates result widgets, although I'm not sure in which situations (if any) we actually generate multiple suggestions. Also, we'd have to pass through a flag to the context so we can show the "Powered by Zotero" credit on first insertion.

Based on my own editing experiences, this would be useful. I find I rarely have to alter Citoid's descriptions, so just inserting it would be better. I wonder if others have similar experiences, or if they have to edit things more often?

Deskana triaged this task as Low priority.Aug 22 2017, 7:22 PM
Deskana moved this task from To Triage to Freezer on the VisualEditor board.Aug 22 2017, 7:33 PM
Mvolz added a subscriber: Mvolz.Aug 24 2017, 10:48 AM

This is actually the original behaviour of the tool. But I believe it was changed in order to show the rendered citation. However, when the little citation pop-up that displays the rendered citation was added written, it became redundant.

We do have some cases with multiple results, but in this case we can simply show the current dialog, and only auto-insert if there is a single result.

Mvolz moved this task from Backlog to Extension on the Citoid board.Sep 5 2017, 9:30 AM
Ellywa added a subscriber: Ellywa.Oct 25 2017, 5:17 PM

As requested above, yes I have exactly the same experience and would endorse the change requested.

Elitre added a subscriber: Elitre.Oct 25 2017, 5:35 PM

(Ellywa brought this up at mw.org.)

SoWhy renamed this task from Consider auto-inserting citations to Insert citations automatically after generating and show citation to edit it afterwards.Nov 13 2017, 4:43 PM
SoWhy added a subscriber: SoWhy.
ppelberg moved this task from To Triage to Current work on the VisualEditor board.Mar 26 2019, 3:33 PM
ppelberg edited projects, added VisualEditor (Current work); removed VisualEditor.

An alternative would be to change the rendering of the temporary citation, so that it is more clear that is hasn't been finalised yet, e.g.

SoWhy added a comment.Mar 26 2019, 7:48 PM

An alternative would be to change the rendering of the temporary citation, so that it is more clear that is hasn't been finalised yet, e.g.
[...]

That would be a kind of fix but I doubt that people will really notice such changes. Also, references are added to be edited in wikitext mode as well, so why should it perform differently in VE?

Change 499471 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/Cite@master] Render placeholder citation as […] to show it isn't finished

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

Esanders added a comment.EditedMar 27 2019, 12:56 PM

Regardless of potential future workflow changes I think this ^^ is a worthwhile thing to do.

Esanders moved this task from To Triage to Freezer on the VisualEditor board.Apr 9 2019, 12:50 PM