if (!$collId) { $collId = $occArr['collid']; } $genticArr = $indManager->getGeneticArr(); $statusStr = ''; $displayLocality = false; $isEditor = false; // If other than HTML was requested, return just that content. $done = FALSE; $accept = RdfUtility::parseHTTPAcceptHeader($_SERVER['HTTP_ACCEPT']); while (!$done && (list($key, $mediarange) = each($accept))) { if ($mediarange == 'text/turtle' || $format == 'turtle') { Header("Content-Type: text/turtle; charset=" . $CHARSET); $dwcManager = new DwcArchiverOccurrence(); $dwcManager->setCustomWhereSql(" o.occid = {$occid} "); echo $dwcManager->getAsTurtle(); $done = TRUE; } if ($mediarange == 'application/rdf+xml' || $format == 'rdf') { Header("Content-Type: application/rdf+xml; charset=" . $CHARSET); $dwcManager = new DwcArchiverOccurrence(); $dwcManager->setCustomWhereSql(" o.occid = {$occid} "); echo $dwcManager->getAsRdfXml(); $done = TRUE; } if ($mediarange == 'application/json' || $format == 'json') { Header("Content-Type: application/json; charset=" . $CHARSET); $dwcManager = new DwcArchiverOccurrence(); $dwcManager->setCustomWhereSql(" o.occid = {$occid} "); echo $dwcManager->getAsJson(); $done = TRUE;