Project

General

Profile

« Previous | Next » 

Revision 10619

inputs/UNCC/: switched to new-style import, using the steps at http://wiki.vegpath.org/Adding_new-style_import_to_a_datasource

View differences:

test.xml.ref
10 10
                        <authorlocationcode>
11 11
                            <_join>
12 12
                                <1>UNCC</1>
13
                                <3>$accession</3>
13
                                <3>$accessionNumber</3>
14 14
                            </_join>
15 15
                        </authorlocationcode>
16 16
                        <iscultivated>
......
32 32
                                                <_nullIf>
33 33
                                                    <null>0</null>
34 34
                                                    <type>float</type>
35
                                                    <value>$collday</value>
35
                                                    <value>$dayCollected</value>
36 36
                                                </_nullIf>
37 37
                                            </day>
38 38
                                            <month>
39 39
                                                <_nullIf>
40 40
                                                    <null>0</null>
41 41
                                                    <type>float</type>
42
                                                    <value>$collmonth</value>
42
                                                    <value>$monthCollected</value>
43 43
                                                </_nullIf>
44 44
                                            </month>
45 45
                                            <year>
46 46
                                                <_nullIf>
47 47
                                                    <null>0</null>
48 48
                                                    <type>float</type>
49
                                                    <value>$collyear</value>
49
                                                    <value>$yearCollected</value>
50 50
                                                </_nullIf>
51 51
                                            </year>
52 52
                                        </_date>
53 53
                                    </collectiondate>
54 54
                                    <notes>$occurrenceRemarks</notes>
55 55
                                    <plantobservation>
56
                                        <authorplantcode>$collectno</authorplantcode>
56
                                        <authorplantcode>$collectorNumber</authorplantcode>
57 57
                                        <reproductivecondition>$reproductiveCondition</reproductivecondition>
58 58
                                        <specimenreplicate>
59
                                            <catalognumber_dwc>$accession</catalognumber_dwc>
60
                                            <collectionnumber>$collectno</collectionnumber>
59
                                            <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
60
                                            <collectionnumber>$collectorNumber</collectionnumber>
61 61
                                            <institution_id>
62 62
                                                <sourcelist>
63 63
                                                    <name>UNCC</name>
......
83 83
                                                <taxonlabel>
84 84
                                                    <parent_id>
85 85
                                                        <taxonlabel>
86
                                                            <rank>$usdaRank</rank>
86
                                                            <rank>$taxonRank</rank>
87 87
                                                            <parent_id>
88 88
                                                                <taxonlabel>
89 89
                                                                    <rank>cultivar</rank>
......
99 99
                                                                                            <parent_id>
100 100
                                                                                                <taxonlabel>
101 101
                                                                                                    <rank>species</rank>
102
                                                                                                    <taxonepithet>$species</taxonepithet>
102
                                                                                                    <taxonepithet>$specificEpithet</taxonepithet>
103 103
                                                                                                    <parent_id>
104 104
                                                                                                        <taxonlabel>
105 105
                                                                                                            <rank>genus</rank>
......
122 122
                                                                    </parent_id>
123 123
                                                                </taxonlabel>
124 124
                                                            </parent_id>
125
                                                            <taxonepithet>$infraname</taxonepithet>
125
                                                            <taxonepithet>$infraspecificEpithet</taxonepithet>
126 126
                                                        </taxonlabel>
127 127
                                                    </parent_id>
128
                                                    <rank>$usdaRank</rank>
128
                                                    <rank>$taxonRank</rank>
129 129
                                                    <taxonomicname>
130 130
                                                        <_merge_prefix>
131 131
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
......
133 133
                                                                <_join_words>
134 134
                                                                    <1>
135 135
                                                                        <_alt>
136
                                                                            <1>$SciName</1>
136
                                                                            <1>$taxonName</1>
137 137
                                                                            <2>
138 138
                                                                                <_join_words>
139 139
                                                                                    <2><_filter_genus><value>$genus</value></_filter_genus></2>
140
                                                                                    <3>$species</3>
140
                                                                                    <3>$specificEpithet</3>
141 141
                                                                                    <5>
142 142
                                                                                        <_join_words>
143 143
                                                                                            <1>
144 144
                                                                                                <_if name="if has infraspecificEpithet">
145
                                                                                                    <cond>$infraname</cond>
146
                                                                                                    <then>$usdaRank</then>
145
                                                                                                    <cond>$infraspecificEpithet</cond>
146
                                                                                                    <then>$taxonRank</then>
147 147
                                                                                                </_if>
148 148
                                                                                            </1>
149
                                                                                            <2>$infraname</2>
149
                                                                                            <2>$infraspecificEpithet</2>
150 150
                                                                                        </_join_words>
151 151
                                                                                    </5>
152 152
                                                                                </_join_words>
153 153
                                                                            </2>
154 154
                                                                        </_alt>
155 155
                                                                    </1>
156
                                                                    <2>$authors</2>
156
                                                                    <2>$scientificNameAuthorship</2>
157 157
                                                                </_join_words>
158 158
                                                            </value>
159 159
                                                        </_merge_prefix>
160 160
                                                    </taxonomicname>
161 161
                                                </taxonlabel>
162 162
                                            </taxonlabel_id>
163
                                            <author>$authors</author>
163
                                            <author>$scientificNameAuthorship</author>
164 164
                                            <family>$family</family>
165 165
                                            <genus>$genus</genus>
166
                                            <specific_epithet>$species</specific_epithet>
167
                                            <taxonname>$SciName</taxonname>
168
                                            <verbatimrank>$usdaRank</verbatimrank>
166
                                            <specific_epithet>$specificEpithet</specific_epithet>
167
                                            <taxonname>$taxonName</taxonname>
168
                                            <verbatimrank>$taxonRank</verbatimrank>
169 169
                                        </taxonverbatim>
170 170
                                    </taxonverbatim_id>
171 171
                                </taxondetermination>
......
192 192
                                            <source_id><source><shortname>geoscrub</shortname></source></source_id>
193 193
                                            <country>$country</country>
194 194
                                            <county>$county</county>
195
                                            <stateprovince>$state</stateprovince>
195
                                            <stateprovince>$stateProvince</stateprovince>
196 196
                                        </place>
197 197
                                    </matched_place_id>
198
                                    <stateprovince>$state</stateprovince>
198
                                    <stateprovince>$stateProvince</stateprovince>
199 199
                                </place>
200 200
                            </place_id>
201 201
                        </locationplace>

Also available in: Unified diff