Skip to content

Commit

Permalink
Occurrence Publishing
Browse files Browse the repository at this point in the history
- Extend documentation detailing accepted variable wtihin the DWCA web service handler
  • Loading branch information
egbot committed Feb 7, 2020
1 parent 5ed6549 commit 3cf751a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
3 changes: 1 addition & 2 deletions classes/DwcArchiverOccurrence.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ private static function trimOccurrenceBySchemaType($occurArr, $schemaType, $exte
elseif($schemaType == 'symbiota'){
$trimArr = array();
if(!$extended){
$trimArr = array('collectionID','rights','rightsHolder','accessRights','genericcolumn1','genericcolumn2',
'storageLocation','observerUid','processingStatus','duplicateQuantity','dateEntered','dateLastModified');
$trimArr = array('collectionID','rights','rightsHolder','accessRights','storageLocation','observerUid','processingStatus','duplicateQuantity','dateEntered','dateLastModified');
}
$retArr = array_diff_key($occurArr,array_flip($trimArr));
}
Expand Down
22 changes: 14 additions & 8 deletions webservices/dwc/dwcapubhandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@
* Variables:
* collid (default: 0 [all collections]): PK for targeted collection. More than one codes can be supplied by separating them commas (e.g. collid=2,3,77)
* cond: search variable conditions to limit return based on the indexed Darwin Core fields
* Format: cond=<field1>-<optional operator>:<value1>;<field2>-<optional operator>:<value2>
* Fields allowed: catalognumber, othercatalognumbers, occurrenceid, family, sciname, country, stateprovince, county, municipality, recordedby, recordnumber, eventdate, decimallatitude, decimallongitude, minimumelevationinmeters, maximumelevationinmeters, processingstatus, datelastmodified, dateentered
* Optional operators: EQUALS, NULL, NOTNULL, START, LIKE, LESSTHAN, GREATERTHAN
* Note the dash separating the field and operator; operator is not case specific
* Multiple conditions can be supplied separated by semicolons
* Multiple values can be supplied is separated by commas
* usethes (0 or 1, default: 0): when searching on a taxonomic name, setting usethes to 1 will run search term through the taxonomic thesaurus to include synonym within the search
* Occurrence record return limited to 1,000,000 records
* Format: cond=<field1>-<optional operator>:<value1>;<field2>-<optional operator>:<value2>
* Fields allowed: catalognumber, othercatalognumbers, occurrenceid, family, sciname, country, stateprovince, county, municipality, recordedby, recordnumber, eventdate, decimallatitude, decimallongitude, minimumelevationinmeters, maximumelevationinmeters, processingstatus, datelastmodified, dateentered
* Optional operators: EQUALS, NULL, NOTNULL, START, LIKE, LESSTHAN, GREATERTHAN
* Note the dash separating the field and operator; operator is not case specific
* Multiple conditions can be supplied separated by semicolons
* Multiple values can be supplied separated by commas
* colltype (specimens [default], observations): limit output to specimens or observation projects
* usethes (0 [default] or 1): when searching on a taxonomic name, setting usethes to 1 will run search term through the taxonomic thesaurus to include synonym within the search
* schema (dwc [default], symbiota): schema type
* extended (0 [default], 1): true outputs extended data fields such as: collectionID,rights fields, storageLocation, observerUid, processingStatus, duplicateQuantity, dateEntered, dateLastModified
* imgs (0, 1 [default]): Output image URLs within an media extension file
* dets (0, 1 [default]): Output determination history within an identification extension file
* attr (0 [default], 1): Output occurrence attribute values within a MeasurementOrFact extension file
*
* Return: Darwin Core Archive of matching occurrences, associated images, identification history, and other associated data extensions
* Occurrence record return limited to 1,000,000 records
*
* Examples:
*
Expand Down

0 comments on commit 3cf751a

Please sign in to comment.