Specify "Recorder" for audio, "Creator" for video, "Illustrator" for drawings, as discussed in http://eol.org/forums/7/topics/49. This requires initialize_data_object() to know the filetype, so simplify and re-jig the code to pass in the appropriate info, including url and mimetype while we are at it.
Put mime types as setting for Harvester, rather than embedded in the code. Also increase range of mime types to include webm and audio/video ogg types.
Strip formatting & other html from author string (e.g. as in https://commons.wikimedia.org/wiki/File:Drosera_capillaris.jpg)
remove declarations of unused private variables
Stamp on last warning message about strtotime not having a set timezone (wiki timestamps always have a timezone set - this is an overzealous PHP warning)
Catch long-standing bug in spotting CC license numbers (use non-capturing parentheses in RegExp). Also delete "(talk)" from author field if at end. TODO for viruses.
Tidy up author field in some cases.
Correct duplicate webm mime type
The toolserver version to get categories seems to abort after 500 or so categories. Comment out this bit of code and only use the newer wmflabs site to get map categories.
Simplify logic when outputting debugging messages
Reset role to default "Creator" for maps ("photographer" seems inappropriate). Also change variable names
Formatting corrections, plus uncomment accidental commenting out in previous commit
Allow "mailto" links when parsing wikilinks (helps for getting author contact details)
Make sure we don't harvest files with uncertain licenses (see http://eol.org/forums/4/topics/62)
Tidy up author name parsing: remove dates, unneeded copyright text, Photo by" etc. Also save email if present
Remove html from author text, convert html entities into unicode equivalents, etc.
Use correct equality operator, to avoid errors in string comparision.
nicer error messages at end of harvest - use proper equality operator in string comparison when parsing xml dump
Merge branch 'master' of https://github.com/EOL/eol_php_code into HEAD
A few wikitext parser improvments - remove duplicate code line, kill wikitext categories, use string equals ===