Page MenuHomePhabricator

Regionaal Archief Nijmegen: batch update creator metadata with Pywikibot script
Closed, DeclinedPublic

Description

Proposed workflow
Write pywikibot script that, for each file in the category:

  1. replaces current value in 'photographer' field in Category:Images from Fotopersbureau Gelderand with value in column D of the attached excel file for each unique file.
  2. adds value in column E of attached excel file to the credit line template in the 'notes' field of each file in the category.
  3. credit line template is added to the notes field of the photograph template for each individual file in the category.
  4. adds edit summary to each changed file in Wikimedia Commons
  5. saves file changes to Wikimedia Commons

Issue
The 3337 images in the category https://commons.wikimedia.org/wiki/Category:Images_from_Fotopersbureau_Gelderland were uploaded in 2018. For all images the field 'Photographer' contains the name of the copyright owner (usually "J.F.M. Trum"), followed by a comma, followed by the name of the photographer (usually "“Fotopersbureau Gelderland”)'. This is factually incorrect, the value for the field photographer should be switch with the value of the D-column in the attached excel.

In the attached Excel the following data is contained:

  • column A & B contain the unique inventory number and the filename as used on Wikimedia Commons
  • column C contains the current value for the photographer field
  • column D contains the correct value for the photographer field; which should replace the current value in the photographer field for each file.
  • column E contains the name of the copyrightholder, this should be added to a credit line template, and the filled out credit line template should be added to the notes field of each individual file

Documentation:

Excel file:

The collection uses the photography template:
https://commons.wikimedia.org/wiki/Template:Photograph

Pywikibot manual and documentation:
https://www.mediawiki.org/wiki/Manual:Pywikibot

More information:
Contact Michelle v L

Event Timeline

MichellevL_WMNL updated the task description. (Show Details)
MichellevL_WMNL updated the task description. (Show Details)
Ecritures triaged this task as Medium priority.

This open task is tagged with Wiki-Techstorm-2019 which took place a while ago. Tasks shouldn't be lingering - Please either set the status of this task to resolved/declined, or add an active project tag so this task can be found when looking at an active (not: 2019) project - thanks a lot!

Declining this unassigned task, as the conference took place in 2019. Please reopen if someone plans to work on this and add an active project tag - thanks!