Page MenuHomePhabricator

Lots of web pages are misunderstood by Citoid on Czech Wikipedia
Open, Needs TriagePublic

Description

Steps to reproduce (everything on cswiki)

  1. Insert an url to some online magazine (periodical) to VE's Citoid interface
  2. Get Cite monography (book) template
  1. Insert an url to some online monography (book) to VE's Citoid interface
  2. Get Cite periodical (magazine) template

Current behavior
Citoid should be able to determine, if the url contains a periodical magazine or a monography, but it fails in most cases. Therefore always Citoid generates completely wrong template (Cite book instead of Cite magazine and vice versa)

Expected behavior
Citoid should somehow be capable to determine periodical/magazine/news web server. This seems hard, but I think there could be some database, or maybe some characteristic feature, which could help to determine

Motivation
We on the Czech Wikipedia are sick of constantly fixing the misunderstood template inserted by Citoid. Is it really hard to distinguish between Cite monography, Cite online monography, Cite periodical and Cite online periodical?

Event Timeline

Dvorapa created this task.Nov 7 2018, 10:43 PM
Restricted Application added subscribers: Urbanecm, Aklapper. · View Herald TranscriptNov 7 2018, 10:43 PM
Dvorapa updated the task description. (Show Details)Nov 7 2018, 10:43 PM
Seb35 added a subscriber: Seb35.Nov 8 2018, 9:10 AM

First check that https://cs.wikipedia.org/wiki/MediaWiki:Citoid-template-type-map.json is sufficiently precise and up-to-date. This is the table mapping 34 Zotero types to your Wikipedia templates. If you need more templates, you should follow https://www.mediawiki.org/wiki/Citoid/Maps_TemplateData for the new templates (essentially add a key "map -> citoid" in the TemplateData of the template). (But I’m not sure you can add more than 4 templates, see https://www.mediawiki.org/wiki/VisualEditor/Citation_tool.)

If there is still an issue, could you give some examples to reproduce precisely this isssue?

Mvolz added a subscriber: Mvolz.EditedNov 8 2018, 9:22 AM

First check that https://cs.wikipedia.org/wiki/MediaWiki:Citoid-template-type-map.json is sufficiently precise and up-to-date. This is the table mapping 34 Zotero types to your Wikipedia templates. If you need more templates, you should follow https://www.mediawiki.org/wiki/Citoid/Maps_TemplateData for the new templates (essentially add a key "map -> citoid" in the TemplateData of the template). (But I’m not sure you can add more than 4 templates, see https://www.mediawiki.org/wiki/VisualEditor/Citation_tool.)

You can add as many different templates as there are keys; https://www.mediawiki.org/wiki/VisualEditor/Citation_tool is for what shows up in the "manual" tab.

If there is still an issue, could you give some examples to reproduce precisely this isssue?

Yes, that would be helpful in diagnosing it.

Some of this may be: T114450 (which can be fixed with config on your local wiki), or potentially T206551 (which is definitely a bug that needs to be fixed in the back end). It may also be simply regression as we haven't updated Zotero in a while and this causes some miscasting (although usually just things getting incorrectly being cast as website). Currently all zotero updates and citoid development is frozen until T197242 can be completed.

Without specific examples it's hard to know which of these problems it may be.

Mvolz moved this task from Backlog to Service on the Citoid board.Dec 11 2018, 11:31 AM