diff src/main/webapp/search/displayTitle.xhtml @ 149:a279d80fae42

cleanup. added links to Entity Details in Author and Text display forms.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Tue, 11 Jul 2017 18:24:08 +0200
parents 71638720fe2f
children d305a1b3e4c9
line wrap: on
line diff
--- a/src/main/webapp/search/displayTitle.xhtml	Tue Jul 11 17:44:50 2017 +0200
+++ b/src/main/webapp/search/displayTitle.xhtml	Tue Jul 11 18:24:08 2017 +0200
@@ -26,7 +26,7 @@
 				<h:commandButton value="Edit form"
 					image="#{ApplicationBean1.editImage}" title="Edit This Entity"
 					action="#{Session.displayTitle.actionEditTitle}"
-					rendered="#{Session.user != null}" />
+					rendered="#{Session.canEdit}" />
 
 
 				<h:panelGrid columns="2" styleClass="displayPanel"
@@ -35,13 +35,17 @@
 					<h:outputText value="Permission" />
 					<h:panelGrid columns="2">
 						<h:outputText value="#{Session.displayTitle.title.privacity} - " />
-						<h:commandLink value="change" rendered="#{Session.user != null}"
+						<h:commandLink value="change" rendered="#{Session.canEdit}"
 							actionListener="#{Session.displayTitle.changePrivacity4Title}"
 							onclick="if(!confirm('Do you really want to change the privacity of this title?')){ return; };" />
 					</h:panelGrid>
 
 					<h:outputText value="Title ID" />
-					<h:outputText value="#{Session.displayTitle.selectedTitleId}" />
+                    <h:outputLink
+                        value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{Session.displayAuthor.selectedTitleId}" 
+                        title="Metadata of the entity">
+					   <h:outputText value="#{Session.displayTitle.selectedTitleId}" />
+				   </h:outputLink>
 
 					<h:outputText value="Full title" />
 					<h:outputText value="#{Session.displayTitle.title.fullTitle}" />
@@ -176,7 +180,7 @@
 						styleClass="titlePanel" />
 
 					<h:panelGrid columns="1"
-						rendered="#{(!empty Session.displayTitle.witnessItems) and Session.user != null}">
+						rendered="#{(!empty Session.displayTitle.witnessItems) and Session.canEdit}">
 						<h:commandLink value="Make all public"
 							actionListener="#{Session.displayTitle.listenerMakeAllWitnessesPublic}"
 							onclick="if(!confirm('Do you really want to change the privacity these witnesses?\nThis action can take some minutes.')){ return; };" />
@@ -217,13 +221,17 @@
 						<h:panelGrid columns="2">
 							<h:outputText
 								value="#{Session.displayTitle.witness.privacity} - " />
-							<h:commandLink value="change" rendered="#{Session.user != null}"
+							<h:commandLink value="change" rendered="#{Session.canEdit}"
 								actionListener="#{Session.displayTitle.changePrivacity4Witness}"
 								onclick="if(!confirm('Do you really want to change the privacity of this witness?')){ return; };" />
 						</h:panelGrid>
 
 						<h:outputText value="Witness ID" />
-						<h:outputText value="#{Session.displayTitle.selectedWitnessId}" />
+                        <h:outputLink
+                             value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{Session.displayAuthor.selectedWitnessId}" 
+                             title="Metadata of the entity">
+						    <h:outputText value="#{Session.displayTitle.selectedWitnessId}" />
+					    </h:outputLink>
 
 						<h:outputText value="State" />
 						<h:outputText value="#{Session.displayTitle.witness.status}" />