Last modified: 2014-06-21 15:49:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42147, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40147 - "Copy metadata" feature does not copy custom fields
"Copy metadata" feature does not copy custom fields
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Rainer Rillke @commons.wikimedia
:
: 53637 (view as bug list)
Depends on:
Blocks: 42164
  Show dependency treegraph
 
Reported: 2012-09-10 22:30 UTC by Erik Moeller
Modified: 2014-06-21 15:49 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Erik Moeller 2012-09-10 22:30:30 UTC
The "copy metadata" feature currently ignores custom fields added through upload campaigns like WLM. It should dynamically add those fields to the checkboxes (default-checked) when a campaign is loaded, and copy them if the user requests it.
Comment 1 Nischay Nahata 2012-11-11 06:21:25 UTC
When I used UploadWizard all the checkboxes were default-checked, so could you explain a bit what you want to see here?
Comment 2 Erik Moeller 2012-11-12 02:03:49 UTC
Nischay, this refers to custom fields added by the campaign feature; see https://www.mediawiki.org/wiki/Extension:UploadWizard/Campaigns
Comment 3 Andre Klapper 2012-11-12 12:13:23 UTC
Duplicate of bug 39927?
Comment 4 Erik Moeller 2012-11-12 12:20:13 UTC
No. These are different "custom tags". Bug 39927 describes custom licensing templates like {{PD-Art}} being entered in the license selection workflow on a per-image basis and not correctly applied across a batch. This bug describes extra fields added via an upload campaign (such as a monument identifier number for WLM) not being copied.
Comment 5 Nischay Nahata 2013-01-22 05:24:31 UTC
Can we have a list of all such "custom tags" possible?
I can only see idField and idField2 atm.
Comment 6 Jean-Fred 2013-09-01 08:57:23 UTC
Reproduced as well.

Since the changes to the Campaigns, there can be as many fields as defined in the JSON configuration.
Comment 7 Basvb 2013-09-01 10:51:42 UTC
I filed bug 53637 which is a duplicate. 
Info from that bug: 
I did the following actions

-I upload multiple images with for example the custom
https://commons.wikimedia.org/wiki/Campaign:wlm-ua campaign on Commons.
-After using the link
https://commons.wikimedia.org/w/index.php?title=Special:UploadWizard&campaign=wlm-ua&uselang=en
and selecting 2 images I add  information in the custom field for monument
identifiers. When I use the option "Copy information to all uploads below ..."
the information from the custom field isn't copied. All other information is
copied.

This seems like a bug to me.
Comment 8 Jean-Fred 2013-09-01 10:54:16 UTC
*** Bug 53637 has been marked as a duplicate of this bug. ***
Comment 9 Rainer Rillke @commons.wikimedia 2013-09-09 12:37:55 UTC
I am attempting/going to author a patch that will copy this information if the "Copy other information" checkbox is checked. I am not sure whether it is a good idea adding a 7th checkbox ("Copy campaign information"); if this is really wanted, it can be added later (I will make sure that it will be easy doing so.)

A checkbox for each single campaign field is, however, not possible unless the campaign scheme also defines a label that could be used by this checkbox. 
"Copy " + fields[n].label does not work well (often longish text, starts with upper case letter, grammar, ...).
Comment 10 Rainer Rillke @commons.wikimedia 2013-09-09 15:13:59 UTC
https://gerrit.wikimedia.org/r/83414 is open to discussion
Comment 11 Gerrit Notification Bot 2013-09-09 16:10:41 UTC
Change 83414 had a related patch set uploaded by MarkTraceur:
Copy contents of campaign fields with the copy-metadata

https://gerrit.wikimedia.org/r/83414
Comment 12 Gerrit Notification Bot 2014-05-07 12:45:34 UTC
Change 83414 merged by jenkins-bot:
Copy contents of campaign fields on copy-metadata

https://gerrit.wikimedia.org/r/83414
Comment 13 Gerrit Notification Bot 2014-06-21 12:15:16 UTC
Change 141197 had a related patch set uploaded by Inchikutty:
Copy contents of campaign fields on copy-metadata

https://gerrit.wikimedia.org/r/141197
Comment 14 Gerrit Notification Bot 2014-06-21 14:22:03 UTC
Change 141197 abandoned by Alex Monk:
Copy contents of campaign fields on copy-metadata

https://gerrit.wikimedia.org/r/141197
Comment 15 Andre Klapper 2014-06-21 15:49:42 UTC
[Restoring previous FIXED status]

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links