Mercurial > hg > ismi-richfaces
annotate src/main/webapp/search/simpleSearch.xhtml @ 199:8af530c5b4cd
new find-lost-alias function in clean menu to delete aliases without relations.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 23 Jan 2019 20:28:00 +0100 |
parents | 13fb56030fe8 |
children |
rev | line source |
---|---|
7 | 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 template="/templates/publicTemplate.xhtml"> | |
11 <ui:define name="title">ISMI - simple search</ui:define> | |
12 | |
13 <ui:define name="publicContent"> | |
14 | |
15 <h:outputStylesheet name="/css/ismi-db/display.css" /> | |
16 | |
52
4ee8d47e1e34
hide simple search when not logged in. add scan viewer link to displayAuthor when codex is public.
casties
parents:
7
diff
changeset
|
17 <div id="simpleSearch"> |
4ee8d47e1e34
hide simple search when not logged in. add scan viewer link to displayAuthor when codex is public.
casties
parents:
7
diff
changeset
|
18 <h:outputText rendered="#{not Session.canCreate}" |
4ee8d47e1e34
hide simple search when not logged in. add scan viewer link to displayAuthor when codex is public.
casties
parents:
7
diff
changeset
|
19 value="Please log in through the 'login' link above on the right." /> |
4ee8d47e1e34
hide simple search when not logged in. add scan viewer link to displayAuthor when codex is public.
casties
parents:
7
diff
changeset
|
20 <h:panelGroup rendered="#{Session.canCreate}"> |
7 | 21 |
22 <div id="pageTitle"> | |
23 <h:outputText value="Simple Search in Author and Title" /> | |
24 </div> | |
25 | |
26 <h:panelGrid columns="1"> | |
27 <h:form> | |
28 <h:panelGrid columns="1" | |
29 rendered="#{SimpleSearch.inputMethod!='arabic'}"> | |
30 <h:panelGroup> | |
31 <h:inputText id="search-input-enter" | |
32 value="#{SimpleSearch.searchTerm}" | |
33 actionListener="#{SimpleSearch.listenerSearch}" size="70" | |
34 autocomplete="off" /> | |
35 <h:commandButton value="submit" | |
36 actionListener="#{SimpleSearch.listenerSearch}" /> | |
37 </h:panelGroup> | |
38 </h:panelGrid> | |
39 | |
40 <h:panelGroup rendered="#{SimpleSearch.inputMethod=='arabic'}"> | |
41 <h:panelGroup> | |
42 <h:inputText id="arabicSearchTerm" | |
43 onfocus="changeTranslit(document.getElementById('selectConv').value, this.id)" | |
44 onkeypress="return doConvert(event, this.id);" | |
45 value="#{SimpleSearch.searchTerm}" size="70" | |
46 actionListener="#{SimpleSearch.listenerSearch}" | |
47 autocomplete="off" style="text-align:right;" /> | |
48 <h:commandButton | |
49 value="submit" | |
50 actionListener="#{SimpleSearch.listenerSearch}" /> | |
51 </h:panelGroup> | |
52 </h:panelGroup> | |
53 | |
54 <h:panelGroup> | |
55 <h:selectOneMenu partialSubmit="true" | |
56 value="#{SimpleSearch.inputMethod}"> | |
57 <f:selectItem itemLabel="arabic" itemValue="arabic" /> | |
58 <f:selectItem itemLabel="latin" itemValue="latin" /> | |
59 </h:selectOneMenu> | |
60 <h:selectOneMenu value="#{SimpleSearch.selectedMode}" | |
61 valueChangeListener="#{SimpleSearch.listenerModeValueChange}" | |
62 partialSubmit="true"> | |
63 <f:selectItems value="#{SimpleSearch.modeList}" /> | |
64 </h:selectOneMenu> | |
65 </h:panelGroup> | |
66 </h:form> | |
67 <h:panelGroup rendered="#{SimpleSearch.inputMethod=='arabic'}"> | |
68 <p> | |
69 Choose keyboard: <select id="selectConv" | |
70 onchange="changeTranslit(document.getElementById('selectConv').value);"> | |
71 <option value="latin" selected="true">Arabic utf-8 | |
72 keyboard (no transliteration)</option> | |
73 <option value="persian_arabic">Transliteration</option> | |
74 </select> | |
75 </p> | |
76 <div id="tableOfCorresp" class="tableOfCorresp">.</div> | |
77 </h:panelGroup> | |
78 | |
79 | |
80 <h:form rendered="#{!empty SimpleSearch.resultMap}"> | |
81 <div id="resultSet"> | |
82 <h:panelGroup> | |
83 <h:outputText | |
84 value="Your results in ISMI - #{SimpleSearch.counter} entities found" /> | |
85 <h:dataTable var="resultName" | |
86 value="#{SimpleSearch.resultSetNames}"> | |
87 <h:column> | |
88 <h2> | |
140
13fb56030fe8
changed wording for roles in simple search results.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
89 With role |
7 | 90 <h:outputText |
91 value="#{SimpleSearch.resultMap[resultName].name}" /> | |
92 </h2> | |
93 | |
94 <div id="resultSetContent"> | |
95 <h:dataTable | |
96 var="entity" | |
97 value="#{SimpleSearch.resultMap[resultName].results}"> | |
98 | |
99 <h:column> | |
100 <h:outputLink | |
101 value="#{ApplicationBean1.root}/search/displayAuthor.xhtml?personId=#{entity.id}" | |
102 rendered="#{SimpleSearch.resultMap[resultName].name != 'Title'}"> | |
103 <h:outputText value="#{entity.ownValue} [#{entity.id}]" | |
104 style="color:#2200C1;font-size:medium;cursor:pointer;text-decoration:underline" /> | |
105 </h:outputLink> | |
106 | |
107 <h:outputLink | |
108 value="#{ApplicationBean1.root}/search/displayTitle.xhtml?textId=#{entity.id}" | |
109 rendered="#{SimpleSearch.resultMap[resultName].name == 'Title'}"> | |
110 <h:outputText value="#{entity.ownValue} [#{entity.id}]" | |
111 style="color:#2200C1;font-size:medium;cursor:pointer;text-decoration:underline" /> | |
112 </h:outputLink> | |
113 | |
114 <h:outputText | |
115 value="#{SimpleSearch.resultMap[resultName].descriptionMap[entity.id]}" /> | |
116 | |
117 | |
118 | |
119 <h:outputLink | |
120 target="_blank" | |
121 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{entity.id}" | |
122 title="Metadata of the entity" | |
123 styleClass="displayButton"> | |
124 <h:graphicImage | |
125 value="#{ApplicationBean1.imgNetwork32}" | |
126 width="20" height="20"/> | |
127 </h:outputLink> | |
128 | |
129 <h:outputLink | |
130 value="#{ApplicationBean1.root}/entry/createEntity.xhtml?eid=#{entity.id}" | |
131 title="Edit this entity" | |
132 styleClass="displayButton" | |
133 rendered="#{Session.canCreate}"> | |
134 <h:graphicImage | |
135 value="#{ApplicationBean1.imgEdit32}" | |
136 width="20" height="20"/> | |
137 </h:outputLink> | |
138 | |
139 </h:column> | |
140 | |
141 </h:dataTable> | |
142 </div> | |
143 | |
144 </h:column> | |
145 </h:dataTable> | |
146 | |
147 </h:panelGroup> | |
148 </div> | |
149 </h:form> | |
150 | |
151 </h:panelGrid> | |
152 | |
52
4ee8d47e1e34
hide simple search when not logged in. add scan viewer link to displayAuthor when codex is public.
casties
parents:
7
diff
changeset
|
153 </h:panelGroup> |
4ee8d47e1e34
hide simple search when not logged in. add scan viewer link to displayAuthor when codex is public.
casties
parents:
7
diff
changeset
|
154 </div> |
7 | 155 </ui:define> |
156 | |
157 | |
158 | |
159 | |
160 </ui:composition> | |
161 </body> | |
162 </html> |