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>MT</shortname></source></value> |
|
5 | 6 |
<path> |
6 |
<location> |
|
7 |
<authorlocationcode>$id</authorlocationcode> |
|
8 |
<locationevent> |
|
9 |
<taxonoccurrence> |
|
10 |
<aggregateoccurrence> |
|
11 |
<count>$individualCount</count> |
|
12 |
<plantobservation> |
|
13 |
<specimenreplicate> |
|
14 |
<collectioncode_dwc> |
|
15 |
<_join> |
|
16 |
<1>$collectionCode</1> |
|
17 |
<2>$collectionID</2> |
|
18 |
</_join> |
|
19 |
</collectioncode_dwc> |
|
20 |
<institution_id> |
|
21 |
<sourcename> |
|
22 |
<matched_source_id><source><shortname>$institutionCode</shortname></source></matched_source_id> |
|
23 |
<name>$institutionCode</name> |
|
24 |
</sourcename> |
|
25 |
</institution_id> |
|
26 |
<sourceaccessioncode>$id</sourceaccessioncode> |
|
27 |
</specimenreplicate> |
|
28 |
</plantobservation> |
|
29 |
</aggregateoccurrence> |
|
30 |
<iscultivated> |
|
31 |
<_map> |
|
32 |
<cultivated>t</cultivated> |
|
33 |
<wild>f</wild> |
|
34 |
<*></*> |
|
35 |
<value>$establishmentMeans</value> |
|
36 |
</_map> |
|
37 |
</iscultivated> |
|
38 |
<isnative> |
|
39 |
<_map> |
|
40 |
<native>t</native> |
|
41 |
<exotic>f</exotic> |
|
42 |
<*></*> |
|
43 |
<value>$establishmentMeans</value> |
|
44 |
</_map> |
|
45 |
</isnative> |
|
46 |
<sourceaccessioncode>$id</sourceaccessioncode> |
|
47 |
<taxondetermination> |
|
48 |
<taxonverbatim_id> |
|
49 |
<taxonverbatim> |
|
50 |
<taxonlabel_id> |
|
51 |
<taxonlabel> |
|
52 |
<matched_label_id> |
|
7 |
<_simplifyPath> |
|
8 |
<next>parent_id</next> |
|
9 |
<path> |
|
10 |
<location> |
|
11 |
<authorlocationcode>$id</authorlocationcode> |
|
12 |
<locationevent> |
|
13 |
<taxonoccurrence> |
|
14 |
<aggregateoccurrence> |
|
15 |
<count>$individualCount</count> |
|
16 |
<plantobservation> |
|
17 |
<specimenreplicate> |
|
18 |
<collectioncode_dwc> |
|
19 |
<_join> |
|
20 |
<1>$collectionCode</1> |
|
21 |
<2>$collectionID</2> |
|
22 |
</_join> |
|
23 |
</collectioncode_dwc> |
|
24 |
<institution_id> |
|
25 |
<sourcename> |
|
26 |
<matched_source_id><source><shortname>$institutionCode</shortname></source></matched_source_id> |
|
27 |
<name>$institutionCode</name> |
|
28 |
</sourcename> |
|
29 |
</institution_id> |
|
30 |
<sourceaccessioncode>$id</sourceaccessioncode> |
|
31 |
</specimenreplicate> |
|
32 |
</plantobservation> |
|
33 |
</aggregateoccurrence> |
|
34 |
<iscultivated> |
|
35 |
<_map> |
|
36 |
<cultivated>t</cultivated> |
|
37 |
<wild>f</wild> |
|
38 |
<*></*> |
|
39 |
<value>$establishmentMeans</value> |
|
40 |
</_map> |
|
41 |
</iscultivated> |
|
42 |
<isnative> |
|
43 |
<_map> |
|
44 |
<native>t</native> |
|
45 |
<exotic>f</exotic> |
|
46 |
<*></*> |
|
47 |
<value>$establishmentMeans</value> |
|
48 |
</_map> |
|
49 |
</isnative> |
|
50 |
<sourceaccessioncode>$id</sourceaccessioncode> |
|
51 |
<taxondetermination> |
|
52 |
<taxonverbatim_id> |
|
53 |
<taxonverbatim> |
|
54 |
<taxonlabel_id> |
|
53 | 55 |
<taxonlabel> |
54 |
<source_id><source><shortname>TNRS</shortname></source></source_id>
|
|
55 |
<taxonomicname>
|
|
56 |
<_join_words>
|
|
57 |
<1><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></1>
|
|
58 |
<2>$genus</2>
|
|
59 |
</_join_words>
|
|
60 |
</taxonomicname>
|
|
61 |
</taxonlabel>
|
|
62 |
</matched_label_id>
|
|
63 |
<parent_id>
|
|
64 |
<taxonlabel>
|
|
56 |
<matched_label_id>
|
|
57 |
<taxonlabel>
|
|
58 |
<source_id><source><shortname>TNRS</shortname></source></source_id>
|
|
59 |
<taxonomicname>
|
|
60 |
<_join_words>
|
|
61 |
<1><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></1>
|
|
62 |
<2>$genus</2>
|
|
63 |
</_join_words>
|
|
64 |
</taxonomicname>
|
|
65 |
</taxonlabel>
|
|
66 |
</matched_label_id>
|
|
65 | 67 |
<parent_id> |
66 | 68 |
<taxonlabel> |
67 |
<rank>cultivar</rank> |
|
68 | 69 |
<parent_id> |
69 | 70 |
<taxonlabel> |
70 |
<rank>forma</rank>
|
|
71 |
<rank>cultivar</rank>
|
|
71 | 72 |
<parent_id> |
72 | 73 |
<taxonlabel> |
73 |
<rank>variety</rank>
|
|
74 |
<rank>forma</rank>
|
|
74 | 75 |
<parent_id> |
75 | 76 |
<taxonlabel> |
76 |
<rank>subspecies</rank>
|
|
77 |
<rank>variety</rank>
|
|
77 | 78 |
<parent_id> |
78 | 79 |
<taxonlabel> |
79 |
<rank>species</rank> |
|
80 |
<rank>subspecies</rank>
|
|
80 | 81 |
<parent_id> |
81 | 82 |
<taxonlabel> |
82 |
<rank>genus</rank> |
|
83 |
<taxonepithet>$genus</taxonepithet> |
|
83 |
<rank>species</rank> |
|
84 | 84 |
<parent_id> |
85 | 85 |
<taxonlabel> |
86 |
<rank>family</rank> |
|
87 |
<taxonepithet>$family</taxonepithet> |
|
86 |
<rank>genus</rank> |
|
87 |
<taxonepithet>$genus</taxonepithet> |
|
88 |
<parent_id> |
|
89 |
<taxonlabel> |
|
90 |
<rank>family</rank> |
|
91 |
<taxonepithet>$family</taxonepithet> |
|
92 |
</taxonlabel> |
|
93 |
</parent_id> |
|
88 | 94 |
</taxonlabel> |
89 | 95 |
</parent_id> |
90 | 96 |
</taxonlabel> |
... | ... | |
99 | 105 |
</parent_id> |
100 | 106 |
</taxonlabel> |
101 | 107 |
</parent_id> |
108 |
<taxonomicname> |
|
109 |
<_join_words> |
|
110 |
<1><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></1> |
|
111 |
<2>$genus</2> |
|
112 |
</_join_words> |
|
113 |
</taxonomicname> |
|
102 | 114 |
</taxonlabel> |
103 |
</parent_id> |
|
104 |
<taxonomicname> |
|
105 |
<_join_words> |
|
106 |
<1><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></1> |
|
107 |
<2>$genus</2> |
|
108 |
</_join_words> |
|
109 |
</taxonomicname> |
|
110 |
</taxonlabel> |
|
111 |
</taxonlabel_id> |
|
112 |
<family>$family</family> |
|
113 |
<genus>$genus</genus> |
|
114 |
</taxonverbatim> |
|
115 |
</taxonverbatim_id> |
|
116 |
</taxondetermination> |
|
117 |
</taxonoccurrence> |
|
118 |
</locationevent> |
|
119 |
<locationnarrative>$locality</locationnarrative> |
|
120 |
<locationplace><place_id><place><continent>$continent</continent></place></place_id></locationplace> |
|
121 |
</location> |
|
115 |
</taxonlabel_id> |
|
116 |
<family>$family</family> |
|
117 |
<genus>$genus</genus> |
|
118 |
</taxonverbatim> |
|
119 |
</taxonverbatim_id> |
|
120 |
</taxondetermination> |
|
121 |
</taxonoccurrence> |
|
122 |
</locationevent> |
|
123 |
<locationnarrative>$locality</locationnarrative> |
|
124 |
<locationplace><place_id><place><continent>$continent</continent></place></place_id></locationplace> |
|
125 |
</location> |
|
126 |
</path> |
|
127 |
</_simplifyPath> |
|
122 | 128 |
</path> |
123 |
</_simplifyPath>
|
|
129 |
</_setDefault>
|
|
124 | 130 |
</VegBIEN> |
125 | 131 |
Inserted 26 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()