comparison src/main/webapp/clean/components/publicFindAuthor.xhtml @ 169:0b5d02012299 public_by_author

more work on publicByAuthor feature.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Thu, 31 May 2018 20:26:10 +0200
parents src/main/webapp/clean/components/findAuthor.xhtml@e9ab943ec528
children aa564b1b5e1f
comparison
equal deleted inserted replaced
168:e9ab943ec528 169:0b5d02012299
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:h="http://java.sun.com/jsf/html"
4 xmlns:f="http://java.sun.com/jsf/core"
5 xmlns:ui="http://java.sun.com/jsf/facelets"
6 xmlns:a4j="http://richfaces.org/a4j"
7 xmlns:rich="http://richfaces.org/rich">
8
9 <body>
10 <ui:composition>
11
12 <!-- <h:outputStylesheet name="/css/ismi-db/repository.css" /> -->
13
14
15
16 <h:panelGrid columns="2" styleClass="displayPanel"
17 columnClasses="displayPanelColumn01,displayPanelColumn02">
18
19 <h:panelGrid columns="1">
20 <h:outputLabel value="Person name" />
21 <h:outputLabel value="(name_translit)" />
22 </h:panelGrid>
23 <h:inputText value="#{Session.publicByAuthor.browseBean.personNameTranslit}" />
24
25 <a4j:commandButton value="show all"
26 actionListener="#{Session.publicByAuthor.listenerAllAuthorSearch}"
27 render="selectPersonPanel" />
28
29 <a4j:commandButton value="search"
30 actionListener="#{Session.publicByAuthor.browseBean.actionSearchByAttributes}"
31 render="selectPersonPanel" />
32
33
34 </h:panelGrid>
35
36 <h:panelGrid id="selectPersonPanel" columns="1"
37 style="margin-left: auto; margin-right: auto; text-align: center; width: 100%;"
38 >
39
40
41 <h:outputText
42 value="#{Session.publicByAuthor.browseBean.resultSummaryMsg}"
43 rendered="#{!empty Session.publicByAuthor.browseBean.resultSummaryMsg}"
44 styleClass="sumaryMsg" />
45
46 <h:column
47 rendered="#{!empty Session.publicByAuthor.browseBean.entities}">
48 <h:outputText value="go to page" styleClass="sumaryMsg" />
49 <h:inputText value="#{Session.publicByAuthor.browseBean.page}"
50 size="4" />
51 <h:commandButton value="submit"
52 actionListener="#{Session.publicByAuthor.browseBean.actionGoToPageAdvancedResult}" />
53 <h:outputText value=" #{Session.publicByAuthor.browseBean.pageMsg}"
54 rendered="#{!empty Session.publicByAuthor.browseBean.pageMsg}"
55 style="color:red" />
56 </h:column>
57
58
59 <h:column
60 rendered="#{!empty Session.publicByAuthor.browseBean.entities}">
61 <h:panelGroup>
62 <h:commandButton
63 image="/resources/css/xp/css-images/arrow-first.gif"
64 style="border:none;" title="First Page"
65 action="#{Session.publicByAuthor.browseBean.advancedFirst}" />
66
67 <h:commandButton image="/resources/css/xp/css-images/arrow-fr.gif"
68 style="border:none;" title="Fast Backwards"
69 action="#{Session.publicByAuthor.browseBean.advancedFastRewind}" />
70
71 <h:commandButton
72 image="/resources/css/xp/css-images/arrow-previous.gif"
73 style="border:none;" title="Previous Page"
74 action="#{Session.publicByAuthor.browseBean.advancedPrevious}" />
75
76 <h:outputText
77 value="#{Session.publicByAuthor.browseBean.advancedPaginator.recordStatus}"
78 styleClass="sumaryMsg" />
79
80 <h:commandButton
81 image="/resources/css/xp/css-images/arrow-next.gif"
82 style="border:none;" title="Next Page"
83 action="#{Session.publicByAuthor.browseBean.advancedNext}" />
84
85 <h:commandButton image="/resources/css/xp/css-images/arrow-ff.gif"
86 style="border:none;" title="Fast Forward"
87 action="#{Session.publicByAuthor.browseBean.advancedFastForward}" />
88
89 <h:commandButton
90 image="/resources/css/xp/css-images/arrow-last.gif"
91 style="border:none;" title="Last Page"
92 action="#{Session.publicByAuthor.browseBean.advancedLast}" />
93 </h:panelGroup>
94 </h:column>
95
96 <rich:dataTable id="advancedDataTable" rows="10"
97 value="#{Session.publicByAuthor.browseBean.currentEntities}"
98 rendered="#{!empty Session.publicByAuthor.browseBean.currentEntities}"
99 var="entity" styleClass="rsPanel" columnClasses="rsPanelColumn">
100 <h:column style="text-align:left">
101 <f:facet name="header">MAMS</f:facet>
102 <h:outputText value="#{entity.getAttributeByName('mams_number').getValue()}" />
103 </h:column>
104 <h:column style="text-align:left">
105 <f:facet name="header">Person</f:facet>
106 <h:commandLink
107 rerender="tabPanel"
108 action="#{Session.publicByAuthor.actionSelectPerson}">
109 <h:outputText
110 value="#{entity.ownValue}" />
111 </h:commandLink>
112 <h:outputLink
113 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{entity.id}">
114 <h:outputText
115 value=" - [#{entity.id}]" />
116 </h:outputLink>
117 <h:commandButton
118 action="#{Session.publicByAuthor.browseBean.actionEdit}"
119 rendered="#{Session.canEdit}"
120 image="/resources/css/xp/css-images/edit16.gif"
121 title="Edit this entity" />
122 </h:column>
123 <h:column style="text-align:left">
124 <f:facet name="header">State</f:facet>
125 <h:outputText value="#{entity.privacity}" />
126 </h:column>
127 </rich:dataTable>
128
129 <h:column
130 rendered="#{!empty Session.publicByAuthor.browseBean.entities}">
131 <h:panelGroup>
132 <h:commandButton
133 image="/resources/css/xp/css-images/arrow-first.gif"
134 style="border:none;" title="First Page"
135 action="#{Session.publicByAuthor.browseBean.advancedFirst}" />
136
137 <h:commandButton image="/resources/css/xp/css-images/arrow-fr.gif"
138 style="border:none;" title="Fast Backwards"
139 action="#{Session.publicByAuthor.browseBean.advancedFastRewind}" />
140
141 <h:commandButton
142 image="/resources/css/xp/css-images/arrow-previous.gif"
143 style="border:none;" title="Previous Page"
144 action="#{Session.publicByAuthor.browseBean.advancedPrevious}" />
145
146 <h:outputText
147 value="#{Session.publicByAuthor.browseBean.advancedPaginator.recordStatus}"
148 styleClass="sumaryMsg" />
149
150 <h:commandButton
151 image="/resources/css/xp/css-images/arrow-next.gif"
152 style="border:none;" title="Next Page"
153 action="#{Session.publicByAuthor.browseBean.advancedNext}" />
154
155 <h:commandButton image="/resources/css/xp/css-images/arrow-ff.gif"
156 style="border:none;" title="Fast Forward"
157 action="#{Session.publicByAuthor.browseBean.advancedFastForward}" />
158
159 <h:commandButton
160 image="/resources/css/xp/css-images/arrow-last.gif"
161 style="border:none;" title="Last Page"
162 action="#{Session.publicByAuthor.browseBean.advancedLast}" />
163 </h:panelGroup>
164 </h:column>
165
166
167 </h:panelGrid>
168
169
170
171 </ui:composition>
172 </body>
173 </html>