merge-update from trunk
[cdmlib.git] / cdmlib-remote / src / main / resources / eu / etaxonomy / cdm / remote / dto / oaipmh / mappings.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE mappings PUBLIC "-//DOZER//DTD MAPPINGS//EN"
3 "http://dozer.sourceforge.net/dtd/dozerbeanmapping.dtd">
4 <mappings>
5 <!--
6 ===============================================
7 Mapping for OAI-PMH Header and OAI-DublinCore
8 ===============================================
9 -->
10 <configuration>
11 <wildcard>false</wildcard>
12 </configuration>
13 <!-- header -->
14 <mapping>
15 <class-a>eu.etaxonomy.cdm.model.common.IdentifiableEntity</class-a>
16 <class-b map-null="false">eu.etaxonomy.cdm.remote.dto.oaipmh.Header</class-b>
17 <field custom-converter-id="lsidConverter">
18 <a>lsid</a>
19 <b>identifier</b>
20 </field>
21 <field custom-converter-id="dateTimeConverter">
22 <a>created</a>
23 <b>datestamp</b>
24 </field>
25 <field custom-converter-id="dateTimeConverter">
26 <a>updated</a>
27 <b>datestamp</b>
28 </field>
29 </mapping>
30
31 <!-- header -->
32 <mapping>
33 <class-a>eu.etaxonomy.cdm.model.common.IdentifiableEntity</class-a>
34 <class-b map-null="false">eu.etaxonomy.cdm.remote.dto.oaipmh.OaiDc</class-b>
35 <field custom-converter-id="lsidConverter">
36 <a>lsid</a>
37 <b>identifier</b>
38 </field>
39 </mapping>
40
41 <mapping>
42 <class-a>eu.etaxonomy.cdm.model.taxon.TaxonBase</class-a>
43 <class-b map-null="false">eu.etaxonomy.cdm.remote.dto.oaipmh.OaiDc</class-b>
44 <field>
45 <a>created</a>
46 <b>date</b>
47 </field>
48 <field>
49 <a>updated</a>
50 <b>date</b>
51 </field>
52 <field custom-converter-id="hibernateProxyDeepConverter" custom-converter-param="username">
53 <a>createdBy</a>
54 <b>creator</b>
55 </field>
56 <field>
57 <a>titleCache</a>
58 <b>title</b>
59 </field>
60 </mapping>
61
62 <mapping>
63 <class-a>eu.etaxonomy.cdm.model.reference.Reference</class-a>
64 <class-b map-null="false">eu.etaxonomy.cdm.remote.dto.oaipmh.OaiDc</class-b>
65 <field custom-converter-id="timePeriodConverter">
66 <a>datePublished</a>
67 <b>date</b>
68 </field>
69 <field custom-converter-id="hibernateProxyDeepConverter" custom-converter-param="titleCache" >
70 <a>authorship</a>
71 <b>creator</b>
72 </field>
73 <field>
74 <a>title</a>
75 <b>title</b>
76 </field>
77 <field>
78 <a>publisher</a>
79 <b>publisher</b>
80 </field>
81 <!-- isPartOf only exists in DC
82 <field custom-converter="identifierConverter">
83 <a>inReference</a>
84 <b>isPartOf</b>
85 </field>
86 -->
87 <field>
88 <a>type</a>
89 <b>type</b>
90 </field>
91 <field>
92 <a>referenceAbstract</a>
93 <b>description</b>
94 </field>
95 <field custom-converter-id="identifierConverter">
96 <a>inReference</a>
97 <b>relation</b>
98 </field>
99
100 </mapping>
101 </mappings>