Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<!-- Copyright (c) 2011 Leibniz Institute of Plant Genetics and Crop Plant 
	Research (IPK), Gatersleben, Germany. All rights reserved. This program and 
	the accompanying materials are made available under the terms of the GNU 
	Lesser Public License v2.1 which accompanies this distribution, and is available 
	at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html Contributors: Leibniz 
	Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany 
	- initial API and implementation -->
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Metadata - $entity.getName()</title>
	</head>
	<body marginwidth="50" marginheight="10">

		#parse("de/ipk_gatersleben/bit/bi/edal/primary_data/top.xml")

		<p>
			<table cellpadding="2" width="100%">
				<tr>
					<td align="left">
						<h3>
							#if ($entity.isDirectory())
							Data Collection Description
							#else
							Data File Description
							#end
						</h3>
					</td>
					<td align="right">
						<font color="red">(always quote citation when using data !)</font>
					</td>
				</tr>
			</table>
			<hr />
			<table cellpadding="2" width="100%">
				<tr>
					<td align="left" width="5%">
						<b>
							<font size="3">Citation:</font>
						</b>
					</td>
					<td align="left">
						$version.getMetaData().toString();
					</td>
				</tr>
				<tr>
					<td align="left" width="5%">
						<b>
							<font size="3">Abstract:</font>
						</b>
					</td>
					<td align="left">$version.getMetaData().getElementValue($description)
					</td>
				</tr>
			</table>
		</p>

		<a href="$entity.getCurrentVersion().getURL()">$entity.getCurrentVersion().getURL()</a>
		<p />
		<b>PersistentIdentifiers:</b>
		<br />
		#foreach( $element in
		$entity.getCurrentVersion().getPublicReferences())
		<b>$element.getIdentifierType():</b>
		$element.getAssignedID()
		<br />
		#end

		<h3>Path : $entity.getPath()</h3>

		<p>
			<!-- <h3>Version</h3> <hr /> -->
			<table cellpadding="2" width="55%">
				<tr>
					<td align="left" width="1%">
						<b>
							<font size="3">Revision:</font>
						</b>
					</td>
					<td align="left" width="1%">$version.getRevision()
					</td>
					<td align="left" width="1%">
						<b>
							<font size="3">CreationDate:</font>
						</b>
					</td>
					<td align="left" width="10%">$version.getCreationDate().getTime()
					</td>
					<td align="left" width="1%">
						<b>
							<font size="3">RevisionDate:</font>
						</b>
					</td>
					<td align="left" width="10%">$version.getRevisionDate().getTime()
					</td>
				</tr>
			</table>
		</p>
		<h3>Meta Data</h3>
		<hr />
		<table cellpadding="2" width="100%">
			#foreach( $element in $allElements)
			#if($foreach.count % 2 != 0)
			<tr>
				<td>
					<font size="3">
						<a style="text-decoration:none;"
							href="http://purl.org/dc/elements/1.1/$element.name().toLowerCase()">$element.name():</a>
					</font>
				</td>
				<td>
					$version.getMetaData().getElementValue($element).toHTML()
				</td>
				#else
				<td>
					<font size="3">
						<a style="text-decoration:none;"
							href="http://purl.org/dc/elements/1.1/$element.name().toLowerCase()">$element.name():</a>
					</font>
				</td>
				<td>
					$version.getMetaData().getElementValue($element).toHTML()
				</td>
			</tr>
			#end
			#end
		</table>
	</body>
</html>
New to GrepCode? Check out our FAQ X