Mercurial > hg > ismi-richfaces
comparison src/main/webapp/clean/components/findAuthor.xhtml @ 168:e9ab943ec528 public_by_author
new start for publicByAuthor using EntityRepositoryBean.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 30 May 2018 20:23:45 +0200 |
parents | 85fdcca37a0d |
children |
comparison
equal
deleted
inserted
replaced
167:54246f538821 | 168:e9ab943ec528 |
---|---|
14 <h:panelGrid columns="2" styleClass="displayPanel" | 14 <h:panelGrid columns="2" styleClass="displayPanel" |
15 columnClasses="displayPanelColumn01,displayPanelColumn02"> | 15 columnClasses="displayPanelColumn01,displayPanelColumn02"> |
16 | 16 |
17 <h:panelGrid columns="1"> | 17 <h:panelGrid columns="1"> |
18 <h:outputLabel value="Person name" /> | 18 <h:outputLabel value="Person name" /> |
19 <h:outputLabel value="(name_translit, empty shows all)" /> | 19 <h:outputLabel value="(name_translit)" /> |
20 </h:panelGrid> | 20 </h:panelGrid> |
21 <h:inputText | 21 <h:inputText value="#{Session.publicByAuthor.browseBean.personNameTranslit}" /> |
22 value="#{Session.publicByAuthor.findAuthorName}" /> | |
23 | 22 |
24 <h:outputText /> | 23 <a4j:commandButton value="show all" |
24 actionListener="#{Session.publicByAuthor.listenerAllAuthorSearch}" | |
25 render="selectPersonPanel" /> | |
26 | |
25 <a4j:commandButton value="search" | 27 <a4j:commandButton value="search" |
26 actionListener="#{Session.publicByAuthor.listenerFindAuthorSearch}" | 28 actionListener="#{Session.publicByAuthor.browseBean.actionSearchByAttributes}" |
27 render="selectPersonPanel" /> | 29 render="selectPersonPanel" /> |
30 | |
28 | 31 |
29 </h:panelGrid> | 32 </h:panelGrid> |
30 | 33 |
31 <h:panelGrid id="selectPersonPanel" columns="1"> | 34 <h:panelGrid id="selectPersonPanel" columns="1" |
32 | 35 style="margin-left: auto; margin-right: auto; text-align: center; width: 100%;" |
33 <h:panelGrid columns="1" | 36 > |
34 rendered="#{!empty Session.publicByAuthor.rs}"> | |
35 | |
36 <rich:dataTable var="entry" | |
37 value="#{Session.publicByAuthor.rs}" | |
38 paginator="true" rows="20"> | |
39 | |
40 <f:facet name="header"> | |
41 <rich:dataScroller id="scroller" /> | |
42 </f:facet> | |
43 | |
44 <h:column> | |
45 <f:facet name="header"> | |
46 <h:outputText value="Person ID" /> | |
47 </f:facet> | |
48 <h:outputText value="#{entry.personId}" /> | |
49 </h:column> | |
50 | |
51 <h:column> | |
52 <f:facet name="header"> | |
53 <h:outputText value="Person Label" /> | |
54 </f:facet> | |
55 <h:outputText value="#{entry.personOv}" /> | |
56 </h:column> | |
57 | |
58 <h:column> | |
59 <f:facet name="header"> | |
60 <h:outputText value="Role" /> | |
61 </f:facet> | |
62 <h:outputText value="#{entry.role}" /> | |
63 </h:column> | |
64 | |
65 <h:column | |
66 rendered="#{Session.advancedSearch.titles4PersonQuery.displayAlias}"> | |
67 <f:facet name="header"> | |
68 <h:outputText value="Alias 2 Person" /> | |
69 </f:facet> | |
70 <h:outputText value="#{entry.alias2Person}" /> | |
71 </h:column> | |
72 | |
73 <h:column | |
74 rendered="#{Session.advancedSearch.titles4PersonQuery.displayAlias}"> | |
75 <f:facet name="header"> | |
76 <h:outputText value="Alias" /> | |
77 </f:facet> | |
78 <h:outputText value="#{entry.alias}" /> | |
79 </h:column> | |
80 | |
81 <h:column> | |
82 <f:facet name="header"> | |
83 <h:outputText value="Subject" /> | |
84 </f:facet> | |
85 <h:outputText value="#{entry.subject}" /> | |
86 </h:column> | |
87 | |
88 <h:column> | |
89 <f:facet name="header"> | |
90 <h:outputText value="Title ID" /> | |
91 </f:facet> | |
92 <h:outputText value="#{entry.titleId}" /> | |
93 </h:column> | |
94 | |
95 <h:column> | |
96 <f:facet name="header"> | |
97 <h:outputText value="Subject" /> | |
98 </f:facet> | |
99 <h:outputText value="#{entry.subject}" /> | |
100 </h:column> | |
101 | |
102 <h:column> | |
103 <f:facet name="header"> | |
104 <h:outputText value="Title Label" /> | |
105 </f:facet> | |
106 <h:outputText value="#{entry.titleOv}" /> | |
107 </h:column> | |
108 | |
109 <h:column | |
110 rendered="#{Session.advancedSearch.titles4PersonQuery.displayCodex}"> | |
111 <f:facet name="header"> | |
112 <h:outputText value="Codex Id" /> | |
113 </f:facet> | |
114 <h:outputText value="#{entry.codexId}" /> | |
115 </h:column> | |
116 | |
117 <h:column | |
118 rendered="#{Session.advancedSearch.titles4PersonQuery.displayCodex}"> | |
119 <f:facet name="header"> | |
120 <h:outputText value="Codex Label" /> | |
121 </f:facet> | |
122 <h:outputText value="#{entry.codexOv}" /> | |
123 </h:column> | |
124 | |
125 <h:column | |
126 rendered="#{Session.advancedSearch.titles4PersonQuery.displayCodex}"> | |
127 <f:facet name="header"> | |
128 <h:outputText value="Witness Id" /> | |
129 </f:facet> | |
130 <h:outputText value="#{entry.witnessId}" /> | |
131 </h:column> | |
132 | |
133 <h:column | |
134 rendered="#{Session.advancedSearch.titles4PersonQuery.displayCodex}"> | |
135 <f:facet name="header"> | |
136 <h:outputText value="Witness Label" /> | |
137 </f:facet> | |
138 <h:outputText value="#{entry.witnessOv}" /> | |
139 </h:column> | |
140 | |
141 <h:column> | |
142 <f:facet name="header"> | |
143 <h:outputText value="Query" /> | |
144 </f:facet> | |
145 <h:outputText value="#{entry.query}" /> | |
146 </h:column> | |
147 </rich:dataTable> | |
148 | 37 |
149 | 38 |
39 <h:outputText | |
40 value="#{Session.publicByAuthor.browseBean.resultSummaryMsg}" | |
41 rendered="#{!empty Session.publicByAuthor.browseBean.resultSummaryMsg}" | |
42 styleClass="sumaryMsg" /> | |
150 | 43 |
151 </h:panelGrid> | 44 <h:column |
45 rendered="#{!empty Session.publicByAuthor.browseBean.entities}"> | |
46 <h:outputText value="go to page" styleClass="sumaryMsg" /> | |
47 <h:inputText value="#{Session.publicByAuthor.browseBean.page}" | |
48 size="4" /> | |
49 <h:commandButton value="submit" | |
50 actionListener="#{Session.publicByAuthor.browseBean.actionGoToPageAdvancedResult}" /> | |
51 <h:outputText value=" #{Session.publicByAuthor.browseBean.pageMsg}" | |
52 rendered="#{!empty Session.publicByAuthor.browseBean.pageMsg}" | |
53 style="color:red" /> | |
54 </h:column> | |
55 | |
56 | |
57 <h:column | |
58 rendered="#{!empty Session.publicByAuthor.browseBean.entities}"> | |
59 <h:panelGroup> | |
60 <h:commandButton | |
61 image="/resources/css/xp/css-images/arrow-first.gif" | |
62 style="border:none;" title="First Page" | |
63 action="#{Session.publicByAuthor.browseBean.advancedFirst}" /> | |
64 | |
65 <h:commandButton image="/resources/css/xp/css-images/arrow-fr.gif" | |
66 style="border:none;" title="Fast Backwards" | |
67 action="#{Session.publicByAuthor.browseBean.advancedFastRewind}" /> | |
68 | |
69 <h:commandButton | |
70 image="/resources/css/xp/css-images/arrow-previous.gif" | |
71 style="border:none;" title="Previous Page" | |
72 action="#{Session.publicByAuthor.browseBean.advancedPrevious}" /> | |
73 | |
74 <h:outputText | |
75 value="#{Session.publicByAuthor.browseBean.advancedPaginator.recordStatus}" | |
76 styleClass="sumaryMsg" /> | |
77 | |
78 <h:commandButton | |
79 image="/resources/css/xp/css-images/arrow-next.gif" | |
80 style="border:none;" title="Next Page" | |
81 action="#{Session.publicByAuthor.browseBean.advancedNext}" /> | |
82 | |
83 <h:commandButton image="/resources/css/xp/css-images/arrow-ff.gif" | |
84 style="border:none;" title="Fast Forward" | |
85 action="#{Session.publicByAuthor.browseBean.advancedFastForward}" /> | |
86 | |
87 <h:commandButton | |
88 image="/resources/css/xp/css-images/arrow-last.gif" | |
89 style="border:none;" title="Last Page" | |
90 action="#{Session.publicByAuthor.browseBean.advancedLast}" /> | |
91 </h:panelGroup> | |
92 </h:column> | |
93 | |
94 <rich:dataTable id="advancedDataTable" rows="10" | |
95 value="#{Session.publicByAuthor.browseBean.currentEntities}" | |
96 rendered="#{!empty Session.publicByAuthor.browseBean.currentEntities}" | |
97 var="entity" styleClass="rsPanel" columnClasses="rsPanelColumn"> | |
98 <h:column> | |
99 <h:outputText value="[#{entity.objectClass}] " /> | |
100 <h:outputLink | |
101 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{entity.id}"> | |
102 <h:outputText | |
103 value="#{entity.ownValue} - [#{entity.id}, #{entity.privacity}]" /> | |
104 </h:outputLink> | |
105 <h:commandButton | |
106 action="#{Session.publicByAuthor.browseBean.actionEdit}" | |
107 rendered="#{Session.canEdit}" | |
108 image="/resources/css/xp/css-images//edit16.gif" | |
109 title="Edit this entity" /> | |
110 </h:column> | |
111 </rich:dataTable> | |
112 | |
113 <h:column | |
114 rendered="#{!empty Session.publicByAuthor.browseBean.entities}"> | |
115 <h:panelGroup> | |
116 <h:commandButton | |
117 image="/resources/css/xp/css-images/arrow-first.gif" | |
118 style="border:none;" title="First Page" | |
119 action="#{Session.publicByAuthor.browseBean.advancedFirst}" /> | |
120 | |
121 <h:commandButton image="/resources/css/xp/css-images/arrow-fr.gif" | |
122 style="border:none;" title="Fast Backwards" | |
123 action="#{Session.publicByAuthor.browseBean.advancedFastRewind}" /> | |
124 | |
125 <h:commandButton | |
126 image="/resources/css/xp/css-images/arrow-previous.gif" | |
127 style="border:none;" title="Previous Page" | |
128 action="#{Session.publicByAuthor.browseBean.advancedPrevious}" /> | |
129 | |
130 <h:outputText | |
131 value="#{Session.publicByAuthor.browseBean.advancedPaginator.recordStatus}" | |
132 styleClass="sumaryMsg" /> | |
133 | |
134 <h:commandButton | |
135 image="/resources/css/xp/css-images/arrow-next.gif" | |
136 style="border:none;" title="Next Page" | |
137 action="#{Session.publicByAuthor.browseBean.advancedNext}" /> | |
138 | |
139 <h:commandButton image="/resources/css/xp/css-images/arrow-ff.gif" | |
140 style="border:none;" title="Fast Forward" | |
141 action="#{Session.publicByAuthor.browseBean.advancedFastForward}" /> | |
142 | |
143 <h:commandButton | |
144 image="/resources/css/xp/css-images/arrow-last.gif" | |
145 style="border:none;" title="Last Page" | |
146 action="#{Session.publicByAuthor.browseBean.advancedLast}" /> | |
147 </h:panelGroup> | |
148 </h:column> | |
149 | |
152 | 150 |
153 </h:panelGrid> | 151 </h:panelGrid> |
154 | |
155 | |
156 | |
157 | 152 |
158 | 153 |
159 | 154 |
160 </ui:composition> | 155 </ui:composition> |
161 </body> | 156 </body> |