Пример #1
0
    echo '<li><a href="' . $_SESSION['folderName'] . '/printingPlaces.kml">printingPlaces.kml</a></li>';
    echo '</ul>';
    echo '<p>Um diese Daten im DARIAH GeoBrowser zu visualisieren und die Visualisierung zu verlinken, speichern Sie die <a href="' . $_SESSION['folderName'] . '/printingPlaces.csv">CSV-Datei</a> auf Ihrer lokalen Festplatte ab.<br/>
			Dann gehen Sie zum <a href="http://geobrowser.de.dariah.eu/edit/" target="_blank">Datasheet Editor</a> und laden diese Datei mittels der Funktion &bdquo;import a local CSV file&rdquo; hoch.
			Sie haben anschlie&szlig;end die M&ouml;glichkeit, Ihre Daten einzusehen und gegebenefalls zu korrigieren.<br/>
			Mit dem Button &bdquo;Open Geo-Browser&rdquo; unten rechts gelangen Sie zur Kartenansicht. Die zugeh&ouml;rige Storage ID, eine 6-stellige Zahl, finden Sie rechts oben unter &bdquo;Magnetic Link&rdquo; und in der URL. Tragen Sie diese ID hier ein:
			<form class="form-horizontal" role="form" action="geoBrowser.php" method="post">
				<div class="form-group">
					<label class="control-label col-sm-2" for="heading">GeoBrowser Storage ID</label>
					<div class="col-sm-6">
						<input type="text" class="form-control" name="storageID" pattern="[0-9]{4,8}" maxlength="8" required value="' . $valueID . '">
					</div>
				</div>
				<input type="hidden" name="storageIDPosted">
				<button type="submit" class="btn btn-default">Abschicken</button>
			</form>
			</p>';
} elseif ($test1 == 1 and $test2 == 1) {
    $catalogue = unserialize($_SESSION['catalogueObject']);
    $catalogue->GeoBrowserStorageID = $_POST['storageID'];
    $geoBrowserLink = makeGeoBrowserLink($_POST['storageID'], $catalogue->year);
    $_SESSION['catalogueObject'] = serialize($catalogue);
    $_SESSION['storageID'] = 1;
    echo '<p>Der <a href="' . $geoBrowserLink . '" target="_blank">Link zum DARIAH GeoBrowser</a> ist gespeichert.<br/>
			Weiter zur Anreicherung mit <a href="beacon.php">biographischen Links</a>.</p>';
}
?>
				
			</div>
		</body>
</html>
Пример #2
0
function makeHead($thisCatalogue, $navigation, $field)
{
    $fileName = fileNameTrans($thisCatalogue->fileName);
    if ($thisCatalogue->year) {
        $title = $thisCatalogue->heading . ' (' . $thisCatalogue->year . ')';
    } else {
        $title = $thisCatalogue->heading;
    }
    $metadata = displayCatalogueMetadata($thisCatalogue, $field);
    $classLi = 'download';
    if ($field == 'jqcloud' or $field == 'doughnut') {
        $classLi = 'active';
        $transcriptionLink = '';
    }
    $chart = '';
    if ($field == 'doughnut') {
        $chart = '
		<script type="text/javascript" src="chart.js"></script>';
    }
    $cloudEntry = '';
    if ($thisCatalogue->cloudFacets != array()) {
        $cloudEntry = '<li><a href="' . $fileName . '-wordCloud.html" title="Wortwolken">Word Clouds</a></li>';
    }
    $doughnutEntry = '';
    if ($thisCatalogue->doughnutFacets != array()) {
        $doughnutEntry = '<li><a href="' . $fileName . '-doughnut.html" title="Kreisdiagramme">Kreisdiagramme</a></li>';
    }
    $geoBrowserLink = makeGeoBrowserLink($thisCatalogue->GeoBrowserStorageID, $thisCatalogue->year);
    $frontMatter = '<!DOCTYPE html>
<html lang="en">
	<head>
		<title>' . $thisCatalogue->heading . '</title>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
		<script type="text/javascript" src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="proprietary.js"></script>' . $chart . '
		<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
		<link rel="stylesheet" href="proprietary.css">
	</head>
	<body onload="javascript:x = getNavBarHeight();scrollNav(x);">
		<div class="container">
		<div class="container-fluid">
			<h1>' . $title . '</h1>
			' . $metadata . '
		</div>
		<nav class="navbar navbar-default" data-spy="affix" data-offset-top="197">' . $navigation . '
			<ul class="nav navbar-nav navbar-right" style="padding-right:15px">
				<li class="' . $classLi . '">
					<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-picture"></span> Visualisierung<span class="caret"></span></a>
					<ul class="dropdown-menu">
						' . $cloudEntry . '
						' . $doughnutEntry . '				
						<li><a href="' . $geoBrowserLink . '" target="_blank" title="Druckorte in Kartenansicht">GeoBrowser</a></li>
					</ul>
				</li>
			</ul>
		</nav>
		<div class="container-fluid">';
    return $frontMatter;
}