A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://phabricator.wikimedia.org/T321446 below:

⚓ T321446 ProofreadPage index JSON access not working

In T291167, released with 1.38.wmf0, access to ProofreadPage index fields by JSON was added. This appears to now not be working:

This URL should access the wikitext as JSON, but it does not:

https://en.wikisource.org/w/api.php?action=parse&format=json&page=Index%3ASandbox.djvu&prop=wikitext&contentformat=application%2Fjson&formatversion=2

The response is in the default Wikitext:

{
    "parse": {
        "title": "Index:Sandbox.djvu",
        "pageid": 779217,
        "wikitext": "{{:MediaWiki:Proofreadpage_index_template\n|Type=phdthesis\n|Title=Proofreading Sandbox\n|Language=fr\n|Volume=\n|Author=Wikisource\n|Translator=\n|Editor=\n|Illustrator=\n|School=\n|Publisher=\n|Address=\n|Year=2011\n|Key=\n|ISBN=\n|OCLC=\n|LCCN=\n|BNF_ARK=ark:/13960/t3903nz7b\n|ARC=\n|DOI=\n|Source=djvu\n|Image=[[Image:Historical Lectures and Addresses.djvu|page=7|300px]]\n|Progress=C\n|Transclusion=no\n|Validation_date=\n|Pages=<pagelist \n9=\"Illu s.\"\n/>\n|Volumes=\n|Remarks=\n|Width=900\n|Css=\n|Header=\n|Footer=\n}}"
    }
}

It should return something like this:

{
    "parse": {
        "title": "Index:Sandbox.djvu",
        "pageid": 3,
        "wikitext": "{\"fields\":{\"Type\":\"book\",\"wikidata_item\":\"\",\"Title\":\"Pericles\",\"Language\":\"en\",\"Volume\":\"1\",\"Author\":\"[[Pericles]]\",\"Translator\":\"\",\"Editor\":\"Editor name\",\"Illustrator\":\"\",\"School\":\"\",\"Publisher\":\"\",\"Address\":\"\",\"Year\":\"\",\"Key\":\"\",\"ISBN\":\"\",\"OCLC\":\"\",\"LCCN\":\"\",\"BNF_ARK\":\"\",\"ARC\":\"\",\"Source\":\"_empty_\",\"Image\":\"1\",\"Progress\":\"X\",\"Pages\":\"<pagelist\\n1=Cover\\n2=1 \\/>\",\"Volumes\":\"\",\"Remarks\":\"\",\"Width\":\"\",\"Css\":\"\",\"Header\":\"\",\"Footer\":\"\"},\"categories\":[\"Other cat\"]}"
    },
}

where the content is serialised JSON.

This has broken at least one tool which can't deserialise the resulting Wikitext as it was expecting JSON.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4