MediaWiki API result
This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.
See the complete documentation, or the API help for more information.
{
"batchcomplete": "",
"continue": {
"gapcontinue": "Recaptcha3_field",
"continue": "gapcontinue||"
},
"warnings": {
"main": {
"*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
},
"revisions": {
"*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
}
},
"query": {
"pages": {
"1720": {
"pageid": 1720,
"ns": 0,
"title": "Read Only Directories",
"revisions": [
{
"contentformat": "text/x-wiki",
"contentmodel": "wikitext",
"*": "[[Category:EPrints_3_Reference]]\nCertain directories in EPrints really should not be modified by hand. These include...\n\n== Everything under '''[[EPrints_Directory_Structure/eprints3/lib|eprints3/lib/]]''' ==\n\nPlugins may install additional files here, but you should not modify anything. If you wish to override files in the /lib/ dir you can do so in the appropriate cfg dir of your repository. For example, if a file exists in both eprints3/lib/static/style and eprints3/archives/ARCHIVEID/cfg/static/style then only the one under archives/ will be used. \n\n=== Note on overriding phrases ===\n\nAn exception is phrases. Phrases are over-ridden by phrase-id not by filename. To override a phrase, just place a phrase with the same phraseid in any file in your archive cfg/lang/.../phrases/ directory.\n\n== var directories ==\n\n'''[[EPrints_Directory_Structure/eprints3/var|eprints3/var/]]''' and\n''[[EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/var|eprints3/archives/ARCHIVEID/var/]]'''\n\nThese contain files '''generated''' by the system and should not be modified by hand.\n\n== Everything under '''[[EPrints_Directory_Structure/eprints3/perl_lib|eprints3/perl_lib/]]''' ==\n\nDon't touch anything under here except the following exceptions...\n\n=== EPrints/SystemSettings.pm ===\n\nThis contains the most general of system settings (such as what user to run as, and what directory it's in). You may need to occasionally tweak something in this file.\n\n=== EPrints/Plugin/ ===\n\nYou may wish to add your own (custom) plugins or install some from http://files.eprints.org/"
}
]
},
"2667": {
"pageid": 2667,
"ns": 0,
"title": "Recaptcha",
"revisions": [
{
"contentformat": "text/x-wiki",
"contentmodel": "wikitext",
"*": "NOTE: This has been written based on my experience of an EPrints 3.3.10 install.\n\n== Configuring reCAPTCHA for user registration ==\nRecent versions of EPrints (3.2+?) have configuration that allows reCAPTCHA to be used for user registration and/or document requests.\nIf your version of EPrints has the file: ~/perl_lib/EPrints/MetaField/Recaptcha.pm, these instructions *should* work...\n\n== What to do ==\n# Register for a reCAPTCHA key at http://www.google.com/recaptcha (Click on the 'Use reCAPTCHA on your site' link).\n# Add reCAPTCHA keys to config\n# Configure a field to use reCAPTCHA\n# Add field to workflow\n\n== Adding the config ==\nCreate a file: ~/archives/ARCHIVEID/cfg/cfg.d/recaptcha.pl\n<source lang=\"perl\">\n# Used by recaptcha fields. See ~/perl_lib/EPrints/MetaField/Recaptcha.pm\n# Captcha registered by you@your-institution\n$c->{recaptcha}->{public_key} = \"...\";\n$c->{recaptcha}->{private_key} = \"...\";\n</source>\nAdd the keys you got when registering for reCAPTCHA.\n\n''You can create either domain specific keys, or general purpose keys. If you run multiple archives you might want to create general keys and add the config file to ~/lib/cfg.d/ instead.''\n\n== Adding reCAPTCHA to User Registration ==\nFirst we have to add the reCAPTCHA field to the user config.\nI added the following code to the end of my recaptcha.pl file, but you could also add the field definition directly to the 'user_fields.pl' file.\n<source lang=\"perl\">\n#Add field to user dataset\n$c->add_dataset_field( \"user\", {\n name => \"captcha\",\n type => \"recaptcha\",\n});\n</source>\nNow reload the configuration and update the database (through the web interface Admin->Config. Tools -> Reload Config / Update Database) - or via the command line.\n\nNext, we have to add the field to the user registration workflow. If you haven't edited the registration workflow, look at ~/lib/workflows/user/register.xml. Add the following component after the existing Field::Multi component.\n<source lang=\"xml\">\n<component surround=\"None\"><field ref=\"captcha\" /></component>\n</source>\n''If you are running multiple archives and some need reCAPTCHA and others don't, copy the register.xml file into ~/archives/ARCHIVEID/workflows/user/ and edit it there.''\n\nReload the configuration again, and then visit your 'Create Account' page - you should have a nice shiny reCAPTCHA added to the registration!\n\n\n== Adding reCAPTCHA to Document requests==\nThis is similar to the above, basically add a field to the request dataset, render it in the workflow (did you know that requests now have a workflow? I didn't!). \n\nAdd the following to recaptcha.pl - or another suitable cfg.d/...pl file:\n<source lang=\"perl\">\n#Add field to requests\n$c->add_dataset_field( \"request\", {\n name => \"captcha\",\n type => \"recaptcha\",\n});\n</source>\n\nAdd the field to the workflow for requests ~/lib/workflows/request/default.xml\n<source lang=\"xml\">\n<component surround=\"None\"><field ref=\"captcha\" /></component>\n</source>\nReload config, update database etc. and test it works!\n\nGood work EPrints developers - it took about 10 minutes to get it working (and about 30 minutes to write this page :o)!\n\n[[Category:Howto]][[Category:Snippets]][[Category:Metadata Fields]][[Category:Contribute]]"
}
]
}
}
}
}