XMP Hierarchical Subject (lr:hierarchicalSubject)
Background to this post here: Re: Keywords and Subkeywords Display
I can’t script, however I can sometimes hack them. The more that I look into this, it is harder than I originally expected from say hacking a description to title script.
Would like to hack an existing Bridge script to copy the lr:hierarchicalSubject metadata to the standard subject/keyword metadata.
Source:
<lr:hierarchicalSubject>
<rdf:Bag>
<rdf:li>Corleone</rdf:li>
<rdf:li>Corleone|Don Vito</rdf:li>
</rdf:Bag>
</lr:hierarchicalSubject>
Result:
<dc:subject>
<rdf:Bag>
<rdf:li>Corleone</rdf:li>
<rdf:li>Don Vito</rdf:li>
</rdf:Bag>
</dc:subject>
Obviously will need to change the input string to an array/list. Only the content in green and blue would be required, the red content would not be required.
This is easy with ExifTool:
exiftool -r -subject= -keyword= -sep '|' -use MWG '-keywords<${XMP-lr:HierarchicalSubject}' 'pathToFile or Folder'
EDIT: I just found a clue here regarding the namespace:
Exiv2 - Image metadata library and tools
http://ns.adobe.com/lightroom/1.0/
hierarchicalSubject

