Page MenuHomePhabricator

Resulting book from Wikisource still has interwiki links
Closed, ResolvedPublic

Description

Author: vinhtantran

Description:
When I export books in PDF or ODF formats in Wikisource, if the article has interwiki links, they will show in the book. This problem does not occur in Wikipedia. I think interwiki links should be omit from the books.


Version: unspecified
Severity: normal

Details

Reference
bz20526

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:54 PM
bzimport added a project: Collection.
bzimport set Reference to bz20526.

volker.haas wrote:

This issue has probably been fixed. If there still is a problem with interwiki links please provide an example to allow debugging.

vinhtantran wrote:

A example on vi.wikisource that interwiki links still show on PDF

Still has error, this is an example.

Attached:

vinhtantran wrote:

I reopen this bug because there's still error. Please take a look at the 4th page of the attachment. I have just created it after receiving the notification email from BugZilla.

volker.haas wrote:

The problem seems to be that the API on wikisource returns an empty interwikimap. Therefore interwiki links can not be detected.

See the difference:

> The solution is probably to fix the configuration of the mediawiki. If a correct interwikimap is returned by the API the interwiki links can be handled correctly in the PDF.

(In reply to comment #5)

The problem seems to be that the API on wikisource returns an empty
interwikimap. Therefore interwiki links can not be detected.

See the difference:

  • interwikimap on en.wikipedia

http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap

  • no interwikimap on vi.wikisource:

http://vi.wikisource.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap

> The solution is probably to fix the configuration of the mediawiki. If a

correct interwikimap is returned by the API the interwiki links can be handled
correctly in the PDF.

I suspect the problem is in the API module, which IIRC queries the database but doesn't think to access the interwiki cache.

  • Bug 24897 has been marked as a duplicate of this bug. ***

volker.haas wrote:

I would like to remove the pediapress dev team from the assignees list. The bug seems to be in the MediaWiki API/configuration. Who would be the correct assignee?

(In reply to comment #8)

I would like to remove the pediapress dev team from the assignees list. The bug
seems to be in the MediaWiki API/configuration. Who would be the correct
assignee?

It seems this is a duplicate of bug 19838 then, is that right?

(In reply to comment #9)

It seems this is a duplicate of bug 19838 then, is that right?

Seems sensible. We need someone to look at it, though...

  • This bug has been marked as a duplicate of bug 19838 ***