comparison src/main/webapp/clean/components/publicMamsSubjects.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
children af1018d06443
comparison
equal deleted inserted replaced
175:3d8b31508128 176:c63d39034b60
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml"
3 xmlns:c="http://java.sun.com/jsp/jstl/core"
4 xmlns:h="http://java.sun.com/jsf/html"
5 xmlns:f="http://java.sun.com/jsf/core"
6 xmlns:ui="http://java.sun.com/jsf/facelets"
7 xmlns:a4j="http://richfaces.org/a4j"
8 xmlns:rich="http://richfaces.org/rich">
9
10 <body>
11 <ui:composition>
12
13 <!-- <h:outputStylesheet name="/css/ismi-db/repository.css" /> -->
14
15 <h:panelGrid columns="2" styleClass="displayPanel"
16 columnClasses="displayPanelColumn01,displayPanelColumn02">
17
18 <h:outputLabel value="Maximum MAMS number" />
19 <h:inputText value="#{Session.publicByAuthor.maxMamsNr}" />
20
21 </h:panelGrid>
22
23 <h:panelGrid id="selectSubjectPanel2" columns="1"
24 style="margin-left:auto; margin-right:auto; text-align:left; width:100%;">
25 <rich:dataTable
26 value="#{Session.publicByAuthor.subjectList}"
27 var="subject" styleClass="select">
28 <rich:column>
29 <h2 style="margin-top:1em">
30 #{subject}
31 <ui:repeat
32 value="#{Session.publicByAuthor.subjectParents.get(subject)}"
33 var="parent"> &lt; #{parent}</ui:repeat>
34 </h2>
35
36 <a4j:commandButton value="make all texts up to given MAMS number and their witnesses public"
37 actionListener="#{Session.publicByAuthor.NoactionMakeMamsSubjectAndRelatedPublic}"
38 render="selectSubjectPanel" style="margin-bottom:0.5em"/>
39
40 <div>
41 #{Session.publicByAuthor.subjectPublicTexts.get(subject).size()}
42 public texts,
43 #{Session.publicByAuthor.subjectPrivateTexts.get(subject).size()}
44 private texts on
45 <h:outputLink
46 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{Session.publicByAuthor.subjectEntity.get(subject).getId()}"
47 target="_blank">this subject</h:outputLink> (regardless of MAMS number).
48 </div>
49 </rich:column>
50 </rich:dataTable>
51
52
53 </h:panelGrid>
54
55 </ui:composition>
56 </body>
57 </html>