Project

General

Profile

« Previous | Next » 

Revision 4045

mappings/VegCSV-VegBIEN.specimens.csv: catalogNumber: Moved direct/indirect voucher _ifs inwards to wrap just the value of catalognumber_dwc, not the catalognumber_dwc field node, so that a future SQL function implementation of _if only needs to concern itself with returning one value or another, not with handling XML subtrees. The previous moving of the _ifs in r3942 was intended to effect this, but the _ifs weren't moved in far enough to wrap just the value.

View differences:

VegCSV-VegBIEN.specimens.csv
52 52
fieldNotes,//aggregateoccurrence/notes,
53 53
recordNumber,//plantobservation/authorplantcode,
54 54
occurrenceID,//plantobservation/sourceaccessioncode,
55
voucherType,"//plantobservation/specimenreplicate/_if[@name=""if indirect voucher""]/cond",
56
catalogNumber,"//plantobservation/specimenreplicate/_if[@name=""if indirect voucher""]/else/catalognumber_dwc",
55
voucherType,"//specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/cond",
56
catalogNumber,"//specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
57 57
stemCount,//plantobservation/stemcount,
58 58
basalDiameter,//stemobservation/basaldiameter,
59 59
canopyForm,"//stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyForm]]/definedvalue",
......
91 91
identificationQualifier,//taxonoccurrence/taxondetermination[role=identifier]/taxonfit,
92 92
recordedBy.givenName,//taxonoccurrence/verbatimcollectorname,
93 93
recordedBy.surName,//taxonoccurrence/verbatimcollectorname,
94
voucherType,"//*_id/specimenreplicate/_if[@name=""if indirect voucher""]/cond",
95
catalogNumber,"//*_id/specimenreplicate/_if[@name=""if indirect voucher""]/then/catalognumber_dwc",
94
voucherType,"//specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/cond",
95
catalogNumber,"//specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then",
96 96
temperature,//locationevent/temperature,
97 97
maximumDepthInMeters,//locationevent/waterdepth,
98 98
minimumDepthInMeters,//locationevent/waterdepth,

Also available in: Unified diff