view src/main/webapp/clean/components/publicMamsSubjects.xhtml @ 177:af1018d06443

PublicByAuthor feature with new "Select by public and MAMS" works now!
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Fri, 08 Jun 2018 17:03:35 +0200
parents c63d39034b60
children
line wrap: on
line source

<!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 columns="2" styleClass="displayPanel"
			columnClasses="displayPanelColumn01,displayPanelColumn02">

			<h:outputLabel value="Maximum MAMS number" />
			<h:inputText value="#{Session.publicByAuthor.maxMamsNr}" />

		</h:panelGrid>

		<h:panelGrid id="selectSubjectPanel2" columns="1"
			style="margin-left:auto; margin-right:auto; text-align:left; width:100%;">
			<rich:dataTable
				value="#{Session.publicByAuthor.subjectList}"
				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 texts up to given MAMS number and their witnesses public"
						actionListener="#{Session.publicByAuthor.actionMakeMamsSubjectAndRelatedPublic}"
						render="selectSubjectPanel2" style="margin-bottom:0.5em"/>

                    <div>
						#{Session.publicByAuthor.subjectPublicTexts.get(subject).size()}
						public texts,
						#{Session.publicByAuthor.subjectPrivateTexts.get(subject).size()}
						private texts on
						<h:outputLink
							value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{Session.publicByAuthor.subjectEntity.get(subject).getId()}"
							target="_blank">this subject</h:outputLink> (regardless of MAMS number).
					</div>
				</rich:column>
			</rich:dataTable>


		</h:panelGrid>

	</ui:composition>
</body>
</html>