Wikiportrait/v2
This is a general technical description of the new (2.0) version of the Wikiportrait software.
Background
editWikiportrait is a tool to make it easy for people to upload photographs of famous people (preferably ones that have an Wikipedia article), and handle all of the legal OTRS stuff. For a general description of how the old process used to work see the description of version 1.
Users
edit- The uploader (the person who has uploaded a picture to Wikiportrait)
- The reviewer (the OTRS volunteer who reviews the picture and approves or disapproves it)
- The admin (a sysadmin who has access to the server where Wikiportrait is currently running)
User stories for new features
editCreate a new ticket in OTRS whenever a new image is uploaded
editWhenever a user uploads a new image with description to Wikiportrait an OTRS ticket should be created using the OTRS API. This ticket should include a link to the admin interface with the correct hash so an OTRS volunteer can review it.
The uploader should receive an email with a confirmation of his upload and a link to the static page
editThe uploader should have access to a static (read-only) page with his image and the current status of the request
editThe reviewer should have access to a review interface where she can approve and disapprove images
editThe reviewer should have access to a review interface for her specific language queue
editThere can be multiple queues for different languages.
The admin can configure different queues on the server
editThis can just be a simple XML, INI or PHP file with different names of queues ('info-nl/wikiportret)
The uploader can read texts on the website in his own language
editThis means all frontend user-viewable pages should be translatable.
The uploader should be redirected to a version in his own language
editWe need to determine the preferred language of the user (using a combination of the Accept-Language HTTP header and maybe some GeoIP wizardry). See this Stackoverflow answer for a good way of determining this.
The uploader's language of choice should be remembered
editUsing a cookie i guess.
The uploader should have the option to change the language
editAccept-Language sometimes fails (with people having set the wrong language), so a manual change of the language should be possible.
After the review has approved an image, the image should be uploaded to Commons
editProbably using the MW API on Commons. This should use some kind of predetermined template that can be filled with all the correct values.