Open schmidt-nia opened 9 years ago
The mapping for the common used source (IIM 2:115) is defined as follows:
<metadata name="Source"> <xpath rank="1"><![CDATA[//rightsInfo/copyrightHolder/name]]></xpath> <iim> <mapsTo field="Source" dataset="115" targetType="STRING"/> </iim> <xmp> <mapsTo field="Source" targetNamespace="http://ns.adobe.com/photoshop/1.0/" targetType="Text"/> </xmp> </metadata>
Regarding the rightsInfo model of G2, there can be more then one <rightsInfo> elements with different validity dates. e.g.
<rightsInfo>
<rightsInfo validto="2015-03-11T08:06:29+01:00"> <copyrightHolder qcode="nprov:xyz"> <name>another provider</name> </copyrightHolder> </rightsInfo> <rightsInfo validto="2015-03-10T00:00:00+01:00"> <copyrightHolder qcode="nprov:dpa"> <name>dpa</name> </copyrightHolder> </rightsInfo>
In case of multiple rightsInfothe following strategy should be implemented:
rightsInfo
exists(//rightsInfo[isEmpty(@validto)]
//rightsInfo[@validto = max(//rightsInfo/xs:dateTime(@validto))]
We need a xpath 2.0 implementation e.g. Saxon 9.x to support this feature. I made some experiments and will add code sniplets
please see also: #33
The mapping for the common used source (IIM 2:115) is defined as follows:
Regarding the rightsInfo model of G2, there can be more then one
<rightsInfo>
elements with different validity dates. e.g.In case of multiple
rightsInfo
the following strategy should be implemented:exists(//rightsInfo[isEmpty(@validto)]
//rightsInfo[@validto = max(//rightsInfo/xs:dateTime(@validto))]