$navigation = makeNavigation($thisCatalogue->heading, $tocs, $facet); $content = makeHead($thisCatalogue, $navigation, $facet); $content .= makeList($structure, $thisCatalogue); $content .= $foot; $fileName = fileNameTrans($folderName . '/' . $thisCatalogue->heading) . '-' . $facet . '.html'; $datei = fopen($fileName, "w"); fwrite($datei, $content, 3000000); fclose($datei); $count++; } unset($structures); // Erzeugen der Seite mit den Word Clouds $navigation = makeNavigation($thisCatalogue->heading, $tocs, 'jqcloud'); $content = makeHead($thisCatalogue, $navigation, 'jqcloud'); $content .= makeCloudPageContent($data, $facets, $folderName); $content .= $foot; $fileName = fileNameTrans($folderName . '/' . $thisCatalogue->heading) . '-wordCloud.html'; $datei = fopen($fileName, "w"); fwrite($datei, $content, 3000000); fclose($datei); // Erzeugen der Seite mit den Doughnut Charts $navigation = makeNavigation($thisCatalogue->heading, $tocs, 'doughnut'); $content = makeHead($thisCatalogue, $navigation, 'doughnut'); $content .= makeDoughnutPageContent($data, $facets, $folderName); $content .= $foot; $fileName = fileNameTrans($folderName . '/' . $thisCatalogue->heading) . '-doughnut.html'; $datei = fopen($fileName, "w"); fwrite($datei, $content, 3000000); fclose($datei); // Lösche die von storeBeacon erzeugte temporäre Datei //unlink($folderName.'/beaconStore-'.$thisCatalogue->key);
$content = makeHead($catalogue, $navigation, 'jqcloud'); $content .= makeCloudPageContent($data, $catalogue->cloudFacets, $catalogue->fileName); $content .= $foot; $fileName = fileNameTrans($_SESSION['folderName'] . '/' . $catalogue->fileName) . '-wordCloud.html'; $datei = fopen($fileName, "w"); fwrite($datei, $content, 3000000); fclose($datei); if (file_exists($fileName)) { echo 'Datei ' . $fileName . ' wurde erstellt.<br/>'; } } // Erzeugen der Seite mit den Doughnut Charts if ($catalogue->doughnutFacets != array()) { $navigation = makeNavigation($catalogue->fileName, $tocs, 'doughnut'); $content = makeHead($catalogue, $navigation, 'doughnut'); $content .= makeDoughnutPageContent($data, $catalogue->doughnutFacets, $_SESSION['folderName']); $content .= $foot; $fileName = fileNameTrans($_SESSION['folderName'] . '/' . $catalogue->fileName) . '-doughnut.html'; $datei = fopen($fileName, "w"); fwrite($datei, $content, 3000000); fclose($datei); if (file_exists($fileName)) { echo 'Datei ' . $fileName . ' wurde erstellt.<br/> '; } } zipFolderContent($_SESSION['folderName'], $catalogue->fileName); if (file_exists($_SESSION['folderName'] . '/' . $catalogue->fileName . '.zip')) { echo 'Zip-Archiv ' . $_SESSION['folderName'] . '/' . $catalogue->fileName . '.zip wurde erstellt.<br/>'; } echo '</p>';