Revision 90
Added by Aaron Marcuse-Kubitza about 13 years ago
scripts/lib/xml_func.py | ||
---|---|---|
19 | 19 |
|
20 | 20 |
def date(items): |
21 | 21 |
items = dict(items) |
22 |
return ' '.join([items['year'], items.get('month', '1'),
|
|
22 |
return '-'.join([items['year'], items.get('month', '1'),
|
|
23 | 23 |
items.get('day', '1')]) |
24 | 24 |
|
25 | 25 |
def name(items): |
scripts/util/NYSpecimenDataAmericas.xml | ||
---|---|---|
101 | 101 |
</taxonNameUsageConcepts> |
102 | 102 |
<parties> |
103 | 103 |
<party id="0"> |
104 |
<organizationName> |
|
105 |
<_name> |
|
106 |
<firstName>NY</firstName> |
|
107 |
<lastName>Herbarium</lastName> |
|
108 |
</_name> |
|
109 |
</organizationName> |
|
104 |
<organizationName>NY Herbarium</organizationName> |
|
110 | 105 |
</party> |
111 | 106 |
<party id="1"> |
112 | 107 |
<individualName> |
... | ... | |
115 | 110 |
</individualName> |
116 | 111 |
</party> |
117 | 112 |
<party id="2"> |
118 |
<organizationName> |
|
119 |
<_name> |
|
120 |
<firstName>NY</firstName> |
|
121 |
<lastName>Herbarium</lastName> |
|
122 |
</_name> |
|
123 |
</organizationName> |
|
113 |
<organizationName>NY Herbarium</organizationName> |
|
124 | 114 |
</party> |
125 | 115 |
<party id="3"> |
126 | 116 |
<individualName> |
scripts/util/accept_test_output | ||
---|---|---|
6 | 6 |
cd "$selfDir" |
7 | 7 |
|
8 | 8 |
file="$(basename -- "$1")" |
9 |
cp -p "$file" "test_output/$file" |
|
9 |
cp -p "test_output/$file" "$file" |
Also available in: Unified diff
Fixed name XML function. Fixed accept_test_output.