Mercurial > hg > LGServices
annotate src/main/webapp/pages/fullTextSearch.jsp @ 50:8f6c47775fe8
new: 'view on LGMap' shown on the existing full text searching list
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 26 Jan 2016 13:41:47 +0100 |
parents | 7c2e1b14b77d |
children | cf747a960516 |
rev | line source |
---|---|
39 | 1 <%@page import="org.apache.commons.lang.StringUtils"%> |
2 <%@page import="de.mpiwg.gazetteer.db.DBContents"%> | |
3 <%@page import="de.mpiwg.gazetteer.bo.LGFullTextSearchFile"%> | |
4 | |
5 | |
6 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
7 | |
8 <jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean" scope="session" /> | |
9 | |
10 | |
11 <html> | |
12 | |
13 <head> | |
14 | |
15 <jsp:include page="../componentes/headContent.jsp"/> | |
16 | |
17 <script> | |
18 $(function() { | |
19 $( "#dialogMoreInfo" ).dialog({ | |
20 autoOpen: false, | |
21 modal: true, | |
22 position: { my: "center", at: "top", of: window }, | |
23 | |
24 }); | |
25 | |
26 var dialogSave = $("#dialogSave").dialog( | |
27 {autoOpen: false} | |
28 ); | |
29 $("#saveResult").button().on( "click", function() { | |
30 // append searchTerm into the form | |
31 $('<input>').attr({ | |
32 type: 'hidden', | |
33 name: 'searchTerm', | |
34 value: $("#searchTerm").val() | |
35 }).appendTo('form[name="saveTableForm"]'); | |
36 | |
37 | |
38 dialogSave.dialog( "open" ); | |
39 }); | |
40 | |
41 var dialogViewSavedResult = $("#dialogViewSavedResult").dialog( | |
42 {autoOpen: false} | |
43 ); | |
44 $("#viewSavedResult").button().on( "click", function() { | |
45 dialogViewSavedResult.dialog( "open" ); | |
46 }); | |
47 | |
48 | |
49 }); | |
50 | |
51 // enter pressed event, we don't want to always go to "search". | |
52 $(document).keypress( | |
53 function(event){ | |
54 if (event.which == '13') { // enter pressed | |
55 // if any of the filter fields is filled in, filter first; otherwize, go to search | |
56 $(".filterInput" ).each(function( i ) { | |
57 //console.log( this.value ); | |
58 if (this.value != "") { | |
59 //console.log('filtering' + i); | |
60 setAction('filter', 'fullTextSearchForm'); | |
61 $("#fullTextSearchForm").submit(); | |
62 return false; | |
63 } | |
64 | |
65 }); | |
66 } | |
67 }); | |
68 | |
69 $(document).ready(function(){ | |
70 highlightKeywords(); | |
71 }) | |
72 | |
73 function highlightKeywords() // highlight keywords in content column, with class="content" | |
74 { | |
75 if ($("#searchTerm")[0] == undefined ){ | |
76 return; | |
77 } | |
78 var keywords = $("#searchTerm")[0].value; | |
79 var keywordsArray = keywords.split(", "); | |
80 //console.log("keywordsArray: "+keywordsArray); | |
81 | |
82 var content = $(".content"); | |
83 for (var i = 0; i < content.length; i++) { | |
84 // find keywords in content[i] | |
85 var text = content[i].innerHTML; | |
86 for (var j = 0; j < keywordsArray.length; j++) { | |
87 var index = text.indexOf(keywordsArray[j]); | |
88 if (index >= 0) { | |
89 text = text.substring(0,index) + "<span class='highlight'>" + text.substring(index, index+keywordsArray[j].length) + "</span>" + text.substring(index+keywordsArray[j].length); | |
90 content[i].innerHTML = text; | |
91 } | |
92 }; | |
93 | |
94 }; | |
95 } | |
96 | |
97 </script> | |
98 </head> | |
99 | |
100 <body> | |
101 | |
102 <jsp:include page="../componentes/template.jsp"/> | |
103 | |
104 <div id="dialogMoreInfo" title="Full Text Search Details"> </div> | |
105 | |
106 <div id="page"> | |
107 | |
108 <% if(sessionBean.getUser() == null) { %> | |
41
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
109 <label class="subTitel">You must login!</label> |
39 | 110 <% } else { |
111 | |
112 if (sessionBean.getFullTextSearchPage().getFileList() == null){ | |
113 sessionBean.getFullTextSearchPage().loadParameters(request, response); | |
114 sessionBean.getFullTextSearchPage().forceLoadFileList(); | |
115 } | |
116 | |
117 %> | |
118 | |
119 <div id="dialogSave" title="Save Table:"> | |
120 <form name="saveTableForm" id="saveTableForm" | |
121 action="<%= sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" | |
122 method="post"> | |
123 <input name="bean" type="hidden" value="fullTextSearchBean" /> | |
124 <table> | |
125 <tr> | |
126 <td> | |
127 <input id="fileName" name="fileName" type="text" placeholder="table name"/> | |
128 </td> | |
129 <td> | |
130 <button onclick="setAction('save', 'saveTableForm'); document.getElementById('saveTableForm').submit();">Save</button> | |
131 | |
132 </td> | |
133 </tr> | |
134 </table> | |
135 </form> | |
136 | |
137 </div> | |
138 | |
139 <div id="dialogViewSavedResult" title="Saved Table List:"> | |
140 | |
141 <table class="pageTable"> | |
142 <tr> | |
143 <td class="tableTitle">Table name</td> | |
50
8f6c47775fe8
new: 'view on LGMap' shown on the existing full text searching list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
49
diff
changeset
|
144 <td class="tableTitle">View html</td> |
8f6c47775fe8
new: 'view on LGMap' shown on the existing full text searching list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
49
diff
changeset
|
145 <td class="tableTitle"></td> |
8f6c47775fe8
new: 'view on LGMap' shown on the existing full text searching list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
49
diff
changeset
|
146 <td class="tableTitle">View on LGMap</td> |
39 | 147 </tr> |
148 | |
149 <% for (LGFullTextSearchFile aFile : sessionBean.getFullTextSearchPage().getFileList() ){%> | |
150 <tr> | |
151 <td><%= aFile.getFileName() %></td> | |
152 <!-- getFullTextSearchFileText?fileId= &userId= --> | |
153 <td> | |
50
8f6c47775fe8
new: 'view on LGMap' shown on the existing full text searching list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
49
diff
changeset
|
154 <!-- click searching result to open it in the same table of full-text-search result --> |
39 | 155 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/getFullTextSearchHtmlFile?fileId=<%= aFile.getId() %>" |
156 target="_blank"> | |
157 <img alt="Show text in html" src="<%=sessionBean.getApplicationBean().getShowImage()%>"/> | |
158 </a> | |
159 </td> | |
49
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
160 <td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
161 <button type="button" class="lgButton" onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId() %>); document.getElementById('fullTextSearchForm').submit();">load</button> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
162 </td> |
50
8f6c47775fe8
new: 'view on LGMap' shown on the existing full text searching list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
49
diff
changeset
|
163 <td> |
8f6c47775fe8
new: 'view on LGMap' shown on the existing full text searching list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
49
diff
changeset
|
164 <!-- view on LGMap --> |
8f6c47775fe8
new: 'view on LGMap' shown on the existing full text searching list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
49
diff
changeset
|
165 <a href="<%=sessionBean.getApplicationBean().getLGMapUrl() %>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms() %>" |
8f6c47775fe8
new: 'view on LGMap' shown on the existing full text searching list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
49
diff
changeset
|
166 target="_blank"> |
8f6c47775fe8
new: 'view on LGMap' shown on the existing full text searching list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
49
diff
changeset
|
167 <img alt="View on LGMap" src="<%=sessionBean.getApplicationBean().getShowImage()%>"/> |
8f6c47775fe8
new: 'view on LGMap' shown on the existing full text searching list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
49
diff
changeset
|
168 </a> |
8f6c47775fe8
new: 'view on LGMap' shown on the existing full text searching list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
49
diff
changeset
|
169 </td> |
39 | 170 </tr> |
171 <% } %> | |
172 | |
173 </table> | |
174 | |
175 | |
176 </div> | |
177 <label class="subTitel">Full Text Search</label> | |
178 | |
179 <form name="fullTextSearchForm" id="fullTextSearchForm" | |
180 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" | |
181 method="post" | |
182 class="contentForm"> | |
183 <input name="bean" type="hidden" value="fullTextSearchBean" /> | |
184 | |
185 <table style="width: 300px; margin-left: auto;margin-right: auto;"> | |
186 <tr> | |
187 <td> | |
188 <input | |
189 id="searchTerm" | |
190 name="searchTerm" | |
191 type="text" | |
192 class="searchInput" | |
193 value="<%=sessionBean.getFullTextSearchPage().getSearchTerm()%>" /> | |
194 </td> | |
195 <td> | |
196 <input id="search" | |
197 type="image" | |
198 onclick="setAction('search', 'fullTextSearchForm');" | |
199 src="<%=sessionBean.getApplicationBean().getSearchImage()%>"/> | |
200 </td> | |
48
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
201 |
39 | 202 |
203 </tr> | |
204 | |
48
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
205 <!-- TODO batching querying --> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
206 <!-- for batching, query keyword sets separated by ";" and within each keyword set, keywords separated by "," --> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
207 <% if (StringUtils.equals(sessionBean.getUserName(), "zhong") || StringUtils.equals(sessionBean.getUserName(), "silk")) { %> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
208 <tr> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
209 <td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
210 <input |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
211 id="batchSearchTerm" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
212 name="batchSearchTerm" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
213 type="text" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
214 class="searchInput" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
215 value="<%=sessionBean.getFullTextSearchPage().getBatchSearchTerm() %>" /> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
216 </td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
217 <td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
218 <input id="search" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
219 type="image" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
220 onclick="setAction('searchBatch', 'fullTextSearchForm');" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
221 src="<%=sessionBean.getApplicationBean().getSearchImage()%>"/> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
222 </td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
223 |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
224 |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
225 </tr> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
226 <% } %> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
227 |
39 | 228 <tr><td><label class="label"><%= (StringUtils.isNotEmpty(sessionBean.getFullTextSearchPage().getSearchMessage())) ? sessionBean.getFullTextSearchPage().getSearchMessage() : ""%></label></td></tr> |
229 <tr><td><label class="label"><%= (StringUtils.isNotEmpty(sessionBean.getFullTextSearchPage().getFilteringMessage())) ? sessionBean.getFullTextSearchPage().getFilteringMessage() : ""%></label></td></tr> | |
230 <tr><td> | |
231 <button id="saveResult" type="button" class="lgButton">Save Table</button> | |
49
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
232 <button id="viewSavedResult" type="button" class="lgButton">View/Load Saved Table(s)</button> |
39 | 233 </td></tr> |
234 | |
235 | |
236 </table> | |
237 | |
238 | |
239 | |
240 <% | |
241 if (sessionBean.getFullTextSearchPage().getCompleteList() != null) { | |
242 %> | |
243 | |
40
35ed4e650a53
bug fixed: full text search when section not found in section_index table. add paginator
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
39
diff
changeset
|
244 |
39 | 245 <jsp:include page="../componentes/paginator.jsp"> |
246 <jsp:param name="formName" value="fullTextSearchForm"/> | |
247 </jsp:include> | |
40
35ed4e650a53
bug fixed: full text search when section not found in section_index table. add paginator
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
39
diff
changeset
|
248 |
39 | 249 |
250 <div class="tableDiv double-scroll"> | |
251 <table class="pageTable"> | |
252 <tbody> | |
253 <tr> | |
254 <th> | |
255 <table class="sortTable"> | |
256 <tr> | |
257 <td><label class="tableTitle">#</label></td> | |
258 <td> | |
259 <table> | |
260 <tr><td> | |
261 <input type="image" | |
262 onclick="setAction('sortByInxUp', 'fullTextSearchForm');" | |
263 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
264 </td></tr> | |
265 <tr><td> | |
266 <input type="image" | |
267 onclick="setAction('sortByInxDown', 'fullTextSearchForm');" | |
268 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
269 </td></tr> | |
270 </table> | |
271 </td> | |
272 </tr> | |
273 </table> | |
274 </th> | |
275 <th> | |
276 <table class="sortTable"> | |
277 <tr> | |
278 <td><label class="tableTitle">Book Id</label></td> | |
279 <td> | |
280 <table> | |
281 <tr><td> | |
282 <input type="image" | |
283 onclick="setAction('sortByBookIdUp', 'fullTextSearchForm');" | |
284 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
285 </td></tr> | |
286 <tr><td> | |
287 <input type="image" | |
288 onclick="setAction('sortByBookIdDown', 'fullTextSearchForm');" | |
289 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
290 </td></tr> | |
291 </table> | |
292 </td> | |
293 </tr> | |
294 <tr> | |
295 <td> | |
296 <input type="text" class="filterInput" name="bookIdFilter" id="bookIdFilter" value="<%= sessionBean.getFullTextSearchPage().getBookIdFilter()%>" size="8"/> | |
297 </td> | |
298 <td> | |
299 <input type="image" | |
300 onclick="setAction('filter', 'fullTextSearchForm');" | |
301 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
302 </td> | |
303 </tr> | |
304 </table> | |
305 </th> | |
306 <th> | |
307 <table class="sortTable"> | |
308 <tr> | |
309 <td><label class="tableTitle">Book Name</label></td> | |
310 <td> | |
311 <table> | |
312 <tr><td> | |
313 <input type="image" | |
314 onclick="setAction('sortByBookNameUp', 'fullTextSearchForm');" | |
315 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
316 </td></tr> | |
317 <tr><td> | |
318 <input type="image" | |
319 onclick="setAction('sortByBookNameDown', 'fullTextSearchForm');" | |
320 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
321 </td></tr> | |
322 </table> | |
323 </td> | |
324 </tr> | |
325 <tr> | |
326 <td> | |
327 <input type="text" class="filterInput" name="bookNameFilter" id="bookNameFilter" value="<%= sessionBean.getFullTextSearchPage().getBookNameFilter()%>" size="8"/> | |
328 </td> | |
329 <td> | |
330 <input type="image" | |
331 onclick="setAction('filter', 'fullTextSearchForm');" | |
332 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
333 </td> | |
334 </tr> | |
335 </table> | |
336 </th> | |
337 <th> | |
338 <table class="sortTable"> | |
339 <tr> | |
340 <td><label class="tableTitle">Level 1</label></td> | |
341 <td> | |
342 <table> | |
343 <tr><td> | |
344 <input type="image" | |
345 onclick="setAction('sortByLevel1Up', 'fullTextSearchForm');" | |
346 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
347 </td></tr> | |
348 <tr><td> | |
349 <input type="image" | |
350 onclick="setAction('sortByLevel1Down', 'fullTextSearchForm');" | |
351 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
352 </td></tr> | |
353 </table> | |
354 </td> | |
355 </tr> | |
356 <tr> | |
357 <td> | |
358 <input type="text" class="filterInput" name="level1Filter" id="level1Filter" value="<%= sessionBean.getFullTextSearchPage().getLevel1Filter()%>" size="8"/> | |
359 </td> | |
360 <td> | |
361 <input type="image" | |
362 onclick="setAction('filter', 'fullTextSearchForm');" | |
363 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
364 </td> | |
365 </tr> | |
366 </table> | |
367 </th> | |
368 <th> | |
369 <table class="sortTable"> | |
370 <tr> | |
371 <td><label class="tableTitle">Level 2</label></td> | |
372 <td> | |
373 <table> | |
374 <tr><td> | |
375 <input type="image" | |
376 onclick="setAction('sortByLevel2Up', 'fullTextSearchForm');" | |
377 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
378 </td></tr> | |
379 <tr><td> | |
380 <input type="image" | |
381 onclick="setAction('sortByLevel2Down', 'fullTextSearchForm');" | |
382 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
383 </td></tr> | |
384 </table> | |
385 </td> | |
386 </tr> | |
387 <tr> | |
388 <td> | |
389 <input type="text" class="filterInput" name="level2Filter" id="level2Filter" value="<%= sessionBean.getFullTextSearchPage().getLevel2Filter()%>" size="8"/> | |
390 </td> | |
391 <td> | |
392 <input type="image" | |
393 onclick="setAction('filter', 'fullTextSearchForm');" | |
394 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
395 </td> | |
396 </tr> | |
397 </table> | |
398 </th> | |
399 <th> | |
400 <table class="sortTable"> | |
401 <tr> | |
402 <td><label class="tableTitle">Dynasty</label></td> | |
403 <td> | |
404 <table> | |
405 <tr><td> | |
406 <input type="image" | |
407 onclick="setAction('sortByDynastyUp', 'fullTextSearchForm');" | |
408 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
409 </td></tr> | |
410 <tr><td> | |
411 <input type="image" | |
412 onclick="setAction('sortByDynastyDown', 'fullTextSearchForm');" | |
413 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
414 </td></tr> | |
415 </table> | |
416 </td> | |
417 </tr> | |
418 <tr> | |
419 <td> | |
420 <input type="text" class="filterInput" name="dynastyFilter" id="dynastyFilter" value="<%= sessionBean.getFullTextSearchPage().getDynastyFilter()%>" size="8"/> | |
421 </td> | |
422 <td> | |
423 <input type="image" | |
424 onclick="setAction('filter', 'fullTextSearchForm');" | |
425 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
426 </td> | |
427 </tr> | |
428 </table> | |
429 </th> | |
430 <th> | |
431 <table class="sortTable"> | |
432 <tr> | |
433 <td><label class="tableTitle">Period</label></td> | |
434 <td> | |
435 <table> | |
436 <tr><td> | |
437 <input type="image" | |
438 onclick="setAction('sortByPeriodUp', 'fullTextSearchForm');" | |
439 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
440 </td></tr> | |
441 <tr><td> | |
442 <input type="image" | |
443 onclick="setAction('sortByPeriodDown', 'fullTextSearchForm');" | |
444 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
445 </td></tr> | |
446 </table> | |
447 </td> | |
448 </tr> | |
449 <tr> | |
450 <td> | |
451 <input type="text" class="filterInput" name="periodFilter" id="periodFilter" value="<%= sessionBean.getFullTextSearchPage().getPeriodFilter()%>" size="8"/> | |
452 </td> | |
453 <td> | |
454 <input type="image" | |
455 onclick="setAction('filter', 'fullTextSearchForm');" | |
456 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
457 </td> | |
458 </tr> | |
459 </table> | |
460 </th> | |
461 <th> | |
462 <table class="sortTable"> | |
463 <tr> | |
464 <td><label class="tableTitle">Admin Type</label></td> | |
465 <td> | |
466 <table> | |
467 <tr><td> | |
468 <input type="image" | |
469 onclick="setAction('sortByAdminTypeUp', 'fullTextSearchForm');" | |
470 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
471 </td></tr> | |
472 <tr><td> | |
473 <input type="image" | |
474 onclick="setAction('sortByAdminTypeDown', 'fullTextSearchForm');" | |
475 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
476 </td></tr> | |
477 </table> | |
478 </td> | |
479 </tr> | |
480 <tr> | |
481 <td> | |
482 <input type="text" class="filterInput" name="adminTypeFilter" id="adminTypeFilter" value="<%= sessionBean.getFullTextSearchPage().getAdminTypeFilter()%>" size="8"/> | |
483 </td> | |
484 <td> | |
485 <input type="image" | |
486 onclick="setAction('filter', 'fullTextSearchForm');" | |
487 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
488 </td> | |
489 </tr> | |
490 </table> | |
491 </th> | |
492 | |
493 <th> | |
494 <table class="sortTable"> | |
495 <tr> | |
496 <td><label class="tableTitle">Section Name</label></td> | |
497 <td> | |
498 <table> | |
499 <tr><td> | |
500 <input type="image" | |
501 onclick="setAction('sortBySectionNameUp', 'fullTextSearchForm');" | |
502 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
503 </td></tr> | |
504 <tr><td> | |
505 <input type="image" | |
506 onclick="setAction('sortBySectionNameDown', 'fullTextSearchForm');" | |
507 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
508 </td></tr> | |
509 </table> | |
510 </td> | |
511 </tr> | |
512 <tr> | |
513 <td> | |
514 <input type="text" class="filterInput" name="sectionNameFilter" id="sectionNameFilter" value="<%= sessionBean.getFullTextSearchPage().getSectionNameFilter()%>" size="8"/> | |
515 </td> | |
516 <td> | |
517 <input type="image" | |
518 onclick="setAction('filter', 'fullTextSearchForm');" | |
519 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
520 </td> | |
521 </tr> | |
522 </table> | |
523 </th> | |
524 <th> | |
525 <table class="sortTable"> | |
526 <tr> | |
527 <td><label class="tableTitle">Section Pages</label></td> | |
528 <td> | |
529 <table> | |
530 <tr><td> | |
531 <input type="image" | |
532 onclick="setAction('sortBySectionNameUp', 'fullTextSearchForm');" | |
533 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
534 </td></tr> | |
535 <tr><td> | |
536 <input type="image" | |
537 onclick="setAction('sortBySectionNameDown', 'fullTextSearchForm');" | |
538 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
539 </td></tr> | |
540 </table> | |
541 </td> | |
542 </tr> | |
543 </table> | |
544 </th> | |
545 <th> | |
546 <table class="sortTable"> | |
547 <tr> | |
548 <td><label class="tableTitle">Page</label></td> | |
549 <td> | |
550 <table> | |
551 <tr><td> | |
552 <input type="image" | |
553 onclick="setAction('sortByStartPageUp', 'fullTextSearchForm');" | |
554 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
555 </td></tr> | |
556 <tr><td> | |
557 <input type="image" | |
558 onclick="setAction('sortByStartPageDown', 'fullTextSearchForm');" | |
559 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
560 </td></tr> | |
561 </table> | |
562 </td> | |
563 </tr> | |
564 </table> | |
565 | |
566 </th> | |
49
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
567 <th style="min-width:300px"> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
568 |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
569 <table class="sortTable"> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
570 <tr> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
571 <td><label class="tableTitle">Content</label></td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
572 <td></td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
573 </tr> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
574 <tr> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
575 <td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
576 <input type="text" class="filterInput" name="contentFilter" id="contentFilter" value="<%= sessionBean.getFullTextSearchPage().getContentFilter()%>" size="8"/> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
577 </td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
578 <td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
579 <input type="image" |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
580 onclick="setAction('filter', 'fullTextSearchForm');" |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
581 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
582 </td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
583 </tr> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
584 |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
585 </table> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
586 |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
587 </th> |
39 | 588 <th><label class="tableTitle">Select rows</th> |
589 </tr> | |
590 | |
591 | |
592 <% | |
40
35ed4e650a53
bug fixed: full text search when section not found in section_index table. add paginator
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
39
diff
changeset
|
593 for (DBContents content : sessionBean.getFullTextSearchPage().getDisplayList() ) { |
39 | 594 %> |
595 | |
596 <% if ( content.isRemoved() ) { %> | |
597 <tr class="removedContent"> | |
598 <% } else { %> | |
599 <tr> | |
600 <% } %> | |
601 | |
602 <td><%=content.getInx() %></td> | |
40
35ed4e650a53
bug fixed: full text search when section not found in section_index table. add paginator
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
39
diff
changeset
|
603 <td><%=content.getBookId() %></td> |
39 | 604 <td><%=content.getSection().getBook().getName()%></td> |
605 <td><%=content.getSection().getBook().getLevel1()%></td> | |
606 <td><%=content.getSection().getBook().getLevel2()%></td> | |
607 <td><%=content.getSection().getBook().getDynasty()%></td> | |
608 <td><%=content.getSection().getBook().getPeriod()%></td> | |
609 <td><%=content.getSection().getBook().getAdmin_type() %></td> | |
610 <td><%=content.getSection().getName() %></td> | |
611 <td><%=content.getSection().getPages()%></td> | |
612 <td><%=content.getPage() %></td> | |
613 <td class="content"><%=content.getContent()%></td> | |
614 <td> | |
615 <% if ( content.isRemoved() ) { %> | |
616 | |
617 <input type="image" onclick="setAction0('recoverFocusedContent', 'fullTextSearchForm', 'focusedContentId', '<%=content.getId() %>');" | |
618 src="<%=sessionBean.getApplicationBean().getCheckboxUncheckedImage()%>" width="20" height="20"/> | |
619 | |
620 <% } else { %> | |
621 | |
622 <input type="image" onclick="setAction0('removeFocusedContent', 'fullTextSearchForm', 'focusedContentId', '<%=content.getId() %>');" | |
623 src="<%=sessionBean.getApplicationBean().getCheckboxCheckedImage()%>" width="20" height="20"/> | |
624 | |
625 <% } %> | |
626 | |
627 | |
628 | |
629 </td> | |
630 | |
631 </tr> | |
632 <% | |
633 } | |
634 %> | |
635 | |
636 </tbody> | |
637 </table> | |
638 | |
639 | |
640 <% | |
641 } | |
642 %> | |
643 | |
644 </div> | |
40
35ed4e650a53
bug fixed: full text search when section not found in section_index table. add paginator
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
39
diff
changeset
|
645 |
39 | 646 <jsp:include page="../componentes/paginator.jsp"> |
647 <jsp:param name="formName" value="fullTextSearchForm"/> | |
648 </jsp:include> | |
40
35ed4e650a53
bug fixed: full text search when section not found in section_index table. add paginator
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
39
diff
changeset
|
649 |
39 | 650 |
651 </form> | |
652 | |
653 <% } %> | |
654 | |
655 </div> | |
656 | |
657 </body> | |
658 </html> |