Thank you for your update and for all the work you put in to preparing the screen shots; very helpful.
From your david1.jpg and david2.jpg screen shots it looks like “Filter Tag” is a custom taxonomy created by your theme or some plugin, separate from the taxonomies I mentioned in my earlier post. Is that right?
I believe the file shown in your david2.jpg screen shot is one of the files I downloaded from your site for analysis. I am confused because the metadata in the file I downloaded is different from that shown in your screen shot and in the examples you gave in your post. For example, the Title/Headline in the file I have is “Weinmesse Zug / Zugersee”. I do not see the “Weinmesse-Schiff auf dem Zugersee” shown in your screen shot. As I noted in my earlier post I do not see the “dc\subject” value in any of the files I examined.
Here is the relevant XMP metadata I found in the inv-52.jpg file. I have omitted some of the other data such as exif and tiff values:
'mla_xmp_metadata' =>
array (
'xmptk' => 'Image::ExifTool 10.78',
'creator' => 'SINUS / Markus J. Hässig',
'format' => 'image/jpeg',
'language' => 'invictus online',
'rights' => 'Copyright© und alle Rechte bei www.sinus.ch',
'title' => '20150320-1805-255628-s-coo-weinmesse_a.nef',
'CreateDate' => '2015-03-20 18:05:02',
'CreatorTool' => 'photools.com IMatch 17.14.0.2 (Windows)',
'MetadataDate' => '2018-05-17 12:34:39',
'ModifyDate' => '2018-05-17 12:34:39',
'Rating' => '1',
'DocumentID' => 'xmp.did:0c33488e-fadd-4819-acda-c0ab529464d3',
'InstanceID' => 'xmp.iid:3a919482-ea39-4440-a003-204b8bc1e9c8',
'OriginalDocumentID' => 'xmp.did:0c33488e-fadd-4819-acda-c0ab529464d3',
'Title' => '20150320-1805-255628-s-coo-weinmesse_a.nef',
'Author' => 'SINUS / Markus J. Hässig',
'Creator' => 'photools.com IMatch 17.14.0.2 (Windows)',
'CreationDate' => '2015-03-20 18:05:02',
'ModDate' => '2018-05-17 12:34:39',
'xmlns' =>
array (
'x' => 'adobe:ns:meta/',
'rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
'Iptc4xmpCore' => 'http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/',
'Iptc4xmpExt' => 'http://iptc.org/std/Iptc4xmpExt/2008-02-29/',
'aux' => 'http://ns.adobe.com/exif/1.0/aux/',
'dc' => 'http://purl.org/dc/elements/1.1/',
'exif' => 'http://ns.adobe.com/exif/1.0/',
'exifEX' => 'http://cipa.jp/exif/1.0/',
'photoshop' => 'http://ns.adobe.com/photoshop/1.0/',
'tiff' => 'http://ns.adobe.com/tiff/1.0/',
'xmp' => 'http://ns.adobe.com/xap/1.0/',
'stEvt' => 'http://ns.adobe.com/xap/1.0/sType/ResourceEvent#',
'xmpMM' => 'http://ns.adobe.com/xap/1.0/mm/',
),
'Iptc4xmpCore' =>
array (
'CountryCode' => 'CHE',
),
'Iptc4xmpExt' =>
array (
'LocationShown' =>
array (
0 =>
array (
'Sublocation' => 'am Hafen von Zug',
),
),
),
'dc' =>
array (
'creator' =>
array (
0 => 'SINUS / Markus J. Hässig',
),
'format' => 'image/jpeg',
'language' =>
array (
0 => 'invictus online',
),
'rights' =>
array (
0 => 'Copyright© und alle Rechte bei www.sinus.ch',
),
'title' =>
array (
0 => '20150320-1805-255628-s-coo-weinmesse_a.nef',
),
),
'photoshop' =>
array (
'AuthorsPosition' => 'Chef-Fotograf',
'CaptionWriter' => 'Markus J. Hässig',
'City' => 'Zug',
'ColorMode' => '3',
'Country' => 'Switzerland',
'Credit' => 'Fotoagentur SINUS, Aarau/Schweiz',
'DateCreated' => '2015-03-20 18:05:02',
'Headline' => 'Weinmesse Zug / Zugersee',
'ICCProfile' => 'sRGB IEC61966-2.1',
'Instructions' => 'Die Verwendung dieses Bildes ist honorarpflichtig. Weitere Informationen sind ersichtlich auf www.sinus.ch oder erhältlich bei Fotoagentur SINUS, Schweiz.',
'LegacyIPTCDigest' => '1006F89ECFB8DD073E969EE59EDA50B7',
'Source' => 'cam',
'State' => 'Kanton Zug',
'SupplementalCategories' =>
array (
0 => 'sinusfoto',
),
),
),
As you can see, the naming conventions in the above data are somewhat different from the names in your post, e.g., {File.MD.XMP::photoshop\Headline\Headline\0} appears in my data as xmp:photoshop.Headline. In a similar way, {File.MD.XMP::iptcExt\LocationShownCity\LocationShownCity\0} is xmp:Iptc4xmpExt.LocationShown.0.Sublocation. You should be able to work out the other names from these examples.
For your information, here are the relevant IPTC fields populated in the file:
'mla_iptc_metadata' =>
array (
'2#120' => 'Anliker, maschinen',
'2#122' => 'Markus J. Hässig',
'2#105' => 'anliker',
'2#040' => 'Die Verwendung dieses Bildes ist honorarpflichtig. Weitere Informationen sind ersichtlich auf www.sinus.ch oder erhältlich bei Fotoagentur SINUS, Schweiz',
'2#080' => 'SINUS / Markus J. Hässig',
'2#085' => 'Chef-Fotograf',
'2#110' => 'Fotoagentur SINUS, Switzerland',
'2#115' => 'cam',
'2#005' => '20081029-1532-103961-s-kun-anliker.nef',
'2#055' => '20081029',
'2#060' => '153203+0100',
'2#062' => '20081029',
'2#063' => '153203+0100',
'2#090' => 'Kloten',
'2#095' => 'Kanton Zürich',
'2#101' => 'Switzerland',
'2#100' => 'CHE',
'2#020' => '>sinusbild',
'2#116' => '©2008 Copyright www.sinus.ch, All rights reserved',
'2#065' => '',
'2#200' => '12848',
'2#201' => '24388',
'2#202' => 'anlik961',
'2#203' => 'RAW-Original, bereit für Kopien, , (noch) keine Bildbearbeitung',
'2#231' => '30.10.2008 08:37:00: 1 Nummerntank: Bildname, Infos, Zeitordner
30.10.2008 08:49:38: 2 Info-Sammler: Properties in iptc (automatisch)
02.11.2008 16:39:47: 3 Wahl-Tresor: RAW-ORIGINAL bereit für Kopien-Erstellung
02.11.2008 17:59:56: 4 Kopienscanner: von diesem Original Kopien gescannt
02.11.2008 17:59:56: -- ORIGINAL MIT KOPIE ARCHIVIERT --
10/6/2014 9:17:09 PM: 2 Info-Sammler: Properties in iptc (ready for IM5)
10/7/2014 8:24:18 PM: 2 Info-Sammler: für Übertrag in IM5',
),
Based on the above I believe I can give you a start on mapping metadata to fields such as “Filter Tag”. I can’t test this unless you give me a specific file that contains the xmp:dc.subject value, but you can give this a try:
- Go to the Settings/Media Library Assistant IPTC/EXIF tab.
- If you want to apply the rule to new items as they are uploaded, check the “Enable IPTC/EXIF Mapping when adding new media” and “Enable IPTC/EXIF Mapping when updating media metadata” boxes.
- Locate the “Filter Tag” rule entry in the table and click the “Edit” rollover action.
- In the “IPTC Value” dropdown control leave the default “- None (select a value) -” in place.
- In the “EXIF/Template Value” text box enter
template:([+xmp:dc.subject+]).
- In the “Priority” dropdown, select “EXIF”.
- In the “Existing Text” dropdown, select “Replace” to replace existing term assignments or “Keep” to add the terms generated by the rule to any existing assignments.
- In the “Option” dropdown, select “Array”.
- In the “Delimiters” text box, enter “;” (semicolon).
- Scroll down to the bottom of the screen and click “Update”.
Once you define a rule you can apply it to a single item, multiple items or all items:
- To map a single item, go to the Media/Assistant submenu and click the thumbnail of the item you want (or click the “Edit” rollover action) to get the Media/Edit Media screen. You can click the “Map IPTC/EXIF metadata” link to run your rules on this item, then scroll down and look at the “Att. Categories” meta box to inspect the results.
- To map two or more items, go to the Media/Assistant submenu and click the checkbox next to the items you want. Then, select “Edit” from the “Bulk Actions” dropdown above the checkboxes and click “Apply” to open the Bulk Edit area. Click the “Map IPTC/EXIF metadata” button to run your rules on the selected items.
- To map all of your items, stay on the Settings/Media Library Assistant IPTC/EXIF tab and click the “Execute” rollover action for the App. Categories rule. This may take a while.
I suggest template:([+xmp:dc.subject+]) because the parentheses around the substitution parameter will gracefully ignore files that do not contain a value in the field.
You can adapt the above instructions for your other fields, changing the template for each field:
- Title –
template:([+xmp:photoshop.Headline+])
- ALT Text –
template:([+xmp:photoshop.Headline+] copyright by SINUS)
- Description –
template:([+xmp:Iptc4xmpExt.LocationShown.0.LocationShownCity+])(-[+xmp:Iptc4xmpExt.LocationShown.0.LocationShownProvinceState+])( - [+xmp:dc.Description+])
I hope the above instructions are clear enough to get you started. I will leave this topic unresolved for now in case you have problems or further questions regarding the assumptions I made and the suggested solutions.