<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:x="http://java.sun.com/jsf/composite/htmlx"
	xmlns:p="http://java.sun.com/jsf/composite/plato"
	template="/WEB-INF/templates/default.xhtml"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

	<ui:define name="title">SCAPE Planning Suite - #{viewWorkflow.currentView.name}</ui:define>
	<ui:define name="content">
		<h:outputStylesheet name="css/workflow.css" />
		<h:outputStylesheet name="css/tree.css" />
		<h1>
			<h:outputText
				value="Validate plan for #{validatePlan.plan.planProperties.name}" />
		</h1>
		<div class="wfstepinfo">
			<div class="wfdescription">
				In the final stage the whole documentation about the preservation
				plan has to be reviewed. The process of evaluating different
				alternatives and taking a decision for a recommended tool based on
				the evaluation and the creation of the preservation action plan, the
				documentation about the basic framework of the institution and
				parameters under which the plan is valid are verified again.
				<div class="more">
					<a href="../help/workflow.html#validate_plan" target="_blank">more</a>
				</div>
			</div>
		</div>

		<div class="center-position">
			<div>
				<small><h:outputText
						value="Report creation date: #{validatePlan.currentDate}" /></small>
			</div>


			<h:form>
				<div id="future_in_menu_bar"></div>
				<a4j:commandButton id="switch-changelog"
					value="#{validatePlan.displayChangelogs? 'Hide' : 'Show' } Changelogs"
					action="#{validatePlan.switchDisplayChangelogs}"
					render="switch-changelog, planChangelog, basisChangelog, collectionChangelog, samplesform, requirements, alternativesTable, experimentsTable, evalTransformForm"
					type="button" />
			</h:form>
		</div>
		<div class="component">
			<div class="label">
				<strong><h:outputLabel for="planname">Plan name</h:outputLabel></strong>
			</div>
			<div class="input">
				<h:outputText id="planname"
					value="#{validatePlan.plan.planProperties.name}" />
			</div>
		</div>
		<div class="component">
			<div class="label">
				<strong><h:outputLabel for="statename">Current state</h:outputLabel></strong>
			</div>
			<div class="input">
				<h:outputText id="statename" value="#{validatePlan.plan.stateName}" />
			</div>
		</div>
		<div class="component">
			<div class="label">
				<strong><h:outputLabel for="plandescription">Plan description</h:outputLabel></strong>
			</div>
			<div class="input">
				<h:outputText id="plandescription"
					value="#{validatePlan.plan.planProperties.description}" />
			</div>
		</div>
		<div class="component">
			<div class="label">
				<strong><h:outputLabel for="planners">Responsible planners</h:outputLabel></strong>
			</div>
			<div class="input">
				<h:outputText id="planners"
					value="#{validatePlan.plan.planProperties.author}" />
			</div>
		</div>
		<div class="component">
			<div class="label">
				<strong><h:outputLabel for="organization">Organization</h:outputLabel></strong>
			</div>
			<div class="input">
				<h:outputText id="organization"
					value="#{validatePlan.plan.planProperties.organization}" />
			</div>
		</div>

		<a4j:outputPanel layout="inline" id="planChangelog">
			<ui:include src="/plato/shared/changeLog.xhtml">
				<ui:param name="bean" value="#{validatePlan.plan.planProperties}" />
				<ui:param name="rendered" value="#{validatePlan.displayChangelogs}" />
			</ui:include>				
		</a4j:outputPanel>


		<ul class="anchors">
			<li class="anchors"><a href="#identification" class="anchors">Identification
					and Status</a></li>
			<li class="anchors"><a href="#institutionalsetting"
				class="anchors">Institutional Setting</a></li>
			<li class="anchors"><a href="#samplerecords" class="anchors">Collection
					and Sample Records</a></li>

			<li class="anchors"><a href="#requirements" class="anchors">Requirements</a></li>
			<li class="anchors"><a href="#alternatives" class="anchors">Alternatives</a></li>
			<li class="anchors"><a href="#gonogo" class="anchors">Go-Decision</a></li>
			<li class="anchors"><a href="#experiments" class="anchors">Experiments</a></li>
			<li class="anchors"><a href="#evaluation" class="anchors">Evaluation
					&amp; Transformation</a></li>
			<li class="anchors"><a href="#resultsMult" class="anchors">Results:
					Weighted multiplication</a></li>
			<li class="anchors"><a href="#resultsSum" class="anchors">Results:
					Weighted sum</a></li>
			<li class="anchors"><a href="#conclusion" class="anchors">Conclusion
					and Decision for Preservation Strategy</a></li>
			<li class="anchors"><a href="#execution" class="anchors">Preservation
					Action Plan</a></li>
			<li class="anchors"><a href="#costs" class="anchors">Costs</a></li>
			<li class="anchors"><a href="#monitoring" class="anchors">Monitoring</a></li>
			<li class="anchors"><a href="#approval" class="anchors">Approval</a></li>
		</ul>

		<a name="identification" />
		<div id="menu" class="menu-step">
			<h2>Identification and Status</h2>
		</div>


		<table class="text-table">
			<tr>
				<th width="20%"></th>
				<th width="80%"></th>
			</tr>



			<tr>
				<td style="padding-top: 10px"><b>Identification code<br />
				</b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode1"
						value="#{validatePlan.plan.projectBasis.identificationCode}" /></td>
			</tr>

			<tr>
				<td style="padding-top: 10px"><b>Planning purpose<br />
				</b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode4"
						value="#{validatePlan.plan.projectBasis.planningPurpose}" /></td>
			</tr>

			<tr>
				<td style="padding-top: 10px"><b>Plan relations</b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode10"
						value="#{validatePlan.plan.projectBasis.planRelations}" /></td>
			</tr>
			<tr>
				<td style="padding-top: 10px"><b>Triggers</b></td>
				<td style="padding-top: 10px">

					<table class="tableStyle">
						<tr>
							<th width="170px" class="tableStyle-header">Trigger</th>
							<th class="tableStyle-header">Description</th>
						</tr>

						<p:outputTrigger
							trigger="#{validatePlan.plan.projectBasis.triggers.newCollection}" />
						<p:outputTrigger
							trigger="#{validatePlan.plan.projectBasis.triggers.periodicReview}" />
						<p:outputTrigger
							trigger="#{validatePlan.plan.projectBasis.triggers.changedEnvironment}" />
						<p:outputTrigger
							trigger="#{validatePlan.plan.projectBasis.triggers.changedObjective}" />
						<p:outputTrigger
							trigger="#{validatePlan.plan.projectBasis.triggers.changedCollectionProfile}" />

					</table>

				</td>
			</tr>
		</table>

		<h:form id="policytreeform">
			<ui:include src="/plato/shared/policytree.xhtml">
				<ui:param name="treeHelper" value="#{validatePlan.policytreeHelper}" />
				<ui:param name="policyTree"
					value="#{validatePlan.plan.projectBasis.policyTree}" />
				<ui:param name="policyRoot" value="#{validatePlan.policyRoots}" />
			</ui:include>
		</h:form>
		<a4j:outputPanel layout="inline" id="basisChangelog">
			<ui:include src="/plato/shared/changeLog.xhtml">
				<ui:param name="bean" value="#{validatePlan.plan.projectBasis}" />
				<ui:param name="rendered" value="#{validatePlan.displayChangelogs}" />
			</ui:include>				
		</a4j:outputPanel>


		<a name="institutionalsetting" />
		<div id="menu" class="menu-step">
			<h2>Institutional Setting</h2>
		</div>


		<table>
			<tr>
				<td style="padding-top: 10px"><b>Document types<br /></b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode2"
						value="#{validatePlan.plan.projectBasis.documentTypes}" /></td>
			</tr>
			<tr>
				<td style="padding-top: 10px"><b>Mandate<br /></b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode3"
						value="#{validatePlan.plan.projectBasis.mandate}" /></td>
			</tr>

			<tr>
				<td style="padding-top: 10px"><b>Designated community<br /></b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode5"
						value="#{validatePlan.plan.projectBasis.designatedCommunity}" /></td>
			</tr>

			<tr>
				<td style="padding-top: 10px"><b>Applying policies</b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode6"
						value="#{validatePlan.plan.projectBasis.applyingPolicies}" /></td>
			</tr>
			<tr>
				<td style="padding-top: 10px"><b>Relevant organisational
						procedures and workflows</b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode7"
						value="#{validatePlan.plan.projectBasis.organisationalProcedures}" /></td>
			</tr>
			<tr>
				<td style="padding-top: 10px"><b>Contracts and agreements
						specifying preservation rights</b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode8"
						value="#{validatePlan.plan.projectBasis.preservationRights}" /></td>
			</tr>
			<tr>
				<td style="padding-top: 10px"><b>Reference to agreements of
						maintenance and access</b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode9"
						value="#{validatePlan.plan.projectBasis.referenceToAgreements}" /></td>
			</tr>

		</table>

		<!-- ********** sample records ********** -->

		<a name="samplerecords" />
		<div id="menu" class="menu-step">
			<h2>Collection and Sample Records</h2>
		</div>

		<table>
			<tr>
				<th width="20%"></th>
				<th width="80%"></th>
			</tr>
			<tr>
				<td style="padding-top: 10px"><b>Samples description:<br />
				</b></td>
				<td style="padding-top: 10px"><h:outputText
						id="idsamplesdescription"
						value="#{validatePlan.plan.sampleRecordsDefinition.samplesDescription}" /></td>
			</tr>
		</table>

		<h3>Collection profile</h3>
		<fieldset class="size-full">
			<div style="clear: both;">
				<strong><h:outputLabel for="collid">Collection ID:</h:outputLabel></strong>
				<h:outputText id="collid"
					value="#{validatePlan.plan.sampleRecordsDefinition.collectionProfile.collectionID}" />
			</div>
			<div style="clear: both;">
				<strong><h:outputLabel for="colldesc">Description:</h:outputLabel></strong>
				<h:outputText id="colldesc"
					value="#{validatePlan.plan.sampleRecordsDefinition.collectionProfile.description}" />
			</div>
			<div style="clear: both;">
				<strong><h:outputLabel for="colltype">Type of objects:</h:outputLabel></strong>
				<h:outputText id="colltype"
					value="#{validatePlan.plan.sampleRecordsDefinition.collectionProfile.typeOfObjects}" />
			</div>
			<div style="clear: both;">
				<strong><h:outputLabel for="collnum">Number of objects:</h:outputLabel></strong>
				<h:outputText id="collnum"
					value="#{validatePlan.plan.sampleRecordsDefinition.collectionProfile.numberOfObjects}" />
			</div>
			<div style="clear: both;">
				<strong><h:outputLabel for="growthrate">Expected growth rate:</h:outputLabel></strong>
				<h:outputText id="growthrate"
					value="#{validatePlan.plan.sampleRecordsDefinition.collectionProfile.expectedGrowthRate}" />
			</div>

			<a4j:outputPanel layout="inline" id="collectionChangelog">
				<ui:include src="/plato/shared/changeLog.xhtml">
					<ui:param name="bean" value="#{validatePlan.plan.sampleRecordsDefinition}" />
					<ui:param name="rendered" value="#{validatePlan.displayChangelogs}" />
				</ui:include>				
			</a4j:outputPanel>
		</fieldset>

		<h:form id="samplesform" class="center-position">
			<div>
				<h:dataTable
					value="#{validatePlan.plan.sampleRecordsDefinition.records}"
					var="sample" styleClass="tableStyle table-small"
					headerClass="tableStyle-header">

					<h:column>
						<f:facet name="header">
							<h:outputText value="Name" />
						</f:facet>
						<h:outputText rendered="#{not sample.dataExistent}"
							value="#{sample.fullname}" />
						<h:commandLink rendered="#{sample.dataExistent}"
							action="#{validatePlan.download(sample)}">
							<h:outputText value="#{sample.fullname}" />
						</h:commandLink>


					</h:column>

					<h:column>
						<f:facet name="header">
							Short name
						</f:facet>
						#{sample.shortName}
					</h:column>

					<h:column>
						<f:facet name="header">
							Description
						</f:facet>
						#{sample.description}
					</h:column>

					<h:column>
						<f:facet name="header">
							Original environment
						</f:facet>
						#{sample.originalTechnicalEnvironment}
					</h:column>

					<h:column>
						<f:facet name="header">
							Data
						</f:facet>
						<h:outputText value="No data"
							rendered="#{not sample.dataExistent}" />
						<h:outputText value="Data existent (#{sample.data.size}B)"
							rendered="#{sample.dataExistent}" />
					</h:column>

					<h:column>
						<f:facet name="header">
							Object-format
						</f:facet>
						<table class="margin-bottom-huge">
							<tr>
								<td width="100px"><strong>PUID:</strong></td>
								<td>#{sample.formatInfo.puid}</td>
							</tr>
							<tr>
								<td><strong>Name:</strong></td>
								<td>#{sample.formatInfo.name}</td>
							</tr>
							<tr>
								<td><strong>Version:</strong></td>
								<td>#{sample.formatInfo.version}</td>
							</tr>
							<tr>
								<td><strong>mime-type:</strong></td>
								<td>#{sample.formatInfo.mimeType}</td>
							</tr>
						</table>
					</h:column>

					<h:column rendered="#{validatePlan.displayChangelogs}">
						<f:facet name="header">
							Changelog
						</f:facet>
						<ui:include src="/plato/shared/changeLog.xhtml">
							<ui:param name="bean" value="#{sample}" />
							<ui:param name="rendered" value="#{validatePlan.displayChangelogs}" />
						</ui:include>				
						
					</h:column>

				</h:dataTable>
			</div>
		</h:form>

		<!-- ********** requirements ********** -->

		<a name="requirements" />

		<div id="menu" class="menu-step">
			<h2>Requirements &amp; Weighting</h2>
		</div>
		<a4j:outputPanel layout="block" styleClass="center-position"
			id="requirements">

			<p:treeSummary treeHelper="#{validatePlan.requirementstreeHelper}"
				rootNode="#{validatePlan.requirementsRoots}"
				displayChangelogs="#{validatePlan.displayChangelogs}"
				linktoResults="#{validatePlan.displayEvalTransform ? 'true' : ''}"
				toggleType="client" />
		</a4j:outputPanel>

		<!-- ********** alternatives ********** -->

		<a name="alternatives" />

		<div id="menu" class="menu-step">
			<h2>Alternatives</h2>
		</div>

		<div class="center-position">
			<strong><h:outputLabel for="alternativesDescription">Evaluation comments:</h:outputLabel></strong>
			<h:outputText id="alternativesDescription"
				value="#{validatePlan.plan.alternativesDefinition.description}" />
		</div>

		<h:dataTable id="alternativesTable"
			value="#{validatePlan.plan.alternativesDefinition.alternatives}"
			var="alt" class="tableStyle table-small"
			headerClass="tableStyle-header">

			<h:column>
				<f:facet name="header">
					Name
				</f:facet>
				<h:outputText value="#{alt.name}" class="size-max" />
			</h:column>

			<h:column>
				<f:facet name="header">
					Description
				</f:facet>
				#{alt.description}
			</h:column>

			<h:column>
				<f:facet name="header">
				Reason for considering
				</f:facet>
				#{alt.resourceDescription.reasonForConsidering}
			</h:column>

			<h:column>
				<f:facet name="header">
				Config settings
				</f:facet>
				#{alt.resourceDescription.configSettings}
			</h:column>

			<h:column>
				<f:facet name="header">Necessary resources
				</f:facet>
				#{alt.resourceDescription.necessaryResources}
			</h:column>

			<h:column rendered="#{validatePlan.displayChangelogs}">
				<f:facet name="header">
				Changelog
				</f:facet>
				<ui:include src="/plato/shared/changeLog.xhtml">
					<ui:param name="bean" value="#{alt}" />
					<ui:param name="rendered" value="#{validatePlan.displayChangelogs}" />
				</ui:include>				
			</h:column>
		</h:dataTable>
		<!-- ********** go-decisions ********** -->
		<!-- TODO "Alternatives in italics have been discarded when taking the go-decision" -->
		<a name="gonogo" />

		<div id="menu" class="menu-step">
			<h2>Go-Decision</h2>
		</div>

		<div class="center-position">
			<div style="clear: both;">
				<strong><h:outputLabel for="godecision">Decision:</h:outputLabel></strong>
				<h:outputText id="godecision"
					value="#{validatePlan.plan.decision.decision}" />
			</div>
			<div style="clear: both;">
				<strong><h:outputLabel for="goreason">Reason:</h:outputLabel></strong>
				<h:outputText id="goreason"
					value="#{validatePlan.plan.decision.reason}" />
			</div>
			<div style="clear: both;">
				<strong><h:outputLabel for="actionneeded">Action needed:</h:outputLabel></strong>
				<h:outputText id="actionneeded"
					value="#{validatePlan.plan.decision.actionNeeded}" />
			</div>
		</div>

		<!-- ********** experiments ********** -->

		<a name="experiments" />

		<div id="menu" class="menu-step">
			<h2>Experiments</h2>
		</div>

		<h:dataTable id="experimentsTable" class="tableStyle table-small"
			value="#{validatePlan.plan.alternativesDefinition.consideredAlternatives}"
			var="alt" headerClass="tableStyle-header">

			<h:column>
				<f:facet name="header">
					Alternative
				</f:facet>
				<h:outputText value="#{alt.name}" class="size-max" />
			</h:column>

			<h:column>
				<f:facet name="header">
					Experiment description
				</f:facet>
				#{alt.experiment.description}
			</h:column>

			<h:column>
				<f:facet name="header">
					Run description
				</f:facet>
				#{alt.experiment.detailedRunDescription}
			</h:column>

			<h:column>
				<f:facet name="header">
					Experiment data uploaded
				</f:facet>
				#{alt.experiment.recordUploaded ? 'Yes' : 'No' }
			</h:column>

			<h:column rendered="#{validatePlan.displayChangelogs}">
				<f:facet name="header">
					<h:outputText value="Changelog" />
				</f:facet>
				<ui:include src="/plato/shared/changeLog.xhtml">
					<ui:param name="bean" value="#{alt.experiment}" />
					<ui:param name="rendered" value="#{validatePlan.displayChangelogs}" />
				</ui:include>				

			</h:column>
		</h:dataTable>

		<!-- ********** evaluation ********** -->

		<a name="evaluation" />

		<div id="menu" class="menu-step">
			<h2>Evaluation &amp; Transformation</h2>
		</div>

		<div class="center-position">
			<h:form id="evalTransformForm">

				<a4j:commandButton
					value="#{validatePlan.displayEvalTransform? 'Hide' : 'Show'} Evaluation &amp; Transformation"
					action="#{validatePlan.switchDisplayEvalTransform}"
					render="evalTransformForm requirements weightedMulResults weightedSumResults" type="button" />

				<ui:fragment rendered="#{validatePlan.displayEvalTransform}">

					<ui:repeat value="#{validatePlan.leafBeans}" var="bean">
						<a name="results#{bean.leaf.id}" />
						<h3>
							#{bean.leaf.parent.name} > #{bean.leaf.name}
						</h3>

						<!-- TABLE LAYOUT! -->
						<table border="0">
							<tr>
								<td class="column-validation-results">
									<h4>Results</h4> <rich:dataTable
										value="#{validatePlan.plan.alternativesDefinition.consideredAlternatives}"
										var="alter"
										headerClass="margin-top-small margin-bottom-small margin-left-big margin-right-big border "
										columnClasses="margin-top-small margin-bottom-small margin-left-big margin-right-big ">
										<rich:column>
											<f:facet name="header">
												Alternatives
											</f:facet>
											#{alter.name}
										</rich:column>

										<rich:column rendered="#{bean.leaf.single}">
											<f:facet name="header">
												Result
											</f:facet>
											#{bean.leaf.valueMap[alter.name].list[0].value}
										</rich:column>

										<c:forEach
											items="#{validatePlan.plan.sampleRecordsDefinition.records}"
											varStatus="status">
											<rich:column rendered="#{not bean.leaf.single}">
												<f:facet name="header">
													#{status.index+1}
												</f:facet>
												#{bean.leaf.valueMap[alter.name].list[status.index].value}
											</rich:column>
										</c:forEach>


									</rich:dataTable> <!-- TABLE LAYOUT! -->
								</td>
								<td class="column-validation-results">
									<h4>Transformer</h4> <!-- Ordinal --> <f:subview
										rendered='#{bean.leaf.scale.type == "ordinal"}'>
										<h:dataTable value="#{bean.leaf.scale.list}"
											var="ordinalValue" styleClass="rf-dt"
											headerClass="rf-dt-shdr-c" columnClasses="rf-dt-c,rf-dt-c">
											<h:column>
												<f:facet name="header">
													Ordinal Value
												</f:facet>
												#{ordinalValue}
											</h:column>

											<h:column>
												<f:facet name="header">
													Target Value
												</f:facet>
												-> #{bean.leaf.transformer.mapping[ordinalValue].value}
											</h:column>
										</h:dataTable>
									</f:subview> <!-- Numerical --> <f:subview
										rendered='#{bean.leaf.scale.type != "ordinal"}'>
										<table class="rf-dt">
											<tr>
												<th class="rf-dt-shdr-c">Threshold</th>
												<th class="rf-dt-shdr-c">Target value</th>
											</tr>

											<p:thresholditem
												threshold="#{bean.leaf.transformer.threshold1}" index="1"
												unit="#{bean.leaf.scale.unit}" />
											<p:thresholditem
												threshold="#{bean.leaf.transformer.threshold2}" index="2"
												unit="#{bean.leaf.scale.unit}" />
											<p:thresholditem
												threshold="#{bean.leaf.transformer.threshold3}" index="3"
												unit="#{bean.leaf.scale.unit}" />
											<p:thresholditem
												threshold="#{bean.leaf.transformer.threshold4}" index="4"
												unit="#{bean.leaf.scale.unit}" />
											<p:thresholditem
												threshold="#{bean.leaf.transformer.threshold5}" index="5"
												unit="#{bean.leaf.scale.unit}" />

										</table>
										Threshold stepping:
										<br />
										#{bean.leaf.transformer.mode}
									</f:subview> 
									<ui:fragment rendered="#{validatePlan.displayChangelogs}">
										<h4>Transformer-Changelog</h4>
										<ui:include src="/plato/shared/changeLog.xhtml">
											<ui:param name="bean" value="#{bean.leaf.transformer}" />
											<ui:param name="rendered" value="#{validatePlan.displayChangelogs}" />
										</ui:include>				

									</ui:fragment>
								</td>
								<td class="column-validation-results">

									<h4>Transformed Results</h4> <!-- Transformed + aggregated values -->
									<rich:dataTable
										value="#{validatePlan.plan.alternativesDefinition.consideredAlternatives}"
										var="alter"
										headerClass="margin-top-small margin-bottom-small margin-left-big margin-right-big border nowrap"
										columnClasses="margin-top-small margin-bottom-small margin-left-big comment-medium">
										<rich:column>
											<f:facet name="header">
												Alternatives
											</f:facet>
											#{alter.name}
										</rich:column>

										<!-- <ui:fragment rendered="#{bean.leaf.single}">-->
										<rich:column rendered="#{bean.leaf.single}">
											<f:facet name="header">
												Result
											</f:facet>
											<h:outputText value="#{bean.resultValues[alter]}">
												<f:convertNumber maxFractionDigits="2" />
											</h:outputText>
										</rich:column>
										<!-- </ui:fragment>-->

										<!-- <ui:fragment rendered="#{not bean.leaf.single}">-->
										<c:forEach
											items="#{validatePlan.plan.sampleRecordsDefinition.records}"
											varStatus="status">
											<rich:column rendered="#{not bean.leaf.single}">
												<f:facet name="header">
													#{status.index + 1}
												</f:facet>
												<h:outputText
													value="#{bean.transformedValues[alter].list[status.index].value}">
													<f:convertNumber maxFractionDigits="2" />
												</h:outputText>
											</rich:column>
										</c:forEach>

										<rich:column rendered="#{not bean.leaf.single}">
											<f:facet name="header">
												Aggregated result
											</f:facet>
											<h:outputText value="#{bean.resultValues[alter]}">
												<f:convertNumber maxFractionDigits="2" />
											</h:outputText>

										</rich:column>

										<!-- </ui:fragment>-->

										<rich:column>
											<f:facet name="header">
												Comments
											</f:facet>
											#{bean.leaf.valueMap[alter.name].comment}
										</rich:column>

									</rich:dataTable> 
									<h:outputText
										value="Aggregation mode: #{bean.leaf.aggregationMode}"
										rendered="#{!bean.leaf.single}" />
								</td>
							</tr>
						</table>

						<div
							class="margin-top-small margin-bottom-small border-bottom big" />


					</ui:repeat>

					<div style="clear: both;">
						<strong><h:outputLabel for="evalcomments">Evaluation comments:</h:outputLabel></strong>
						<h:outputText id="evalcomments"
							value="#{validatePlan.plan.evaluation.comment}" />
					</div>

					<div style="clear: both;">
						<strong><h:outputLabel for="transcomments">Transformation comments:</h:outputLabel></strong>
						<h:outputText id="transcomments"
							value="#{validatePlan.plan.transformation.comment}" />
					</div>
				</ui:fragment>
			</h:form>

			<!-- ********** results weighted multiplication ********** -->

			<a4j:outputPanel id="weightedMulResults">

				<a name="resultsMult" />
				<p:help text="How do the aggregation mechanisms work?"
					url="/plato/help/aggregation.html" />
				<div id="menu" class="menu-step">
					<h2>Results: Weighted multiplication</h2>
				</div>
	
				<div class="center-position">
					<p:resultTree id="weightedMultResultsTree"
						treeHelper="#{validatePlan.resultstreeHelper}"
						rootNode="#{validatePlan.aggMultResultNodes}"
						alternatives="#{validatePlan.plan.alternativesDefinition.consideredAlternatives}"
						linktoResults="#{validatePlan.displayEvalTransform ? 'true' : ''}"						
						toggleType="client">
						<f:facet name="panel">
							<small>Result-Tree with all Alternatives, Aggregation
								method: Weighted multiplication</small>
						</f:facet>
					</p:resultTree>
				</div>
			</a4j:outputPanel>

			<!-- ********** results weighted sum ********** -->
			<a name="resultsSum" />
			<div id="menu" class="menu-step">
				<h2>Results: Weighted sum</h2>
			</div>

			<a4j:outputPanel layout="block" id="weightedSumResults"
				styleClass="center-position">
				<a4j:outputPanel layout="block"
					rendered="#{empty validatePlan.acceptableAlternatives}"
					styleClass="requiredIndicator">
		            None of the considered
		            alternatives have achieved acceptable values - all of them exhibit an
		            unacceptable performance for at least one aspect of the requirements
		            tree. However, to create a preservation plan, a feasible course of
		            action is needed. You may want to reconsider your acceptable
		            threshold settings in the Transformation step. You can do so by
		            returning to that step and changing your settings, and then continue
		            with the workflow.
			    </a4j:outputPanel>

				<a4j:outputPanel layout="block"
					rendered="#{validatePlan.showAllConsideredAlternativesForWeightedSum or not empty validatePlan.acceptableAlternatives}">
					<p:resultTree id="weightedSumResultsTree"
						treeHelper="#{validatePlan.resultstreeHelper}"
						rootNode="#{validatePlan.aggSumResultNodes}"
						alternatives="#{validatePlan.weightedSumResultTreeShownAlternatives}"
						linktoResults="#{validatePlan.displayEvalTransform ? 'true' : ''}">
						<f:facet name="panel">
							<div>
								<small> 
									<a4j:outputPanel layout="block"
											rendered="#{!validatePlan.knockedoutAlternativePresent or validatePlan.showAllConsideredAlternativesForWeightedSum}">
									Result-Tree with all alternatives, Aggregation
										method: Weighted sum
									</a4j:outputPanel>
									<a4j:outputPanel layout="block"
											rendered="#{validatePlan.knockedoutAlternativePresent and !validatePlan.showAllConsideredAlternativesForWeightedSum}">
									Result-Tree with alternatives without knock-out
										evaluation criteria, Aggregation method: Weighted sum
									</a4j:outputPanel>
									<a4j:outputPanel layout="block"
											rendered="#{validatePlan.knockedoutAlternativePresent}">
											<h:selectBooleanCheckbox
												value="#{validatePlan.showAllConsideredAlternativesForWeightedSum}">
												<a4j:ajax event="click"
													listener="#{validatePlan.switchShowAllConsideredAlternativesForWeightedSum()}"
													render="weightedSumResults" />
											</h:selectBooleanCheckbox>
									Show all alternatives
									</a4j:outputPanel>
								</small>
							</div>
						</f:facet>
					</p:resultTree>
				</a4j:outputPanel>
			</a4j:outputPanel>

		</div>


		<a name="conclusion" />
		<div id="menu" class="menu-step">
			<h2>Conclusion and Decision for Preservation Strategy</h2>
		</div>
		<div class="center-position">
			<div style="clear: both;">
				<strong><h:outputLabel for="conclusionrecommandation">Recommendation:</h:outputLabel></strong>
				<h:outputText id="conclusionrecommandation"
					value="#{validatePlan.plan.recommendation.alternative.name}" />
			</div>

			<div style="clear: both;">
				<strong><h:outputLabel for="conclusionreasoning">Reasoning:</h:outputLabel></strong>
				<h:outputText id="conclusionreasoning"
					value="#{validatePlan.plan.recommendation.reasoning}" />
			</div>

			<div style="clear: both;">
				<strong><h:outputLabel for="conclusioneffects">Effects of applying recommended solution:
		</h:outputLabel></strong>
				<h:outputText id="conclusioneffects"
					value="#{validatePlan.plan.recommendation.effects}" />
				<br /> <br />
			</div>

		</div>
		<a name="execution" />
		<div id="menu" class="menu-step">
			<h2>Preservation Action Plan</h2>
		</div>
		<div class="center-position">
			<h2>When</h2>
			<div style="clear: both;">
				<strong><h:outputLabel for="triggers_">Triggers and conditions:</h:outputLabel></strong>
				<h:outputText id="triggers_"
					value="#{validatePlan.plan.executablePlanDefinition.triggersConditions}" />
			</div>

			<div style="clear: both;">
				<strong><h:outputLabel for="validateQA_">Validate and QA:</h:outputLabel></strong>
				<h:outputText id="validateQA_"
					value="#{validatePlan.plan.executablePlanDefinition.validateQA}" />
			</div>

			<div style="clear: both;">
				<x:div
					renderthis="#{validatePlan.planetsExecutablePlanPrettyFormat != ''}">
					<strong><h:outputLabel for="execPP_planets">Planets executable plan:</h:outputLabel></strong>
					<br />
					<br />
					<pre>
		       <h:outputText id="execPP_planets"
							value="#{validatePlan.planetsExecutablePlanPrettyFormat}" />
             </pre>
				</x:div>
			</div>

			<br />

			<h2>What</h2>
			<table width="100%">
				<tr>
					<th width="20%"></th>
					<th width="80%"></th>
				</tr>
				<tr>
					<td style="padding-top: 10px"><b>Tool<br />
					</b></td>
					<td style="padding-top: 10px"><h:outputText id="toolagain"
							value="#{validatePlan.plan.recommendation.alternative.name}" /></td>
				</tr>
				<tr>
					<td style="padding-top: 10px"><b>Location of records<br />
					</b></td>
					<td style="padding-top: 10px"><h:outputText id="executionpath"
							value="#{validatePlan.plan.executablePlanDefinition.objectPath}" /></td>
				</tr>
				<tr>
					<td style="padding-top: 10px"><b>Parameters for tool<br />
					</b></td>
					<td style="padding-top: 10px"><h:outputText
							id="executionparameters"
							value="#{validatePlan.plan.executablePlanDefinition.toolParameters}" /></td>
				</tr>
			</table>
		</div>
		<a name="costs" />
		<div id="menu" class="menu-step">
			<h2>Costs</h2>
		</div>
		<div class="center-position">
			<h2>Estimate of Costs</h2>
			Costs in
			<h:outputText id="currency"
				value=" #{validatePlan.plan.planDefinition.currency}." />
			<br /> <br /> <b>Life-Costmodel</b>
			<table width="100%">
				<tr>
					<th width="20%"></th>
					<th width="80%"></th>
				</tr>
				<tr>
					<td style="padding-top: 10px">CIG (Integrate new solution)</td>
					<td style="padding-top: 10px"><h:outputText id="cig"
							value="#{validatePlan.plan.planDefinition.costsIG}" /></td>
				</tr>
				<tr>
					<td style="padding-top: 10px">CPE (Perform preservation
						action)</td>
					<td style="padding-top: 10px"><h:outputText id="cpe"
							value="#{validatePlan.plan.planDefinition.costsPE}" /></td>
				</tr>
				<tr>
					<td style="padding-top: 10px">CQA (Quality assure preservation
						action)</td>
					<td style="padding-top: 10px"><h:outputText id="cqa"
							value="#{validatePlan.plan.planDefinition.costsQA}" /></td>
				</tr>
				<tr>
					<td style="padding-top: 10px">CRM (Record preservation action
						metadata)</td>
					<td style="padding-top: 10px"><h:outputText id="crm"
							value="#{validatePlan.plan.planDefinition.costsRM}" /></td>
				</tr>
				<tr>
					<td style="padding-top: 10px"><b>Preservation action total
							(CIG+CPE+CQA+CRM)</b></td>
					<td style="padding-top: 10px"><h:outputText id="cpa"
							value="#{validatePlan.plan.planDefinition.costsPA}" /></td>
				</tr>
				<tr>
					<td style="padding-top: 10px">Reingest</td>
					<td style="padding-top: 10px"><h:outputText id="rei"
							value="#{validatePlan.plan.planDefinition.costsREI}" /><br /></td>
				</tr>
			</table>

			<table width="100%">
				<tr>
					<th width="20%"></th>
					<th width="80%"></th>
				</tr>
				<tr>
					<td style="padding-top: 10px"><b>TCO (Total Cost of
							Owneship)</b></td>
					<td style="padding-top: 10px"><h:outputText id="tco"
							value="#{validatePlan.plan.planDefinition.costsTCO}" /><br /></td>
				</tr>
			</table>

			<table width="100%">
				<tr>
					<th width="20%"></th>
					<th width="80%"></th>
				</tr>
				<tr>
					<td style="padding-top: 10px">Remarks</td>
					<td style="padding-top: 10px">
						<h:outputText id="costremarks"
							value="#{validatePlan.plan.planDefinition.costsRemarks}" /><br /></td>
				</tr>
			</table>

			<hr />
		</div>
		<a name="monitoring" />
		<div id="menu" class="menu-step">
			<h2>Monitoring</h2>
		</div>
		<div class="center-position">
			<table width="100%">
				<tr>
					<th width="20%"></th>
					<th width="80%"></th>
				</tr>

				<tr>
					<td style="padding-top: 10px"><b>Person responsible for
							execution<br />
					</b></td>
					<td style="padding-top: 10px"><h:outputText
							id="executionresponsible"
							value="#{validatePlan.plan.planDefinition.responsibleExecution}" /></td>
				</tr>

				<tr>
					<td style="padding-top: 10px"><b>Person responsible for
							monitoring<br />
					</b></td>
					<td style="padding-top: 10px"><h:outputText
							id="planmonitoring"
							value="#{validatePlan.plan.planDefinition.responsibleMonitoring}" /></td>
				</tr>


				<tr>
					<td style="padding-top: 10px"><b>Triggers for
							Re-Evaluation</b></td>
					<td>

						<table cellpadding="30" class="size-full">
							<tr>
								<th width="170px">Trigger</th>
								<th>Description</th>
							</tr>

							<p:outputTrigger
								trigger="#{validatePlan.plan.planDefinition.triggers.periodicReview}" />
							<p:outputTrigger
								trigger="#{validatePlan.plan.planDefinition.triggers.changedEnvironment}" />
							<p:outputTrigger
								trigger="#{validatePlan.plan.planDefinition.triggers.changedObjective}" />
							<p:outputTrigger
								trigger="#{validatePlan.plan.planDefinition.triggers.changedCollectionProfile}" />

						</table>

					</td>
				</tr>

			</table>
		</div>

		<!-- ********** approve plan ********** -->

		<a name="approval" />
		<div id="menu" class="menu-step">
			<h2>Plan Approval</h2>
		</div>
		<div class="center-position">
			<h:form id="mainform">
				<fieldset id="approval" class="size-full">
					<a4j:outputPanel layout="block" id="approveSection"
						style="text-align: center;">
						<a4j:commandButton id="approveButton"
							rendered="#{not validatePlan.plan.approved}"
							value="Approve this plan" styleClass="approve-button"
							action="#{validatePlan.approvePlan()}" render="approveSection" />

						<a4j:outputPanel layout="block"
							rendered="#{validatePlan.plan.approved}">
							<p>
								Plan '#{validatePlan.plan.planProperties.name}' has been created
								by #{validatePlan.plan.planProperties.changeLog.createdBy}. <br />
								It has been approved by
								#{validatePlan.plan.planProperties.changeLog.changedBy} on
								#{validatePlan.plan.planProperties.changeLog.changedString}. <br />
								This implies that it cannot be changed anymore unless it is
								formally revised again. Only the approving person can revise the
								plan.
							</p>
							<ui:remove>
								<!-- 
							<a4j:commandButton id="reviseButton" value="Revise this plan"
								styleClass="discard-button"
								action="#{validatePlan.revisePlan()}" render="approveSection"
								style="float:none" />
								 -->
							</ui:remove>

							<div class="save-discard-proceed-buttons">
								<h:commandButton id="deployTriggers" 
									value="Deploy Triggers"
									action="#{validatePlan.deployTriggers()}"
									styleClass="save-button" style="min-width: 150px; float: none;" />
								<a4j:outputPanel
									rendered="#{validatePlan.user.userGroup.repository == null or validatePlan.user.userGroup.repository.url == null or validatePlan.user.userGroup.repository.url == ''}">
									<h:commandButton id="reviseButtonSingle"
										value="Revise this plan" action="#{validatePlan.revisePlan()}"
										styleClass="discard-button"
										style="min-width: 150px; float: none;" render="approveSection" />
								</a4j:outputPanel>
								<a4j:outputPanel
									rendered="#{validatePlan.user.userGroup.repository != null and validatePlan.user.userGroup.repository.url != null and validatePlan.user.userGroup.repository.url != ''}">
									<h:commandButton id="reviseButtonWithDeploy"
										value="Revise this plan" action="#{validatePlan.revisePlan()}"
										styleClass="discard-button" style="min-width: 150px;"
										render="approveSection" />
									<div class="save-placeholder" style="min-width: 150px" />
									<h:commandButton id="deploy" value="Deploy plan"
										styleClass="proceed-button" style="min-width: 150px;"
										render="approveSection">
										<rich:componentControl target="deployPopup" operation="show" />
									</h:commandButton>
								</a4j:outputPanel>
							</div>
						</a4j:outputPanel>
					</a4j:outputPanel>
				</fieldset>

				<rich:popupPanel id="deployPopup" width="600" height="150"
					onmaskclick="#{rich:component('deployPopup')}.hide();">
					<f:facet name="header">
						Deploy to #{validatePlan.user.userGroup.repository.url}
					</f:facet>
					<f:facet name="controls">
						<h:outputLink value="#"
							onclick="#{rich:component('deployPopup')}.hide(); return false;">X</h:outputLink>
					</f:facet>
					<p:inputText labelText="Username" id="repositoryUsername"
						input="#{validatePlan.repositoryUsername}" />

					<div class="component">
						<div class="label"><commit_msg>Center deploy triggers button in validate plan view<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:x="http://java.sun.com/jsf/composite/htmlx"
	xmlns:p="http://java.sun.com/jsf/composite/plato"
	template="/WEB-INF/templates/default.xhtml"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

	<ui:define name="title">SCAPE Planning Suite - #{viewWorkflow.currentView.name}</ui:define>
	<ui:define name="content">
		<h:outputStylesheet name="css/workflow.css" />
		<h:outputStylesheet name="css/tree.css" />
		<h1>
			<h:outputText
				value="Validate plan for #{validatePlan.plan.planProperties.name}" />
		</h1>
		<div class="wfstepinfo">
			<div class="wfdescription">
				In the final stage the whole documentation about the preservation
				plan has to be reviewed. The process of evaluating different
				alternatives and taking a decision for a recommended tool based on
				the evaluation and the creation of the preservation action plan, the
				documentation about the basic framework of the institution and
				parameters under which the plan is valid are verified again.
				<div class="more">
					<a href="../help/workflow.html#validate_plan" target="_blank">more</a>
				</div>
			</div>
		</div>

		<div class="center-position">
			<div>
				<small><h:outputText
						value="Report creation date: #{validatePlan.currentDate}" /></small>
			</div>


			<h:form>
				<div id="future_in_menu_bar"></div>
				<a4j:commandButton id="switch-changelog"
					value="#{validatePlan.displayChangelogs? 'Hide' : 'Show' } Changelogs"
					action="#{validatePlan.switchDisplayChangelogs}"
					render="switch-changelog, planChangelog, basisChangelog, collectionChangelog, samplesform, requirements, alternativesTable, experimentsTable, evalTransformForm"
					type="button" />
			</h:form>
		</div>
		<div class="component">
			<div class="label">
				<strong><h:outputLabel for="planname">Plan name</h:outputLabel></strong>
			</div>
			<div class="input">
				<h:outputText id="planname"
					value="#{validatePlan.plan.planProperties.name}" />
			</div>
		</div>
		<div class="component">
			<div class="label">
				<strong><h:outputLabel for="statename">Current state</h:outputLabel></strong>
			</div>
			<div class="input">
				<h:outputText id="statename" value="#{validatePlan.plan.stateName}" />
			</div>
		</div>
		<div class="component">
			<div class="label">
				<strong><h:outputLabel for="plandescription">Plan description</h:outputLabel></strong>
			</div>
			<div class="input">
				<h:outputText id="plandescription"
					value="#{validatePlan.plan.planProperties.description}" />
			</div>
		</div>
		<div class="component">
			<div class="label">
				<strong><h:outputLabel for="planners">Responsible planners</h:outputLabel></strong>
			</div>
			<div class="input">
				<h:outputText id="planners"
					value="#{validatePlan.plan.planProperties.author}" />
			</div>
		</div>
		<div class="component">
			<div class="label">
				<strong><h:outputLabel for="organization">Organization</h:outputLabel></strong>
			</div>
			<div class="input">
				<h:outputText id="organization"
					value="#{validatePlan.plan.planProperties.organization}" />
			</div>
		</div>

		<a4j:outputPanel layout="inline" id="planChangelog">
			<ui:include src="/plato/shared/changeLog.xhtml">
				<ui:param name="bean" value="#{validatePlan.plan.planProperties}" />
				<ui:param name="rendered" value="#{validatePlan.displayChangelogs}" />
			</ui:include>				
		</a4j:outputPanel>


		<ul class="anchors">
			<li class="anchors"><a href="#identification" class="anchors">Identification
					and Status</a></li>
			<li class="anchors"><a href="#institutionalsetting"
				class="anchors">Institutional Setting</a></li>
			<li class="anchors"><a href="#samplerecords" class="anchors">Collection
					and Sample Records</a></li>

			<li class="anchors"><a href="#requirements" class="anchors">Requirements</a></li>
			<li class="anchors"><a href="#alternatives" class="anchors">Alternatives</a></li>
			<li class="anchors"><a href="#gonogo" class="anchors">Go-Decision</a></li>
			<li class="anchors"><a href="#experiments" class="anchors">Experiments</a></li>
			<li class="anchors"><a href="#evaluation" class="anchors">Evaluation
					&amp; Transformation</a></li>
			<li class="anchors"><a href="#resultsMult" class="anchors">Results:
					Weighted multiplication</a></li>
			<li class="anchors"><a href="#resultsSum" class="anchors">Results:
					Weighted sum</a></li>
			<li class="anchors"><a href="#conclusion" class="anchors">Conclusion
					and Decision for Preservation Strategy</a></li>
			<li class="anchors"><a href="#execution" class="anchors">Preservation
					Action Plan</a></li>
			<li class="anchors"><a href="#costs" class="anchors">Costs</a></li>
			<li class="anchors"><a href="#monitoring" class="anchors">Monitoring</a></li>
			<li class="anchors"><a href="#approval" class="anchors">Approval</a></li>
		</ul>

		<a name="identification" />
		<div id="menu" class="menu-step">
			<h2>Identification and Status</h2>
		</div>


		<table class="text-table">
			<tr>
				<th width="20%"></th>
				<th width="80%"></th>
			</tr>



			<tr>
				<td style="padding-top: 10px"><b>Identification code<br />
				</b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode1"
						value="#{validatePlan.plan.projectBasis.identificationCode}" /></td>
			</tr>

			<tr>
				<td style="padding-top: 10px"><b>Planning purpose<br />
				</b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode4"
						value="#{validatePlan.plan.projectBasis.planningPurpose}" /></td>
			</tr>

			<tr>
				<td style="padding-top: 10px"><b>Plan relations</b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode10"
						value="#{validatePlan.plan.projectBasis.planRelations}" /></td>
			</tr>
			<tr>
				<td style="padding-top: 10px"><b>Triggers</b></td>
				<td style="padding-top: 10px">

					<table class="tableStyle">
						<tr>
							<th width="170px" class="tableStyle-header">Trigger</th>
							<th class="tableStyle-header">Description</th>
						</tr>

						<p:outputTrigger
							trigger="#{validatePlan.plan.projectBasis.triggers.newCollection}" />
						<p:outputTrigger
							trigger="#{validatePlan.plan.projectBasis.triggers.periodicReview}" />
						<p:outputTrigger
							trigger="#{validatePlan.plan.projectBasis.triggers.changedEnvironment}" />
						<p:outputTrigger
							trigger="#{validatePlan.plan.projectBasis.triggers.changedObjective}" />
						<p:outputTrigger
							trigger="#{validatePlan.plan.projectBasis.triggers.changedCollectionProfile}" />

					</table>

				</td>
			</tr>
		</table>

		<h:form id="policytreeform">
			<ui:include src="/plato/shared/policytree.xhtml">
				<ui:param name="treeHelper" value="#{validatePlan.policytreeHelper}" />
				<ui:param name="policyTree"
					value="#{validatePlan.plan.projectBasis.policyTree}" />
				<ui:param name="policyRoot" value="#{validatePlan.policyRoots}" />
			</ui:include>
		</h:form>
		<a4j:outputPanel layout="inline" id="basisChangelog">
			<ui:include src="/plato/shared/changeLog.xhtml">
				<ui:param name="bean" value="#{validatePlan.plan.projectBasis}" />
				<ui:param name="rendered" value="#{validatePlan.displayChangelogs}" />
			</ui:include>				
		</a4j:outputPanel>


		<a name="institutionalsetting" />
		<div id="menu" class="menu-step">
			<h2>Institutional Setting</h2>
		</div>


		<table>
			<tr>
				<td style="padding-top: 10px"><b>Document types<br /></b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode2"
						value="#{validatePlan.plan.projectBasis.documentTypes}" /></td>
			</tr>
			<tr>
				<td style="padding-top: 10px"><b>Mandate<br /></b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode3"
						value="#{validatePlan.plan.projectBasis.mandate}" /></td>
			</tr>

			<tr>
				<td style="padding-top: 10px"><b>Designated community<br /></b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode5"
						value="#{validatePlan.plan.projectBasis.designatedCommunity}" /></td>
			</tr>

			<tr>
				<td style="padding-top: 10px"><b>Applying policies</b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode6"
						value="#{validatePlan.plan.projectBasis.applyingPolicies}" /></td>
			</tr>
			<tr>
				<td style="padding-top: 10px"><b>Relevant organisational
						procedures and workflows</b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode7"
						value="#{validatePlan.plan.projectBasis.organisationalProcedures}" /></td>
			</tr>
			<tr>
				<td style="padding-top: 10px"><b>Contracts and agreements
						specifying preservation rights</b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode8"
						value="#{validatePlan.plan.projectBasis.preservationRights}" /></td>
			</tr>
			<tr>
				<td style="padding-top: 10px"><b>Reference to agreements of
						maintenance and access</b></td>
				<td style="padding-top: 10px"><h:outputText id="idcode9"
						value="#{validatePlan.plan.projectBasis.referenceToAgreements}" /></td>
			</tr>

		</table>

		<!-- ********** sample records ********** -->

		<a name="samplerecords" />
		<div id="menu" class="menu-step">
			<h2>Collection and Sample Records</h2>
		</div>

		<table>
			<tr>
				<th width="20%"></th>
				<th width="80%"></th>
			</tr>
			<tr>
				<td style="padding-top: 10px"><b>Samples description:<br />
				</b></td>
				<td style="padding-top: 10px"><h:outputText
						id="idsamplesdescription"
						value="#{validatePlan.plan.sampleRecordsDefinition.samplesDescription}" /></td>
			</tr>
		</table>

		<h3>Collection profile</h3>
		<fieldset class="size-full">
			<div style="clear: both;">
				<strong><h:outputLabel for="collid">Collection ID:</h:outputLabel></strong>
				<h:outputText id="collid"
					value="#{validatePlan.plan.sampleRecordsDefinition.collectionProfile.collectionID}" />
			</div>
			<div style="clear: both;">
				<strong><h:outputLabel for="colldesc">Description:</h:outputLabel></strong>
				<h:outputText id="colldesc"
					value="#{validatePlan.plan.sampleRecordsDefinition.collectionProfile.description}" />
			</div>
			<div style="clear: both;">
				<strong><h:outputLabel for="colltype">Type of objects:</h:outputLabel></strong>
				<h:outputText id="colltype"
					value="#{validatePlan.plan.sampleRecordsDefinition.collectionProfile.typeOfObjects}" />
			</div>
			<div style="clear: both;">
				<strong><h:outputLabel for="collnum">Number of objects:</h:outputLabel></strong>
				<h:outputText id="collnum"
					value="#{validatePlan.plan.sampleRecordsDefinition.collectionProfile.numberOfObjects}" />
			</div>
			<div style="clear: both;">
				<strong><h:outputLabel for="growthrate">Expected growth rate:</h:outputLabel></strong>
				<h:outputText id="growthrate"
					value="#{validatePlan.plan.sampleRecordsDefinition.collectionProfile.expectedGrowthRate}" />
			</div>

			<a4j:outputPanel layout="inline" id="collectionChangelog">
				<ui:include src="/plato/shared/changeLog.xhtml">
					<ui:param name="bean" value="#{validatePlan.plan.sampleRecordsDefinition}" />
					<ui:param name="rendered" value="#{validatePlan.displayChangelogs}" />
				</ui:include>				
			</a4j:outputPanel>
		</fieldset>

		<h:form id="samplesform" class="center-position">
			<div>
				<h:dataTable
					value="#{validatePlan.plan.sampleRecordsDefinition.records}"
					var="sample" styleClass="tableStyle table-small"
					headerClass="tableStyle-header">

					<h:column>
						<f:facet name="header">
							<h:outputText value="Name" />
						</f:facet>
						<h:outputText rendered="#{not sample.dataExistent}"
							value="#{sample.fullname}" />
						<h:commandLink rendered="#{sample.dataExistent}"
							action="#{validatePlan.download(sample)}">
							<h:outputText value="#{sample.fullname}" />
						</h:commandLink>


					</h:column>

					<h:column>
						<f:facet name="header">
							Short name
						</f:facet>
						#{sample.shortName}
					</h:column>

					<h:column>
						<f:facet name="header">
							Description
						</f:facet>
						#{sample.description}
					</h:column>

					<h:column>
						<f:facet name="header">
							Original environment
						</f:facet>
						#{sample.originalTechnicalEnvironment}
					</h:column>

					<h:column>
						<f:facet name="header">
							Data
						</f:facet>
						<h:outputText value="No data"
							rendered="#{not sample.dataExistent}" />
						<h:outputText value="Data existent (#{sample.data.size}B)"
							rendered="#{sample.dataExistent}" />
					</h:column>

					<h:column>
						<f:facet name="header">
							Object-format
						</f:facet>
						<table class="margin-bottom-huge">
							<tr>
								<td width="100px"><strong>PUID:</strong></td>
								<td>#{sample.formatInfo.puid}</td>
							</tr>
							<tr>
								<td><strong>Name:</strong></td>
								<td>#{sample.formatInfo.name}</td>
							</tr>
							<tr>
								<td><strong>Version:</strong></td>
								<td>#{sample.formatInfo.version}</td>
							</tr>
							<tr>
								<td><strong>mime-type:</strong></td>
								<td>#{sample.formatInfo.mimeType}</td>
							</tr>
						</table>
					</h:column>

					<h:column rendered="#{validatePlan.displayChangelogs}">
						<f:facet name="header">
							Changelog
						</f:facet>
						<ui:include src="/plato/shared/changeLog.xhtml">
							<ui:param name="bean" value="#{sample}" />
							<ui:param name="rendered" value="#{validatePlan.displayChangelogs}" />
						</ui:include>				
						
					</h:column>

				</h:dataTable>
			</div>
		</h:form>

		<!-- ********** requirements ********** -->

		<a name="requirements" />

		<div id="menu" class="menu-step">
			<h2>Requirements &amp; Weighting</h2>
		</div>
		<a4j:outputPanel layout="block" styleClass="center-position"
			id="requirements">

			<p:treeSummary treeHelper="#{validatePlan.requirementstreeHelper}"
				rootNode="#{validatePlan.requirementsRoots}"
				displayChangelogs="#{validatePlan.displayChangelogs}"
				linktoResults="#{validatePlan.displayEvalTransform ? 'true' : ''}"
				toggleType="client" />
		</a4j:outputPanel>

		<!-- ********** alternatives ********** -->

		<a name="alternatives" />

		<div id="menu" class="menu-step">
			<h2>Alternatives</h2>
		</div>

		<div class="center-position">
			<strong><h:outputLabel for="alternativesDescription">Evaluation comments:</h:outputLabel></strong>
			<h:outputText id="alternativesDescription"
				value="#{validatePlan.plan.alternativesDefinition.description}" />
		</div>

		<h:dataTable id="alternativesTable"
			value="#{validatePlan.plan.alternativesDefinition.alternatives}"
			var="alt" class="tableStyle table-small"
			headerClass="tableStyle-header">

			<h:column>
				<f:facet name="header">
					Name
				</f:facet>
				<h:outputText value="#{alt.name}" class="size-max" />
			</h:column>

			<h:column>
				<f:facet name="header">
					Description
				</f:facet>
				#{alt.description}
			</h:column>

			<h:column>
				<f:facet name="header">
				Reason for considering
				</f:facet>
				#{alt.resourceDescription.reasonForConsidering}
			</h:column>

			<h:column>
				<f:facet name="header">
				Config settings
				</f:facet>
				#{alt.resourceDescription.configSettings}
			</h:column>

			<h:column>
				<f:facet name="header">Necessary resources
				</f:facet>
				#{alt.resourceDescription.necessaryResources}
			</h:column>

			<h:column rendered="#{validatePlan.displayChangelogs}">
				<f:facet name="header">
				Changelog
				</f:facet>
				<ui:include src="/plato/shared/changeLog.xhtml">
					<ui:param name="bean" value="#{alt}" />
					<ui:param name="rendered" value="#{validatePlan.displayChangelogs}" />
				</ui:include>				
			</h:column>
		</h:dataTable>
		<!-- ********** go-decisions ********** -->
		<!-- TODO "Alternatives in italics have been discarded when taking the go-decision" -->
		<a name="gonogo" />

		<div id="menu" class="menu-step">
			<h2>Go-Decision</h2>
		</div>

		<div class="center-position">
			<div style="clear: both;">
				<strong><h:outputLabel for="godecision">Decision:</h:outputLabel></strong>
				<h:outputText id="godecision"
					value="#{validatePlan.plan.decision.decision}" />
			</div>
			<div style="clear: both;">
				<strong><h:outputLabel for="goreason">Reason:</h:outputLabel></strong>
				<h:outputText id="goreason"
					value="#{validatePlan.plan.decision.reason}" />
			</div>
			<div style="clear: both;">
				<strong><h:outputLabel for="actionneeded">Action needed:</h:outputLabel></strong>
				<h:outputText id="actionneeded"
					value="#{validatePlan.plan.decision.actionNeeded}" />
			</div>
		</div>

		<!-- ********** experiments ********** -->

		<a name="experiments" />

		<div id="menu" class="menu-step">
			<h2>Experiments</h2>
		</div>

		<h:dataTable id="experimentsTable" class="tableStyle table-small"
			value="#{validatePlan.plan.alternativesDefinition.consideredAlternatives}"
			var="alt" headerClass="tableStyle-header">

			<h:column>
				<f:facet name="header">
					Alternative
				</f:facet>
				<h:outputText value="#{alt.name}" class="size-max" />
			</h:column>

			<h:column>
				<f:facet name="header">
					Experiment description
				</f:facet>
				#{alt.experiment.description}
			</h:column>

			<h:column>
				<f:facet name="header">
					Run description
				</f:facet>
				#{alt.experiment.detailedRunDescription}
			</h:column>

			<h:column>
				<f:facet name="header">
					Experiment data uploaded
				</f:facet>
				#{alt.experiment.recordUploaded ? 'Yes' : 'No' }
			</h:column>

			<h:column rendered="#{validatePlan.displayChangelogs}">
				<f:facet name="header">
					<h:outputText value="Changelog" />
				</f:facet>
				<ui:include src="/plato/shared/changeLog.xhtml">
					<ui:param name="bean" value="#{alt.experiment}" />
					<ui:param name="rendered" value="#{validatePlan.displayChangelogs}" />
				</ui:include>				

			</h:column>
		</h:dataTable>

		<!-- ********** evaluation ********** -->

		<a name="evaluation" />

		<div id="menu" class="menu-step">
			<h2>Evaluation &amp; Transformation</h2>
		</div>

		<div class="center-position">
			<h:form id="evalTransformForm">

				<a4j:commandButton
					value="#{validatePlan.displayEvalTransform? 'Hide' : 'Show'} Evaluation &amp; Transformation"
					action="#{validatePlan.switchDisplayEvalTransform}"
					render="evalTransformForm requirements weightedMulResults weightedSumResults" type="button" />

				<ui:fragment rendered="#{validatePlan.displayEvalTransform}">

					<ui:repeat value="#{validatePlan.leafBeans}" var="bean">
						<a name="results#{bean.leaf.id}" />
						<h3>
							#{bean.leaf.parent.name} > #{bean.leaf.name}
						</h3>

						<!-- TABLE LAYOUT! -->
						<table border="0">
							<tr>
								<td class="column-validation-results">
									<h4>Results</h4> <rich:dataTable
										value="#{validatePlan.plan.alternativesDefinition.consideredAlternatives}"
										var="alter"
										headerClass="margin-top-small margin-bottom-small margin-left-big margin-right-big border "
										columnClasses="margin-top-small margin-bottom-small margin-left-big margin-right-big ">
										<rich:column>
											<f:facet name="header">
												Alternatives
											</f:facet>
											#{alter.name}
										</rich:column>

										<rich:column rendered="#{bean.leaf.single}">
											<f:facet name="header">
												Result
											</f:facet>
											#{bean.leaf.valueMap[alter.name].list[0].value}
										</rich:column>

										<c:forEach
											items="#{validatePlan.plan.sampleRecordsDefinition.records}"
											varStatus="status">
											<rich:column rendered="#{not bean.leaf.single}">
												<f:facet name="header">
													#{status.index+1}
												</f:facet>
												#{bean.leaf.valueMap[alter.name].list[status.index].value}
											</rich:column>
										</c:forEach>


									</rich:dataTable> <!-- TABLE LAYOUT! -->
								</td>
								<td class="column-validation-results">
									<h4>Transformer</h4> <!-- Ordinal --> <f:subview
										rendered='#{bean.leaf.scale.type == "ordinal"}'>
										<h:dataTable value="#{bean.leaf.scale.list}"
											var="ordinalValue" styleClass="rf-dt"
											headerClass="rf-dt-shdr-c" columnClasses="rf-dt-c,rf-dt-c">
											<h:column>
												<f:facet name="header">
													Ordinal Value
												</f:facet>
												#{ordinalValue}
											</h:column>

											<h:column>
												<f:facet name="header">
													Target Value
												</f:facet>
												-> #{bean.leaf.transformer.mapping[ordinalValue].value}
											</h:column>
										</h:dataTable>
									</f:subview> <!-- Numerical --> <f:subview
										rendered='#{bean.leaf.scale.type != "ordinal"}'>
										<table class="rf-dt">
											<tr>
												<th class="rf-dt-shdr-c">Threshold</th>
												<th class="rf-dt-shdr-c">Target value</th>
											</tr>

											<p:thresholditem
												threshold="#{bean.leaf.transformer.threshold1}" index="1"
												unit="#{bean.leaf.scale.unit}" />
											<p:thresholditem
												threshold="#{bean.leaf.transformer.threshold2}" index="2"
												unit="#{bean.leaf.scale.unit}" />
											<p:thresholditem
												threshold="#{bean.leaf.transformer.threshold3}" index="3"
												unit="#{bean.leaf.scale.unit}" />
											<p:thresholditem
												threshold="#{bean.leaf.transformer.threshold4}" index="4"
												unit="#{bean.leaf.scale.unit}" />
											<p:thresholditem
												threshold="#{bean.leaf.transformer.threshold5}" index="5"
												unit="#{bean.leaf.scale.unit}" />

										</table>
										Threshold stepping:
										<br />
										#{bean.leaf.transformer.mode}
									</f:subview> 
									<ui:fragment rendered="#{validatePlan.displayChangelogs}">
										<h4>Transformer-Changelog</h4>
										<ui:include src="/plato/shared/changeLog.xhtml">
											<ui:param name="bean" value="#{bean.leaf.transformer}" />
											<ui:param name="rendered" value="#{validatePlan.displayChangelogs}" />
										</ui:include>				

									</ui:fragment>
								</td>
								<td class="column-validation-results">

									<h4>Transformed Results</h4> <!-- Transformed + aggregated values -->
									<rich:dataTable
										value="#{validatePlan.plan.alternativesDefinition.consideredAlternatives}"
										var="alter"
										headerClass="margin-top-small margin-bottom-small margin-left-big margin-right-big border nowrap"
										columnClasses="margin-top-small margin-bottom-small margin-left-big comment-medium">
										<rich:column>
											<f:facet name="header">
												Alternatives
											</f:facet>
											#{alter.name}
										</rich:column>

										<!-- <ui:fragment rendered="#{bean.leaf.single}">-->
										<rich:column rendered="#{bean.leaf.single}">
											<f:facet name="header">
												Result
											</f:facet>
											<h:outputText value="#{bean.resultValues[alter]}">
												<f:convertNumber maxFractionDigits="2" />
											</h:outputText>
										</rich:column>
										<!-- </ui:fragment>-->

										<!-- <ui:fragment rendered="#{not bean.leaf.single}">-->
										<c:forEach
											items="#{validatePlan.plan.sampleRecordsDefinition.records}"
											varStatus="status">
											<rich:column rendered="#{not bean.leaf.single}">
												<f:facet name="header">
													#{status.index + 1}
												</f:facet>
												<h:outputText
													value="#{bean.transformedValues[alter].list[status.index].value}">
													<f:convertNumber maxFractionDigits="2" />
												</h:outputText>
											</rich:column>
										</c:forEach>

										<rich:column rendered="#{not bean.leaf.single}">
											<f:facet name="header">
												Aggregated result
											</f:facet>
											<h:outputText value="#{bean.resultValues[alter]}">
												<f:convertNumber maxFractionDigits="2" />
											</h:outputText>

										</rich:column>

										<!-- </ui:fragment>-->

										<rich:column>
											<f:facet name="header">
												Comments
											</f:facet>
											#{bean.leaf.valueMap[alter.name].comment}
										</rich:column>

									</rich:dataTable> 
									<h:outputText
										value="Aggregation mode: #{bean.leaf.aggregationMode}"
										rendered="#{!bean.leaf.single}" />
								</td>
							</tr>
						</table>

						<div
							class="margin-top-small margin-bottom-small border-bottom big" />


					</ui:repeat>

					<div style="clear: both;">
						<strong><h:outputLabel for="evalcomments">Evaluation comments:</h:outputLabel></strong>
						<h:outputText id="evalcomments"
							value="#{validatePlan.plan.evaluation.comment}" />
					</div>

					<div style="clear: both;">
						<strong><h:outputLabel for="transcomments">Transformation comments:</h:outputLabel></strong>
						<h:outputText id="transcomments"
							value="#{validatePlan.plan.transformation.comment}" />
					</div>
				</ui:fragment>
			</h:form>

			<!-- ********** results weighted multiplication ********** -->

			<a4j:outputPanel id="weightedMulResults">

				<a name="resultsMult" />
				<p:help text="How do the aggregation mechanisms work?"
					url="/plato/help/aggregation.html" />
				<div id="menu" class="menu-step">
					<h2>Results: Weighted multiplication</h2>
				</div>
	
				<div class="center-position">
					<p:resultTree id="weightedMultResultsTree"
						treeHelper="#{validatePlan.resultstreeHelper}"
						rootNode="#{validatePlan.aggMultResultNodes}"
						alternatives="#{validatePlan.plan.alternativesDefinition.consideredAlternatives}"
						linktoResults="#{validatePlan.displayEvalTransform ? 'true' : ''}"						
						toggleType="client">
						<f:facet name="panel">
							<small>Result-Tree with all Alternatives, Aggregation
								method: Weighted multiplication</small>
						</f:facet>
					</p:resultTree>
				</div>
			</a4j:outputPanel>

			<!-- ********** results weighted sum ********** -->
			<a name="resultsSum" />
			<div id="menu" class="menu-step">
				<h2>Results: Weighted sum</h2>
			</div>

			<a4j:outputPanel layout="block" id="weightedSumResults"
				styleClass="center-position">
				<a4j:outputPanel layout="block"
					rendered="#{empty validatePlan.acceptableAlternatives}"
					styleClass="requiredIndicator">
		            None of the considered
		            alternatives have achieved acceptable values - all of them exhibit an
		            unacceptable performance for at least one aspect of the requirements
		            tree. However, to create a preservation plan, a feasible course of
		            action is needed. You may want to reconsider your acceptable
		            threshold settings in the Transformation step. You can do so by
		            returning to that step and changing your settings, and then continue
		            with the workflow.
			    </a4j:outputPanel>

				<a4j:outputPanel layout="block"
					rendered="#{validatePlan.showAllConsideredAlternativesForWeightedSum or not empty validatePlan.acceptableAlternatives}">
					<p:resultTree id="weightedSumResultsTree"
						treeHelper="#{validatePlan.resultstreeHelper}"
						rootNode="#{validatePlan.aggSumResultNodes}"
						alternatives="#{validatePlan.weightedSumResultTreeShownAlternatives}"
						linktoResults="#{validatePlan.displayEvalTransform ? 'true' : ''}">
						<f:facet name="panel">
							<div>
								<small> 
									<a4j:outputPanel layout="block"
											rendered="#{!validatePlan.knockedoutAlternativePresent or validatePlan.showAllConsideredAlternativesForWeightedSum}">
									Result-Tree with all alternatives, Aggregation
										method: Weighted sum
									</a4j:outputPanel>
									<a4j:outputPanel layout="block"
											rendered="#{validatePlan.knockedoutAlternativePresent and !validatePlan.showAllConsideredAlternativesForWeightedSum}">
									Result-Tree with alternatives without knock-out
										evaluation criteria, Aggregation method: Weighted sum
									</a4j:outputPanel>
									<a4j:outputPanel layout="block"
											rendered="#{validatePlan.knockedoutAlternativePresent}">
											<h:selectBooleanCheckbox
												value="#{validatePlan.showAllConsideredAlternativesForWeightedSum}">
												<a4j:ajax event="click"
													listener="#{validatePlan.switchShowAllConsideredAlternativesForWeightedSum()}"
													render="weightedSumResults" />
											</h:selectBooleanCheckbox>
									Show all alternatives
									</a4j:outputPanel>
								</small>
							</div>
						</f:facet>
					</p:resultTree>
				</a4j:outputPanel>
			</a4j:outputPanel>

		</div>


		<a name="conclusion" />
		<div id="menu" class="menu-step">
			<h2>Conclusion and Decision for Preservation Strategy</h2>
		</div>
		<div class="center-position">
			<div style="clear: both;">
				<strong><h:outputLabel for="conclusionrecommandation">Recommendation:</h:outputLabel></strong>
				<h:outputText id="conclusionrecommandation"
					value="#{validatePlan.plan.recommendation.alternative.name}" />
			</div>

			<div style="clear: both;">
				<strong><h:outputLabel for="conclusionreasoning">Reasoning:</h:outputLabel></strong>
				<h:outputText id="conclusionreasoning"
					value="#{validatePlan.plan.recommendation.reasoning}" />
			</div>

			<div style="clear: both;">
				<strong><h:outputLabel for="conclusioneffects">Effects of applying recommended solution:
		</h:outputLabel></strong>
				<h:outputText id="conclusioneffects"
					value="#{validatePlan.plan.recommendation.effects}" />
				<br /> <br />
			</div>

		</div>
		<a name="execution" />
		<div id="menu" class="menu-step">
			<h2>Preservation Action Plan</h2>
		</div>
		<div class="center-position">
			<h2>When</h2>
			<div style="clear: both;">
				<strong><h:outputLabel for="triggers_">Triggers and conditions:</h:outputLabel></strong>
				<h:outputText id="triggers_"
					value="#{validatePlan.plan.executablePlanDefinition.triggersConditions}" />
			</div>

			<div style="clear: both;">
				<strong><h:outputLabel for="validateQA_">Validate and QA:</h:outputLabel></strong>
				<h:outputText id="validateQA_"
					value="#{validatePlan.plan.executablePlanDefinition.validateQA}" />
			</div>

			<div style="clear: both;">
				<x:div
					renderthis="#{validatePlan.planetsExecutablePlanPrettyFormat != ''}">
					<strong><h:outputLabel for="execPP_planets">Planets executable plan:</h:outputLabel></strong>
					<br />
					<br />
					<pre>
		       <h:outputText id="execPP_planets"
							value="#{validatePlan.planetsExecutablePlanPrettyFormat}" />
             </pre>
				</x:div>
			</div>

			<br />

			<h2>What</h2>
			<table width="100%">
				<tr>
					<th width="20%"></th>
					<th width="80%"></th>
				</tr>
				<tr>
					<td style="padding-top: 10px"><b>Tool<br />
					</b></td>
					<td style="padding-top: 10px"><h:outputText id="toolagain"
							value="#{validatePlan.plan.recommendation.alternative.name}" /></td>
				</tr>
				<tr>
					<td style="padding-top: 10px"><b>Location of records<br />
					</b></td>
					<td style="padding-top: 10px"><h:outputText id="executionpath"
							value="#{validatePlan.plan.executablePlanDefinition.objectPath}" /></td>
				</tr>
				<tr>
					<td style="padding-top: 10px"><b>Parameters for tool<br />
					</b></td>
					<td style="padding-top: 10px"><h:outputText
							id="executionparameters"
							value="#{validatePlan.plan.executablePlanDefinition.toolParameters}" /></td>
				</tr>
			</table>
		</div>
		<a name="costs" />
		<div id="menu" class="menu-step">
			<h2>Costs</h2>
		</div>
		<div class="center-position">
			<h2>Estimate of Costs</h2>
			Costs in
			<h:outputText id="currency"
				value=" #{validatePlan.plan.planDefinition.currency}." />
			<br /> <br /> <b>Life-Costmodel</b>
			<table width="100%">
				<tr>
					<th width="20%"></th>
					<th width="80%"></th>
				</tr>
				<tr>
					<td style="padding-top: 10px">CIG (Integrate new solution)</td>
					<td style="padding-top: 10px"><h:outputText id="cig"
							value="#{validatePlan.plan.planDefinition.costsIG}" /></td>
				</tr>
				<tr>
					<td style="padding-top: 10px">CPE (Perform preservation
						action)</td>
					<td style="padding-top: 10px"><h:outputText id="cpe"
							value="#{validatePlan.plan.planDefinition.costsPE}" /></td>
				</tr>
				<tr>
					<td style="padding-top: 10px">CQA (Quality assure preservation
						action)</td>
					<td style="padding-top: 10px"><h:outputText id="cqa"
							value="#{validatePlan.plan.planDefinition.costsQA}" /></td>
				</tr>
				<tr>
					<td style="padding-top: 10px">CRM (Record preservation action
						metadata)</td>
					<td style="padding-top: 10px"><h:outputText id="crm"
							value="#{validatePlan.plan.planDefinition.costsRM}" /></td>
				</tr>
				<tr>
					<td style="padding-top: 10px"><b>Preservation action total
							(CIG+CPE+CQA+CRM)</b></td>
					<td style="padding-top: 10px"><h:outputText id="cpa"
							value="#{validatePlan.plan.planDefinition.costsPA}" /></td>
				</tr>
				<tr>
					<td style="padding-top: 10px">Reingest</td>
					<td style="padding-top: 10px"><h:outputText id="rei"
							value="#{validatePlan.plan.planDefinition.costsREI}" /><br /></td>
				</tr>
			</table>

			<table width="100%">
				<tr>
					<th width="20%"></th>
					<th width="80%"></th>
				</tr>
				<tr>
					<td style="padding-top: 10px"><b>TCO (Total Cost of
							Owneship)</b></td>
					<td style="padding-top: 10px"><h:outputText id="tco"
							value="#{validatePlan.plan.planDefinition.costsTCO}" /><br /></td>
				</tr>
			</table>

			<table width="100%">
				<tr>
					<th width="20%"></th>
					<th width="80%"></th>
				</tr>
				<tr>
					<td style="padding-top: 10px">Remarks</td>
					<td style="padding-top: 10px">
						<h:outputText id="costremarks"
							value="#{validatePlan.plan.planDefinition.costsRemarks}" /><br /></td>
				</tr>
			</table>

			<hr />
		</div>
		<a name="monitoring" />
		<div id="menu" class="menu-step">
			<h2>Monitoring</h2>
		</div>
		<div class="center-position">
			<table width="100%">
				<tr>
					<th width="20%"></th>
					<th width="80%"></th>
				</tr>

				<tr>
					<td style="padding-top: 10px"><b>Person responsible for
							execution<br />
					</b></td>
					<td style="padding-top: 10px"><h:outputText
							id="executionresponsible"
							value="#{validatePlan.plan.planDefinition.responsibleExecution}" /></td>
				</tr>

				<tr>
					<td style="padding-top: 10px"><b>Person responsible for
							monitoring<br />
					</b></td>
					<td style="padding-top: 10px"><h:outputText
							id="planmonitoring"
							value="#{validatePlan.plan.planDefinition.responsibleMonitoring}" /></td>
				</tr>


				<tr>
					<td style="padding-top: 10px"><b>Triggers for
							Re-Evaluation</b></td>
					<td>

						<table cellpadding="30" class="size-full">
							<tr>
								<th width="170px">Trigger</th>
								<th>Description</th>
							</tr>

							<p:outputTrigger
								trigger="#{validatePlan.plan.planDefinition.triggers.periodicReview}" />
							<p:outputTrigger
								trigger="#{validatePlan.plan.planDefinition.triggers.changedEnvironment}" />
							<p:outputTrigger
								trigger="#{validatePlan.plan.planDefinition.triggers.changedObjective}" />
							<p:outputTrigger
								trigger="#{validatePlan.plan.planDefinition.triggers.changedCollectionProfile}" />

						</table>

					</td>
				</tr>

			</table>
		</div>

		<!-- ********** approve plan ********** -->

		<a name="approval" />
		<div id="menu" class="menu-step">
			<h2>Plan Approval</h2>
		</div>
		<div class="center-position">
			<h:form id="mainform">
				<fieldset id="approval" class="size-full">
					<a4j:outputPanel layout="block" id="approveSection"
						style="text-align: center;">
						<a4j:commandButton id="approveButton"
							rendered="#{not validatePlan.plan.approved}"
							value="Approve this plan" styleClass="approve-button"
							action="#{validatePlan.approvePlan()}" render="approveSection" />

						<a4j:outputPanel layout="block"
							rendered="#{validatePlan.plan.approved}">
							<p>
								Plan '#{validatePlan.plan.planProperties.name}' has been created
								by #{validatePlan.plan.planProperties.changeLog.createdBy}. <br />
								It has been approved by
								#{validatePlan.plan.planProperties.changeLog.changedBy} on
								#{validatePlan.plan.planProperties.changeLog.changedString}. <br />
								This implies that it cannot be changed anymore unless it is
								formally revised again. Only the approving person can revise the
								plan.
							</p>
							<div class="save-discard-proceed-buttons">
								<h:commandButton id="deployTriggers" 
									value="Deploy Triggers"
									action="#{validatePlan.deployTriggers()}"
									styleClass="save-button" style="min-width: 150px; float: none;" />
								<a4j:outputPanel
									rendered="#{validatePlan.user.userGroup.repository == null or empty validatePlan.user.userGroup.repository.url}">
									<h:commandButton id="reviseButtonSingle"
										value="Revise this plan" action="#{validatePlan.revisePlan()}"
										styleClass="discard-button"
										style="min-width: 150px; float: none;" render="approveSection" />
								</a4j:outputPanel>
								<a4j:outputPanel
									rendered="#{validatePlan.user.userGroup.repository != null and not empty validatePlan.user.userGroup.repository.url}">
									<h:commandButton id="reviseButtonWithDeploy"
										value="Revise this plan" action="#{validatePlan.revisePlan()}"
										styleClass="discard-button" style="min-width: 150px;"
										render="approveSection" />
									<h:commandButton id="deploy" value="Deploy plan"
										styleClass="proceed-button" style="min-width: 150px;"
										render="approveSection">
										<rich:componentControl target="deployPopup" operation="show" />
									</h:commandButton>
								</a4j:outputPanel>
							</div>
						</a4j:outputPanel>
					</a4j:outputPanel>
				</fieldset>

				<rich:popupPanel id="deployPopup" width="600" height="150"
					onmaskclick="#{rich:component('deployPopup')}.hide();">
					<f:facet name="header">
						Deploy to #{validatePlan.user.userGroup.repository.url}
					</f:facet>
					<f:facet name="controls">
						<h:outputLink value="#"
							onclick="#{rich:component('deployPopup')}.hide(); return false;">X</h:outputLink>
					</f:facet>
					<p:inputText labelText="Username" id="repositoryUsername"
						input="#{validatePlan.repositoryUsername}" />

					<div class="component">
						<div class="label">
{'fraction_non_alphanumeric': 0.17812325356906974, 'fraction_numerical': 0.007646192145506274, 'mean_word_length': 3.164885738468049, 'pattern_counts': {'":': 0, '<': 2140, '<?xml version=': 0, '>': 2144, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 18}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7549144', 'n_tokens_mistral': 34951, 'n_tokens_neox': 25208, 'n_words': 4088}