diff src/main/webapp/clean/components/publicAuthorSubjects.xhtml @ 176:c63d39034b60

PublicByAuthor feature with new "Select by public and MAMS" text-UI.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Fri, 08 Jun 2018 15:32:27 +0200
parents src/main/webapp/clean/components/publicShowSubjects.xhtml@3d8b31508128
children ca83d67a2dc9
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/webapp/clean/components/publicAuthorSubjects.xhtml	Fri Jun 08 15:32:27 2018 +0200
@@ -0,0 +1,80 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+	xmlns:c="http://java.sun.com/jsp/jstl/core"
+	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:a4j="http://richfaces.org/a4j"
+	xmlns:rich="http://richfaces.org/rich">
+
+<body>
+	<ui:composition>
+
+		<!-- <h:outputStylesheet name="/css/ismi-db/repository.css" /> -->
+
+        <h:panelGrid id="setAuthorPanel" columns="1">
+
+        <h2 style="color:black; text-align:left">Author: #{Session.publicByAuthor.selectedPerson.ownValue}"</h2>
+
+		<h:panelGrid columns="3" styleClass="displayPanel"
+			columnClasses="displayPanelColumn01,displayPanelColumn02">
+
+			<h:outputLabel value="Person ID" />
+			<h:inputText value="#{Session.publicByAuthor.selectedPersonId}" />
+
+			<a4j:commandButton value="search"
+				actionListener="#{Session.publicByAuthor.listenerAuthorIdSearch}"
+				render="setAuthorPanel,selectSubjectPanel" />
+
+		</h:panelGrid>
+		</h:panelGrid>
+
+		<h:panelGrid id="selectSubjectPanel" columns="1"
+			style="margin-left:auto; margin-right:auto; text-align:left; width:100%;">
+			<rich:dataTable
+				value="#{Session.publicByAuthor.selectedPersonSubjects}"
+				var="subject" styleClass="select">
+				<rich:column>
+					<h2 style="margin-top:1em">
+						#{subject}
+						<ui:repeat
+							value="#{Session.publicByAuthor.subjectParents.get(subject)}"
+							var="parent"> &lt; #{parent}</ui:repeat>
+					</h2>
+
+					<a4j:commandButton value="make all these texts and their witnesses public"
+						actionListener="#{Session.publicByAuthor.actionMakePersonSubjectAndRelatedPublic}"
+						render="selectSubjectPanel" style="margin-bottom:0.5em"/>
+
+					<rich:dataTable
+						value="#{Session.publicByAuthor.selectedPersonSubjectMap.get(subject)}"
+						var="text">
+						<rich:column>
+							    #{text.ownValue}
+					    </rich:column>
+						<rich:column>
+							<h:outputLink
+								value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{text.id}"
+								target="_blank">[#{text.id}]</h:outputLink>
+						</rich:column>
+						<rich:column>
+							    #{text.privacity}
+						</rich:column>
+						<rich:column>
+		                  <a4j:commandButton value="make this text and its witnesses public"
+                                actionListener="#{Session.publicByAuthor.actionMakeTextAndRelatedPublic}"
+                                render="selectSubjectPanel"/>
+						</rich:column>
+					</rich:dataTable>
+
+				</rich:column>
+			</rich:dataTable>
+
+
+		</h:panelGrid>
+
+
+
+	</ui:composition>
+</body>
+</html>