Revision 6403
Added by Aaron Marcuse-Kubitza over 11 years ago
test.xml.ref | ||
---|---|---|
1 | 1 |
Put template: |
2 | 2 |
<VegBIEN> |
3 |
<_simplifyPath id="-1"> |
|
4 |
<next>parent_id</next> |
|
3 |
<_setDefault id="-1"> |
|
4 |
<col>source_id</col> |
|
5 |
<value><source><shortname>NCU-NCSC</shortname></source></value> |
|
5 | 6 |
<path> |
6 |
<location> |
|
7 |
<authorlocationcode> |
|
8 |
<_alt> |
|
9 |
<1>$Accession Number</1> |
|
10 |
<2> |
|
11 |
<_join> |
|
12 |
<2>$SeriesName</2> |
|
13 |
<3>$Barcode</3> |
|
14 |
</_join> |
|
15 |
</2> |
|
16 |
</_alt> |
|
17 |
</authorlocationcode> |
|
18 |
<elevation_m> |
|
19 |
<_units> |
|
20 |
<to>m</to> |
|
21 |
<to></to> |
|
22 |
<value>$Elevation</value> |
|
23 |
</_units> |
|
24 |
</elevation_m> |
|
25 |
<locationevent> |
|
26 |
<taxonoccurrence> |
|
27 |
<aggregateoccurrence> |
|
28 |
<collectiondate>$Collect Date</collectiondate> |
|
29 |
<plantobservation> |
|
30 |
<specimenreplicate> |
|
31 |
<catalognumber_dwc>$Barcode</catalognumber_dwc> |
|
32 |
<collectioncode_dwc>$SeriesName</collectioncode_dwc> |
|
33 |
<sourceaccessioncode>$Accession Number</sourceaccessioncode> |
|
34 |
</specimenreplicate> |
|
35 |
</plantobservation> |
|
36 |
</aggregateoccurrence> |
|
37 |
<iscultivated>$Cultivated?</iscultivated> |
|
38 |
<sourceaccessioncode>$Accession Number</sourceaccessioncode> |
|
39 |
<taxondetermination> |
|
40 |
<taxonverbatim_id> |
|
41 |
<taxonverbatim> |
|
42 |
<taxonlabel_id> |
|
43 |
<taxonlabel> |
|
44 |
<matched_label_id> |
|
7 |
<_simplifyPath> |
|
8 |
<next>parent_id</next> |
|
9 |
<path> |
|
10 |
<location> |
|
11 |
<authorlocationcode> |
|
12 |
<_alt> |
|
13 |
<1>$Accession Number</1> |
|
14 |
<2> |
|
15 |
<_join> |
|
16 |
<2>$SeriesName</2> |
|
17 |
<3>$Barcode</3> |
|
18 |
</_join> |
|
19 |
</2> |
|
20 |
</_alt> |
|
21 |
</authorlocationcode> |
|
22 |
<elevation_m> |
|
23 |
<_units> |
|
24 |
<to>m</to> |
|
25 |
<to></to> |
|
26 |
<value>$Elevation</value> |
|
27 |
</_units> |
|
28 |
</elevation_m> |
|
29 |
<locationevent> |
|
30 |
<taxonoccurrence> |
|
31 |
<aggregateoccurrence> |
|
32 |
<collectiondate>$Collect Date</collectiondate> |
|
33 |
<plantobservation> |
|
34 |
<specimenreplicate> |
|
35 |
<catalognumber_dwc>$Barcode</catalognumber_dwc> |
|
36 |
<collectioncode_dwc>$SeriesName</collectioncode_dwc> |
|
37 |
<sourceaccessioncode>$Accession Number</sourceaccessioncode> |
|
38 |
</specimenreplicate> |
|
39 |
</plantobservation> |
|
40 |
</aggregateoccurrence> |
|
41 |
<iscultivated>$Cultivated?</iscultivated> |
|
42 |
<sourceaccessioncode>$Accession Number</sourceaccessioncode> |
|
43 |
<taxondetermination> |
|
44 |
<taxonverbatim_id> |
|
45 |
<taxonverbatim> |
|
46 |
<taxonlabel_id> |
|
45 | 47 |
<taxonlabel> |
46 |
<source_id><source><shortname>TNRS</shortname></source></source_id> |
|
48 |
<matched_label_id> |
|
49 |
<taxonlabel> |
|
50 |
<source_id><source><shortname>TNRS</shortname></source></source_id> |
|
51 |
<taxonomicname>$Full Taxon Name</taxonomicname> |
|
52 |
</taxonlabel> |
|
53 |
</matched_label_id> |
|
47 | 54 |
<taxonomicname>$Full Taxon Name</taxonomicname> |
48 | 55 |
</taxonlabel> |
49 |
</matched_label_id> |
|
50 |
<taxonomicname>$Full Taxon Name</taxonomicname> |
|
51 |
</taxonlabel> |
|
52 |
</taxonlabel_id> |
|
53 |
<taxonname>$Full Taxon Name</taxonname> |
|
54 |
</taxonverbatim> |
|
55 |
</taxonverbatim_id> |
|
56 |
</taxondetermination> |
|
57 |
</taxonoccurrence> |
|
58 |
</locationevent> |
|
59 |
<locationplace> |
|
60 |
<place_id> |
|
61 |
<place> |
|
62 |
<coordinates_id> |
|
63 |
<coordinates> |
|
64 |
<coordsaccuracy_m><_noCV><value>$Accuracy</value></_noCV></coordsaccuracy_m> |
|
65 |
<latitude_deg> |
|
66 |
<_nullIf> |
|
67 |
<null>0</null> |
|
68 |
<type>float</type> |
|
69 |
<value> |
|
70 |
<_replace> |
|
71 |
<\?$></\?$> |
|
72 |
<value>$Lat (-=S)</value> |
|
73 |
</_replace> |
|
74 |
</value> |
|
75 |
</_nullIf> |
|
76 |
</latitude_deg> |
|
77 |
<longitude_deg> |
|
78 |
<_nullIf> |
|
79 |
<null>0</null> |
|
80 |
<type>float</type> |
|
81 |
<value> |
|
82 |
<_replace> |
|
83 |
<\?$></\?$> |
|
84 |
<value>$Long (-=W)</value> |
|
85 |
</_replace> |
|
86 |
</value> |
|
87 |
</_nullIf> |
|
88 |
</longitude_deg> |
|
89 |
</coordinates> |
|
90 |
</coordinates_id> |
|
91 |
<country>$Country</country> |
|
92 |
<county>$County</county> |
|
93 |
<matched_place_id> |
|
56 |
</taxonlabel_id> |
|
57 |
<taxonname>$Full Taxon Name</taxonname> |
|
58 |
</taxonverbatim> |
|
59 |
</taxonverbatim_id> |
|
60 |
</taxondetermination> |
|
61 |
</taxonoccurrence> |
|
62 |
</locationevent> |
|
63 |
<locationplace> |
|
64 |
<place_id> |
|
94 | 65 |
<place> |
95 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
96 | 66 |
<coordinates_id> |
97 | 67 |
<coordinates> |
98 |
<source_id><source><shortname>geoscrub</shortname></source></source_id>
|
|
68 |
<coordsaccuracy_m><_noCV><value>$Accuracy</value></_noCV></coordsaccuracy_m>
|
|
99 | 69 |
<latitude_deg> |
100 | 70 |
<_nullIf> |
101 | 71 |
<null>0</null> |
... | ... | |
124 | 94 |
</coordinates_id> |
125 | 95 |
<country>$Country</country> |
126 | 96 |
<county>$County</county> |
97 |
<matched_place_id> |
|
98 |
<place> |
|
99 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
100 |
<coordinates_id> |
|
101 |
<coordinates> |
|
102 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
103 |
<latitude_deg> |
|
104 |
<_nullIf> |
|
105 |
<null>0</null> |
|
106 |
<type>float</type> |
|
107 |
<value> |
|
108 |
<_replace> |
|
109 |
<\?$></\?$> |
|
110 |
<value>$Lat (-=S)</value> |
|
111 |
</_replace> |
|
112 |
</value> |
|
113 |
</_nullIf> |
|
114 |
</latitude_deg> |
|
115 |
<longitude_deg> |
|
116 |
<_nullIf> |
|
117 |
<null>0</null> |
|
118 |
<type>float</type> |
|
119 |
<value> |
|
120 |
<_replace> |
|
121 |
<\?$></\?$> |
|
122 |
<value>$Long (-=W)</value> |
|
123 |
</_replace> |
|
124 |
</value> |
|
125 |
</_nullIf> |
|
126 |
</longitude_deg> |
|
127 |
</coordinates> |
|
128 |
</coordinates_id> |
|
129 |
<country>$Country</country> |
|
130 |
<county>$County</county> |
|
131 |
<stateprovince>$State</stateprovince> |
|
132 |
</place> |
|
133 |
</matched_place_id> |
|
127 | 134 |
<stateprovince>$State</stateprovince> |
128 | 135 |
</place> |
129 |
</matched_place_id> |
|
130 |
<stateprovince>$State</stateprovince> |
|
131 |
</place> |
|
132 |
</place_id> |
|
133 |
</locationplace> |
|
134 |
<verbatimelevation>$Elevation</verbatimelevation> |
|
135 |
</location> |
|
136 |
</place_id> |
|
137 |
</locationplace> |
|
138 |
<verbatimelevation>$Elevation</verbatimelevation> |
|
139 |
</location> |
|
140 |
</path> |
|
141 |
</_simplifyPath> |
|
136 | 142 |
</path> |
137 |
</_simplifyPath>
|
|
143 |
</_setDefault>
|
|
138 | 144 |
</VegBIEN> |
139 | 145 |
Inserted 29 new rows into database |
Also available in: Unified diff
mappings/VegCore-VegBIEN.csv: Set the source_id col_default to the datasource name using the new _setDefault() built-in function and _env()