Project

General

Profile

« Previous | Next » 

Revision 4949

mappings/VegCore-VegBIEN.csv: Only use institutionCode+collectionCode+catalogNumber as the authorlocationcode (location-scoping ID) if there is actually a catalogNumber. Otherwise, the mapping process would attempt to create one location for each collection in the datasource, when there should be one location for each specimen.

View differences:

VegCore-VegBIEN.csv
5 5
locationID,"/location/authorlocationcode/_if[@name=""if locationID""]/cond/_exists",
6 6
fieldNumber,"/location/authorlocationcode/_if[@name=""if locationID""]/else",
7 7
occurrenceID,"/location/_if[@name=""if subplot""]/else/authorlocationcode",
8
institutionCode,"/location/_if[@name=""if subplot""]/else/authorlocationcode",
9
collectionCode,"/location/_if[@name=""if subplot""]/else/authorlocationcode",
10
collectionID,"/location/_if[@name=""if subplot""]/else/authorlocationcode",
8
catalogNumber,"/location/authorlocationcode/_if[@name=""if catalogNumber""]/cond/_exists",
9
institutionCode,"/location/authorlocationcode/_if[@name=""if catalogNumber""]/then",
10
collectionCode,"/location/authorlocationcode/_if[@name=""if catalogNumber""]/then",
11
collectionID,"/location/authorlocationcode/_if[@name=""if catalogNumber""]/then",
11 12
voucherType,"/location/authorlocationcode/_if[@name=""if indirect voucher""]/cond",
12 13
catalogNumber,"/location/authorlocationcode/_if[@name=""if indirect voucher""]/else",
13 14
locationID,"/location/_if[@name=""if subplot""]/else/sourceaccessioncode",

Also available in: Unified diff