Skip to content

Commit 9b9e1eb

Browse files
committed
conditional statement for bloodfed individuals
addresses #624
1 parent c3a7143 commit 9b9e1eb

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

neon/classes/OccurrenceHarvester.php

+20-1
Original file line numberDiff line numberDiff line change
@@ -1102,9 +1102,28 @@ private function applyCustomAdjustments(&$dwcArr){
11021102
$dwcArr['lifeStage'] = 'Nymph';
11031103
$dwcArr['sex'] = '';
11041104
}
1105-
elseif(in_array($dwcArr['collid'], array(29,39,44,63,65,66,71,75,82,90,91,95))) {
1105+
elseif(in_array($dwcArr['collid'], array(29,39,44,63,65,66,71,82,90,91,95))) {
11061106
$dwcArr['individualCount'] = 1;
11071107
}
1108+
elseif($dwcArr['collid']== 56) {
1109+
// Bulk identified mosquitos
1110+
if (!empty($dwcArr['eventDate'])) {
1111+
if($dwcArr['eventDate'] >= '2025-01-01'){
1112+
if (!empty($dwcArr['preparations'])) {
1113+
$dwcArr['preparations'] .= '; bloodfed individuals removed';
1114+
} else {
1115+
$dwcArr['preparations'] = 'bloodfed individuals removed';
1116+
}
1117+
}
1118+
elseif($dwcArr['eventDate'] < '2025-01-01'){
1119+
if (!empty($dwcArr['preparations'])) {
1120+
$dwcArr['preparations'] .= '; may contain bloodfed individuals';
1121+
} else {
1122+
$dwcArr['preparations'] = 'may contain bloodfed individuals';
1123+
}
1124+
}
1125+
}
1126+
}
11081127
}
11091128

11101129
private function protectTaxonomyTest($idArr){

0 commit comments

Comments
 (0)