<% /* 
 CDDL HEADER START

 The contents of this file are subject to the terms of the
 Common Development and Distribution License, Version 1.0 only
 (the "License"). You may not use this file except in compliance
 with the License.

 You can obtain a copy of the license at license/ESCIDOC.LICENSE
 or http://www.escidoc.de/license.
 See the License for the specific language governing permissions
 and limitations under the License.

 When distributing Covered Code, include this CDDL HEADER in each
 file and include the License file at license/ESCIDOC.LICENSE.
 If applicable, add the following below this CDDL HEADER, with the
 fields enclosed by brackets "[]" replaced with your own identifying
 information: Portions Copyright [yyyy] [name of copyright owner]

 CDDL HEADER END


 Copyright 2006-2009 Fachinformationszentrum Karlsruhe Gesellschaft
 f�r wissenschaftlich-technische Information mbH and Max-Planck-
 Gesellschaft zur F�rderung der Wissenschaft e.V.
 All rights reserved. Use is subject to license terms.
*/ %>

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>


<div class="full_area0 itemHeader">
	<h:panelGroup styleClass="xLarge_area0 endline" >
		&#160;<h:outputText value="#{lbl.AffiliationTree_txtHeadline}" />
	</h:panelGroup>
		<h:panelGroup styleClass="seperator" />
	<h:panelGroup styleClass="free_area0_p8 endline itemHeadline">
		<tr:tree var="node" value="#{AffiliationBean.tree}" varStatus="status" selectedRowKeys="#{AffiliationBean.selected}" selectionListener="#{AffiliationBean.select}">
			<f:facet name="nodeStamp">
				<h:panelGroup>
					<h:graphicImage value="../images/minerva_22.gif" height="22px" width="22px" rendered="#{node.mps}"/>
					<h:graphicImage value="../images/affiliations_tree_22.gif" height="22px" width="22px" rendered="#{!node.mps && node.topLevel}"/>
					<h:graphicImage value="../images/publications_22.gif" height="22px" width="22px" rendered="#{!node.topLevel}"/>
					<tr:commandLink text="#{node.name}" action="#{node.startSearch}"/>
					<h:commandButton title="#{tip.Affiliation_details}" image="./images/PM_info_16.gif" onclick="openCenteredWindow('#{ApplicationBean.appContext}AffiliationDetailPage.jsp?id=#{node.reference.objectId}', 800, 400, 'Details');return false"/>
					<tr:outputText value=" (#{lbl.AffilitationTree_ouClosed})" rendered="#{node.isClosed}"/>
				</h:panelGroup>
			</f:facet>
		</tr:tree>
	</h:panelGroup>
</div>