';
$xsl = new DOMDocument ();
$xslsequence = new DOMDocument ();
$xsltissue = new DOMDocument ();
$xslTab = new DOMDocument ();
$xslHeader = new DOMDocument ();
$xslspecimen = new DOMDocument ();
$noHeader = true;
$Dataset="";
if (! isset ( $QueryForTissueTab )) {
$QueryForTissueTab = "";
}
if (! isset ( $QueryForCultureTab )) {
$QueryForCultureTab = "";
}
if (! isset ( $QueryForEnviroTab )) {
$QueryForEnviroTab = "";
}
if (! isset ( $QueryForSpecimenTab )) {
$QueryForSpecimenTab = "";
}
if (! isset ( $QueryForSpecimenTab2 )) {
$QueryForSpecimenTab2 = "";
}
if (! isset ( $QueryForMultimediaTab )) {
$QueryForMultimediaTab = $multimedia;
}
if (! isset ( $DNAcontent )) {
$DNAcontent = "";
}
$otherDNA = [ ];
$otherTissue = [ ];
$citesStatus = NULL;
$headerSample = "specimen";
if (isset ( $unitID2 )) {
$headerSample = "DNA";
foreach ( $unitID2 as $index => $associatedUnitID ) {
$associatedSampletype = $sampletype2 [$index];
if ($associatedSampletype == "unknown")
if ($headerSample != "specimen")
$headerSample = "unknown";
if ($associatedSampletype == "tissue")
if ($headerSample != "specimen")
$headerSample = "tissue";
if ($associatedSampletype == "culture")
if ($headerSample != "specimen")
$headerSample = "specimen";
if ($associatedSampletype == "specimen")
$headerSample = "specimen";
// echo "
";
if ($citesStatus == NULL) {
$citesStatus = $citesStatus2 [$index];
if ($citesStatus == "N/A") {
$citesStatus = NULL;
}
}
}
// if ($citesStatus != NULL || ! empty ( $loan )) {
// echo "
Loan information
";
// $dnaAvail = false;
// if (! empty ( $loan )) {
// foreach ( $loan as $k => $v ) {
// echo $v [0];
// if (strpos ( $v [0], "DNA" ) > 0)
// $dnaAvail = true;
// if ($v [1] == "OK" && $v [4] != "consumed") {
// if (substr ( $v [2], 0, 3 ) == "was")
// echo "
";
// else
// echo "
";
// } else
// echo "
";
// if (! empty ( $v [3] ))
// echo " Conditions: " . $v [3];
// if (! empty ( $v [4] ))
// echo " Disposition (quantity): " . $v [4];
// echo "
";
// }
// if (! $dnaAvail)
// echo " DNA available upon request
";
// }
// if ($citesStatus != NULL)
// echo "
This species or genus was found in the CITES list (UNEP-WCMC (Comps.) 2015.
// More details here";
// // echo "headerSample should be from : " . $headerSample . "
";
// echo "