Project

General

Profile

« Previous | Next » 

Revision 4058

mappings/DwC2-VegBIEN.specimens.csv: catalogNumber: Wrapped all mappings in direct voucher _if for mergability with VegCSV

View differences:

inputs/XAL/test/import.specimens.xml.ref
5 5
            <_merge>
6 6
                <1>$InstitutionCode</1>
7 7
                <2>$CollectionCode</2>
8
                <3>$CatalogNumber</3>
8
                <3><_if name="if indirect voucher"><else>$CatalogNumber</else></_if></3>
9 9
            </_merge>
10 10
        </authorlocationcode>
11 11
        <elevation>
inputs/XAL/maps/VegBIEN.specimens.csv
1 1
"XAL[DwC,darwin:]:/content/record/",VegBIEN:,Comments
2 2
InstitutionCode,/location/authorlocationcode/_merge/1,
3 3
CollectionCode,/location/authorlocationcode/_merge/2,
4
CatalogNumber,/location/authorlocationcode/_merge/3,
4
CatalogNumber,"/location/authorlocationcode/_merge/3/_if[@name=""if indirect voucher""]/else",
5 5
MaximumElevation,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
6 6
MinimumElevation,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
7 7
MinimumElevation,"/location/elevationrange/_range/from/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
inputs/NY/test/import.specimens.xml.ref
5 5
            <_merge>
6 6
                <1>$InstitutionCode</1>
7 7
                <2>$CollectionCode</2>
8
                <3>$CatalogNumber</3>
8
                <3><_if name="if indirect voucher"><else>$CatalogNumber</else></_if></3>
9 9
            </_merge>
10 10
        </authorlocationcode>
11 11
        <elevation>
inputs/NY/maps/VegBIEN.specimens.csv
1 1
NY[DwC],VegBIEN:,Comments
2 2
InstitutionCode,/location/authorlocationcode/_merge/1,
3 3
CollectionCode,/location/authorlocationcode/_merge/2,
4
CatalogNumber,/location/authorlocationcode/_merge/3,
4
CatalogNumber,"/location/authorlocationcode/_merge/3/_if[@name=""if indirect voucher""]/else",
5 5
MaximumElevation,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
6 6
MinimumElevation,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value/_nullIf:[null=.]/value",
7 7
MinimumElevation,"/location/elevationrange/_range/from/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value/_nullIf:[null=.]/value",
inputs/ACAD/test/import.specimens.xml.ref
5 5
            <_merge>
6 6
                <1>$institutionCode</1>
7 7
                <2>$collectionCode</2>
8
                <3>$catalogNumber</3>
8
                <3><_if name="if indirect voucher"><else>$catalogNumber</else></_if></3>
9 9
            </_merge>
10 10
        </authorlocationcode>
11 11
        <elevation>
inputs/ACAD/maps/VegBIEN.specimens.csv
1 1
ACAD[DwC],VegBIEN:,Comments
2 2
institutionCode,/location/authorlocationcode/_merge/1,
3 3
collectionCode,/location/authorlocationcode/_merge/2,
4
catalogNumber,/location/authorlocationcode/_merge/3,
4
catalogNumber,"/location/authorlocationcode/_merge/3/_if[@name=""if indirect voucher""]/else",
5 5
verbatimElevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
6 6
decimalLatitude,"/location/locationdetermination/latitude/_alt/1/_nullIf:[null=0,type=float]/value",
7 7
decimalLongitude,"/location/locationdetermination/longitude/_alt/1/_nullIf:[null=0,type=float]/value",
inputs/U/test/import.specimens.xml.ref
1 1
Put template:
2 2
<VegBIEN>
3 3
    <location id="-1">
4
        <authorlocationcode>$Barcode</authorlocationcode>
4
        <authorlocationcode><_if name="if indirect voucher"><else>$Barcode</else></_if></authorlocationcode>
5 5
        <locationdetermination>
6 6
            <latitude>
7 7
                <_nullIf>
inputs/U/maps/VegBIEN.specimens.csv
1 1
U[DwC],VegBIEN:,Comments
2
Barcode,/location/authorlocationcode/_merge/3,
2
Barcode,"/location/authorlocationcode/_merge/3/_if[@name=""if indirect voucher""]/else",
3 3
Lat,"/location/locationdetermination/latitude/_alt/1/_nullIf:[null=0,type=float]/value",
4 4
Long,"/location/locationdetermination/longitude/_alt/1/_nullIf:[null=0,type=float]/value",
5 5
Country,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
inputs/ARIZ/test/import.specimens.xml.ref
5 5
            <_merge>
