Last modified: 2014-03-11 07:33:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60963, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58963 - prop=info&inprop=preload does not return text
prop=info&inprop=preload does not return text
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ProofreadPage (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-25 17:38 UTC by Mpaa
Modified: 2014-03-11 07:33 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mpaa 2013-12-25 17:38:19 UTC
On en wikisource it was possible to preload text via API for not existing pages in Page: ns, when corresponding Index/underlying file had a text layer. Now None is returned instead.

E.g. http://en.wikisource.org/w/api.php?action=query&titles=Page:More%20Tales%20from%20Tolstoi.djvu/268&prop=info&inprop=preload returns 'preload': None

See instead https://en.wikisource.org/w/index.php?title=Page:More_Tales_from_Tolstoi.djvu/268&action=edit
Comment 1 Brad Jorsch 2013-12-26 16:21:28 UTC
This is not a bug in the API. inprop=preload returns the text that is preloaded into the standard MediaWiki edit form. In Gerrit change #72933, ProofreadPage changed from using the standard MediaWiki edit form to using a custom edit form.

Whether the ProofreadPage maintainers want to resurrect their EditPagePreloadText hook function, or WONTFIX this, or do something completely different is up to them.
Comment 2 Tpt 2013-12-26 17:00:45 UTC
Thanks for the bug report. Have you an important need for this feature? If yes, I'll try to reimplement it.
Comment 3 Mpaa 2013-12-26 18:45:12 UTC
This is a very convenient way to load the text layer of an index into a file using Pywikipediabot and its API calls. In this way, the text layer is already matched with Page numbers, etc. and available for post processing purposes and page uploads.
An alternative is to scrape the HTML text, after faking the creation of a page, but it is much slower (and I guess it also loads the server more).

If it is not too much of a problem for your code, I would really appreciate if you could keep this. Thanks.
Comment 4 Tpt 2014-03-11 07:33:07 UTC
I've made a fix some weeks ago that is now deployed (see change Ic68d9be120d23386cb0e95849a850ae6eada0e64) and I've forgotten to close the bug. See https://en.wikisource.org/w/api.php?action=query&titles=Page:More%20Tales%20from%20Tolstoi.djvu/54&prop=info&inprop=preload as example.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links