From 3cf751ace5da900bbf2c6858d3d2ebd15188b171 Mon Sep 17 00:00:00 2001 From: Edward Gilbert Date: Fri, 7 Feb 2020 09:54:31 -0700 Subject: [PATCH] Occurrence Publishing - Extend documentation detailing accepted variable wtihin the DWCA web service handler --- classes/DwcArchiverOccurrence.php | 3 +-- webservices/dwc/dwcapubhandler.php | 22 ++++++++++++++-------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/classes/DwcArchiverOccurrence.php b/classes/DwcArchiverOccurrence.php index 107452f9f3..24712b654b 100644 --- a/classes/DwcArchiverOccurrence.php +++ b/classes/DwcArchiverOccurrence.php @@ -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)); } diff --git a/webservices/dwc/dwcapubhandler.php b/webservices/dwc/dwcapubhandler.php index 050192436e..bb96279466 100644 --- a/webservices/dwc/dwcapubhandler.php +++ b/webservices/dwc/dwcapubhandler.php @@ -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=-:;-: - * 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=-:;-: + * 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: *