6 6
                <1>$InstitutionCode</1>
7 7
                <2>$CollectionCode</2>
8
                <3>$CatalogNumberNumeric</3>
8
                <3><_if name="if indirect voucher"><else>$CatalogNumberNumeric</else></_if></3>
9 9
            </_merge>
10 10
        </authorlocationcode>
11 11
        <elevation>
inputs/ARIZ/maps/VegBIEN.specimens.csv
1 1
ARIZ[DwC],VegBIEN:,Comments
2 2
InstitutionCode,/location/authorlocationcode/_merge/1,
3 3
CollectionCode,/location/authorlocationcode/_merge/2,
4
CatalogNumberNumeric,/location/authorlocationcode/_merge/3,
4
CatalogNumberNumeric,"/location/authorlocationcode/_merge/3/_if[@name=""if indirect voucher""]/else",
5 5
VerbatimElevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
6 6
MaximumElevationInMeters,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
7 7
MinimumElevationInMeters,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
inputs/GBIF/test/import.specimens.xml.ref
5 5
            <_merge>
6 6
                <1>$InstitutionCD</1>
7 7
                <2>$CollectionCD</2>
8
                <3>$CatalogNO</3>
8
                <3><_if name="if indirect voucher"><else>$CatalogNO</else></_if></3>
9 9
            </_merge>
10 10
        </authorlocationcode>
11 11
        <elevation>
inputs/GBIF/maps/VegBIEN.specimens.csv
1 1
GBIF[DwC],VegBIEN:,Comments
2 2
InstitutionCD,/location/authorlocationcode/_merge/1,
3 3
CollectionCD,/location/authorlocationcode/_merge/2,
4
CatalogNO,/location/authorlocationcode/_merge/3,
4
CatalogNO,"/location/authorlocationcode/_merge/3/_if[@name=""if indirect voucher""]/else",
5 5
MaximumElevationInMeter,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
6 6
MinimumElevationInMeter,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
7 7
MinimumElevationInMeter,"/location/elevationrange/_range/from/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
inputs/NCU-NCSC/test/import.specimens.xml.ref
4 4
        <authorlocationcode>
5 5
            <_merge>
6 6
                <2>$SeriesName</2>
7
                <3>$Barcode</3>
7
                <3><_if name="if indirect voucher"><else>$Barcode</else></_if></3>
8 8
            </_merge>
9 9
        </authorlocationcode>
10 10
        <elevation>
inputs/NCU-NCSC/maps/VegBIEN.specimens.csv
1 1
NCU-NCSC[DwC],VegBIEN:,Comments
2 2
SeriesName,/location/authorlocationcode/_merge/2,
3
Barcode,/location/authorlocationcode/_merge/3,
3
Barcode,"/location/authorlocationcode/_merge/3/_if[@name=""if indirect voucher""]/else",
4 4
Elevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
5 5
Accuracy,/location/locationdetermination/coordsaccuracy/_noCV/value/_alt/1,
6 6
Lat (-=S),"/location/locationdetermination/latitude/_alt/2/_nullIf:[null=0,type=float]/value/_replace:[""\?$""=]/value",
inputs/SpeciesLink/test/import.specimens.xml.ref
18 18
                    </_merge>
19 19
                </2>
20 20
                <3>
21
                    <_merge>
22
                        <0>$dwc_dwcore_CatalogNumber</0>
23
                        <1>$conceptual_darwin_2003_1_0_CatalogNumber</1>
24
                        <2>$dwc_terms_catalogNumber</2>
25
                    </_merge>
21
                    <_if name="if indirect voucher">
22
                        <else>
23
                            <_merge>
24
                                <0>$dwc_dwcore_CatalogNumber</0>
25
                                <1>$conceptual_darwin_2003_1_0_CatalogNumber</1>
26
                                <2>$dwc_terms_catalogNumber</2>
27
                            </_merge>
28
                        </else>
29
                    </_if>
26 30
                </3>
27 31
            </_merge>
28 32
        </authorlocationcode>
inputs/SpeciesLink/maps/VegBIEN.specimens.csv
3 3
institutionCode,/location/authorlocationcode/_merge/1,
4 4
CollectionCode,/location/authorlocationcode/_merge/2,
5 5
collectionCode,/location/authorlocationcode/_merge/2,
6
CatalogNumber,/location/authorlocationcode/_merge/3,
7
catalogNumber,/location/authorlocationcode/_merge/3,
6
CatalogNumber,"/location/authorlocationcode/_merge/3/_if[@name=""if indirect voucher""]/else",
7
catalogNumber,"/location/authorlocationcode/_merge/3/_if[@name=""if indirect voucher""]/else",
8 8
MaximumElevation,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
9 9
MaximumElevationInMeters,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
10 10
maximumElevationInMeters,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
inputs/MO/test/import.specimens.xml.ref
5 5
            <_merge>
