dpa-gmbh / metadata-mapper

http://dpa-gmbh.github.io/metadata-mapper/
Other
5 stars 1 forks source link

Refactoring config: use specific elements instead of generic mapsTo #25

Open ola-github opened 9 years ago

ola-github commented 9 years ago

Examples:

FROM

<mapsTo targetNamespace="http://ns.adobe.com/photoshop/1.0/" field="State" targetType="Text"/>

TO

<text targetNamespace="http://ns.adobe.com/photoshop/1.0/" field="State"/>

FROM

        <xmp>
            <mapsTo targetNamespace="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" field="Scene" targetType="Bag">
                <mapsTo field="Scene" targetNamespace="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" targetType="Text"/>
            </mapsTo>

TO

            <bag targetNamespace="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" field="Scene">
                <text/>
            </bag>