<?php include_once '../../config/symbini.php'; include_once $serverRoot . '/classes/OccurrenceEditorManager.php'; header("Content-Type: text/html; charset=" . $charset); if (!$SYMB_UID) { header('Location: ../../profile/index.php?refurl=../collections/editor/batchdeterminations.php?' . $_SERVER['QUERY_STRING']); } $collid = $_REQUEST["collid"]; $tabTarget = array_key_exists('tabtarget', $_REQUEST) ? $_REQUEST['tabtarget'] : 0; $formSubmit = array_key_exists('formsubmit', $_POST) ? $_POST['formsubmit'] : ''; $occManager = new OccurrenceEditorDeterminations(); $occManager->setCollId($collid); $occManager->getCollMap(); $isEditor = 0; $catTBody = ''; $nomTBody = ''; $catArr = array(); $jsonCatArr = ''; $occArr = array(); if ($isAdmin || array_key_exists("CollAdmin", $userRights) && in_array($collid, $userRights["CollAdmin"])) { $isEditor = 1; } elseif (array_key_exists("CollEditor", $userRights) && in_array($collid, $userRights["CollEditor"])) { $isEditor = 1; } if ($isEditor) { if ($formSubmit == 'Add New Determinations') { $occidArr = $_REQUEST['occid']; $occStr = implode(",", $occidArr); $catArr = $occManager->getCatNumArr($occStr); $jsonCatArr = json_encode($catArr);
include_once '../../../config/symbini.php'; include_once $serverRoot . '/classes/OccurrenceEditorManager.php'; header("Content-Type: text/html; charset=" . $charset); $occId = $_GET['occid']; $occIndex = $_GET['occindex']; $identBy = $_GET['identby']; $dateIdent = $_GET['dateident']; $sciName = $_GET['sciname']; $crowdSourceMode = $_GET['csmode']; $editMode = $_GET['em']; $annotatorname = $_GET['annotatorname']; $annotatoremail = $_GET['annotatoremail']; $catalognumber = $_GET['catalognumber']; $institutioncode = $_GET['institutioncode']; $occManager = new OccurrenceEditorDeterminations(); $occManager->setOccId($occId); $detArr = $occManager->getDetMap($identBy, $dateIdent, $sciName); $idRanking = $occManager->getIdentificationRanking(); $specImgArr = $occManager->getImageMap(); // find out if there are images in order to show/hide the button to display/hide images. ?> <div id="determdiv" style="width:795px;"> <div style="margin:15px 0px 40px 15px;"> <div> <b><u>Identification Confidence Ranking</u></b> <?php if ($editMode < 3) { ?> <a href="#" title="Modify current identification ranking" onclick="toggle('idrankeditdiv');toggle('idrankdiv');return false;"> <img src="../../images/edit.png" style="border:0px;width:12px;" />
<?php include_once '../../../config/symbini.php'; include_once $serverRoot . '/classes/OccurrenceEditorManager.php'; $collid = array_key_exists("collid", $_REQUEST) ? $_REQUEST["collid"] : 0; $catNum = array_key_exists("catalognumber", $_REQUEST) ? $_REQUEST["catalognumber"] : ''; $sciName = array_key_exists("sciname", $_REQUEST) ? $_REQUEST["sciname"] : ''; $occManager = new OccurrenceEditorDeterminations(); $recordListHtml = ''; if ($collid) { $recordListHtml = $occManager->getBulkDetRows($collid, $catNum, $sciName, ''); } echo $recordListHtml;
if ($status) { $loanId = 0; } } elseif ($formSubmit == 'Delete Exchange') { $status = $loanManager->deleteExchange($exchangeId); if ($status) { $exchangeId = 0; } } elseif ($formSubmit == 'Save Incoming') { $statusStr = $loanManager->editLoanIn($_POST); $loanType = 'in'; } elseif ($formSubmit == 'Perform Action') { $statusStr = $loanManager->editSpecimen($_REQUEST); } elseif ($formSubmit == 'Add New Determinations') { include_once $serverRoot . '/classes/OccurrenceEditorManager.php'; $occManager = new OccurrenceEditorDeterminations(); $occidArr = $_REQUEST['occid']; foreach ($occidArr as $k) { $occManager->setOccId($k); $occManager->addDetermination($_REQUEST, $isEditor); } } } } $loanOutList = $loanManager->getLoanOutList($searchTerm, $displayAll); $loansOnWay = $loanManager->getLoanOnWayList(); $loanInList = $loanManager->getLoanInList($searchTerm, $displayAll); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php