6 6
                <1>$InstitutionCode</1>
7 7
                <2>$CollectionCode</2>
8
                <3>$CatalogNumber</3>
8
                <3><_if name="if indirect voucher"><else>$CatalogNumber</else></_if></3>
9 9
            </_merge>
10 10
        </authorlocationcode>
11 11
        <elevation>
inputs/MO/maps/VegBIEN.specimens.csv
1 1
MO[DwC],VegBIEN:,Comments
2 2
InstitutionCode,/location/authorlocationcode/_merge/1,
3 3
CollectionCode,/location/authorlocationcode/_merge/2,
4
CatalogNumber,/location/authorlocationcode/_merge/3,
4
CatalogNumber,"/location/authorlocationcode/_merge/3/_if[@name=""if indirect voucher""]/else",
5 5
MaximumElevation,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
6 6
MinimumElevation,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
7 7
MinimumElevation,"/location/elevationrange/_range/from/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
inputs/QMOR/test/import.specimens.xml.ref
5 5
            <_merge>
6 6
                <1>$institutionCode</1>
7 7
                <2>$collectionCode</2>
8
                <3>$catalogNumber</3>
8
                <3><_if name="if indirect voucher"><else>$catalogNumber</else></_if></3>
9 9
            </_merge>
10 10
        </authorlocationcode>
11 11
        <elevation>
inputs/QMOR/maps/VegBIEN.specimens.csv
1 1
QMOR[DwC],VegBIEN:,Comments
2 2
institutionCode,/location/authorlocationcode/_merge/1,
3 3
collectionCode,/location/authorlocationcode/_merge/2,
4
catalogNumber,/location/authorlocationcode/_merge/3,
4
catalogNumber,"/location/authorlocationcode/_merge/3/_if[@name=""if indirect voucher""]/else",
5 5
verbatimElevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
6 6
maximumElevationInMeters,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
7 7
minimumElevationInMeters,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
mappings/DwC2-VegBIEN.specimens.csv
1 1
DwC,VegBIEN:,Comments
2 2
institutionCode,/location/authorlocationcode/_merge/1,
3 3
collectionCode,/location/authorlocationcode/_merge/2,
4
catalogNumber,/location/authorlocationcode/_merge/3,
4
catalogNumber,"/location/authorlocationcode/_merge/3/_if[@name=""if indirect voucher""]/else",
5 5
verbatimElevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
6 6
maximumElevationInMeters,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
7 7
minimumElevationInMeters,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
mappings/for_review/DwC2-VegBIEN.specimens.csv
1 1
DwC,VegBIEN:,Comments
2 2
institutionCode,//location/authorlocationcode,
3 3
collectionCode,//location/authorlocationcode,
4
catalogNumber,//location/authorlocationcode,
4
catalogNumber,"//location/authorlocationcode/_if[@name=""if indirect voucher""]/else",
5 5
verbatimElevation,//location/elevation,
6 6
maximumElevationInMeters,//location/elevation,
7 7
minimumElevationInMeters,//location/elevation,
mappings/DwC-VegBIEN.specimens.csv
3 3
institutionCode,/location/authorlocationcode/_merge/1,
4 4
CollectionCode,/location/authorlocationcode/_merge/2,
5 5
collectionCode,/location/authorlocationcode/_merge/2,
6
CatalogNumber,/location/authorlocationcode/_merge/3,
7
catalogNumber,/location/authorlocationcode/_merge/3,
6
CatalogNumber,"/location/authorlocationcode/_merge/3/_if[@name=""if indirect voucher""]/else",
7
catalogNumber,"/location/authorlocationcode/_merge/3/_if[@name=""if indirect voucher""]/else",
8 8
VerbatimElevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
9 9
verbatimElevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
10 10
MaximumElevation,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
mappings/DwC.cs-VegBIEN.specimens.csv
1 1
DwC,VegBIEN:,Comments
2 2
institutionCode,/location/authorlocationcode/_merge/1,
3 3
collectionCode,/location/authorlocationcode/_merge/2,
4
catalogNumber,/location/authorlocationcode/_merge/3,
4
catalogNumber,"/location/authorlocationcode/_merge/3/_if[@name=""if indirect voucher""]/else",
5 5
verbatimElevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
6 6
maximumElevation,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
7 7
maximumElevationInMeters,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",

Also available in: Unified diff