comparison 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
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 id="setAuthorPanel" columns="1">
16
17 <h2 style="color:black; text-align:left">Author: #{Session.publicByAuthor.selectedPerson.ownValue}"</h2>
18
19 <h:panelGrid columns="3" styleClass="displayPanel"
20 columnClasses="displayPanelColumn01,displayPanelColumn02">
21
22 <h:outputLabel value="Person ID" />
23 <h:inputText value="#{Session.publicByAuthor.selectedPersonId}" />
24
25 <a4j:commandButton value="search"
26 actionListener="#{Session.publicByAuthor.listenerAuthorIdSearch}"
27 render="setAuthorPanel,selectSubjectPanel" />
28
29 </h:panelGrid>
30 </h:panelGrid>
31
32 <h:panelGrid id="selectSubjectPanel" columns="1"
33 style="margin-left:auto; margin-right:auto; text-align:left; width:100%;">
34 <rich:dataTable
35 value="#{Session.publicByAuthor.selectedPersonSubjects}"
36 var="subject" styleClass="select">
37 <rich:column>
38 <h2 style="margin-top:1em">
39 #{subject}
40 <ui:repeat
41 value="#{Session.publicByAuthor.subjectParents.get(subject)}"
42 var="parent"> &lt; #{parent}</ui:repeat>
43 </h2>
44
45 <a4j:commandButton value="make all these texts and their witnesses public"
46 actionListener="#{Session.publicByAuthor.actionMakePersonSubjectAndRelatedPublic}"
47 render="selectSubjectPanel" style="margin-bottom:0.5em"/>
48
49 <rich:dataTable
50 value="#{Session.publicByAuthor.selectedPersonSubjectMap.get(subject)}"
51 var="text">
52 <rich:column>
53 #{text.ownValue}
54 </rich:column>
55 <rich:column>
56 <h:outputLink
57 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{text.id}"
58 target="_blank">[#{text.id}]</h:outputLink>
59 </rich:column>
60 <rich:column>
61 #{text.privacity}
62 </rich:column>
63 <rich:column>
64 <a4j:commandButton value="make this text and its witnesses public"
65 actionListener="#{Session.publicByAuthor.actionMakeTextAndRelatedPublic}"
66 render="selectSubjectPanel"/>
67 </rich:column>
68 </rich:dataTable>
69
70 </rich:column>
71 </rich:dataTable>
72
73
74 </h:panelGrid>
75
76
77
78 </ui:composition>
79 </body>
80 </html>