Mercurial > hg > LGServices
annotate src/main/webapp/pages/fullTextSearch.jsp @ 48:13555aff1f88
new: multiple full text searching. topics and tasks improvement.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 21 Jan 2016 11:56:30 +0100 |
parents | ba9515f22897 |
children | 7c2e1b14b77d |
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> | |
144 <td class="tableTitle">html</td> | |
145 </tr> | |
146 | |
147 <% for (LGFullTextSearchFile aFile : sessionBean.getFullTextSearchPage().getFileList() ){%> | |
148 <tr> | |
149 <td><%= aFile.getFileName() %></td> | |
150 <!-- getFullTextSearchFileText?fileId= &userId= --> | |
151 <td> | |
152 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/getFullTextSearchHtmlFile?fileId=<%= aFile.getId() %>" | |
153 target="_blank"> | |
154 <img alt="Show text in html" src="<%=sessionBean.getApplicationBean().getShowImage()%>"/> | |
155 </a> | |
156 </td> | |
157 | |
158 </tr> | |
159 <% } %> | |
160 | |
161 </table> | |
162 | |
163 | |
164 </div> | |
165 <label class="subTitel">Full Text Search</label> | |
166 | |
167 <form name="fullTextSearchForm" id="fullTextSearchForm" | |
168 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" | |
169 method="post" | |
170 class="contentForm"> | |
171 <input name="bean" type="hidden" value="fullTextSearchBean" /> | |
172 | |
173 <table style="width: 300px; margin-left: auto;margin-right: auto;"> | |
174 <tr> | |
175 <td> | |
176 <input | |
177 id="searchTerm" | |
178 name="searchTerm" | |
179 type="text" | |
180 class="searchInput" | |
181 value="<%=sessionBean.getFullTextSearchPage().getSearchTerm()%>" /> | |
182 </td> | |
183 <td> | |
184 <input id="search" | |
185 type="image" | |
186 onclick="setAction('search', 'fullTextSearchForm');" | |
187 src="<%=sessionBean.getApplicationBean().getSearchImage()%>"/> | |
188 </td> | |
48
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
189 |
39 | 190 |
191 </tr> | |
192 | |
48
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
193 <!-- TODO batching querying --> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
194 <!-- 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
|
195 <% 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
|
196 <tr> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
197 <td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
198 <input |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
199 id="batchSearchTerm" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
200 name="batchSearchTerm" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
201 type="text" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
202 class="searchInput" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
203 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
|
204 </td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
205 <td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
206 <input id="search" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
207 type="image" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
208 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
|
209 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
|
210 </td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
211 |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
212 |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
213 </tr> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
214 <% } %> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
215 |
39 | 216 <tr><td><label class="label"><%= (StringUtils.isNotEmpty(sessionBean.getFullTextSearchPage().getSearchMessage())) ? sessionBean.getFullTextSearchPage().getSearchMessage() : ""%></label></td></tr> |
217 <tr><td><label class="label"><%= (StringUtils.isNotEmpty(sessionBean.getFullTextSearchPage().getFilteringMessage())) ? sessionBean.getFullTextSearchPage().getFilteringMessage() : ""%></label></td></tr> | |
218 <tr><td> | |
219 <button id="saveResult" type="button" class="lgButton">Save Table</button> | |
220 <button id="viewSavedResult" type="button" class="lgButton">View Saved Table(s)</button> | |
221 </td></tr> | |
222 | |
223 | |
224 </table> | |
225 | |
226 | |
227 | |
228 <% | |
229 if (sessionBean.getFullTextSearchPage().getCompleteList() != null) { | |
230 %> | |
231 | |
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
|
232 |
39 | 233 <jsp:include page="../componentes/paginator.jsp"> |
234 <jsp:param name="formName" value="fullTextSearchForm"/> | |
235 </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
|
236 |
39 | 237 |
238 <div class="tableDiv double-scroll"> | |
239 <table class="pageTable"> | |
240 <tbody> | |
241 <tr> | |
242 <th> | |
243 <table class="sortTable"> | |
244 <tr> | |
245 <td><label class="tableTitle">#</label></td> | |
246 <td> | |
247 <table> | |
248 <tr><td> | |
249 <input type="image" | |
250 onclick="setAction('sortByInxUp', 'fullTextSearchForm');" | |
251 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
252 </td></tr> | |
253 <tr><td> | |
254 <input type="image" | |
255 onclick="setAction('sortByInxDown', 'fullTextSearchForm');" | |
256 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
257 </td></tr> | |
258 </table> | |
259 </td> | |
260 </tr> | |
261 </table> | |
262 </th> | |
263 <th> | |
264 <table class="sortTable"> | |
265 <tr> | |
266 <td><label class="tableTitle">Book Id</label></td> | |
267 <td> | |
268 <table> | |
269 <tr><td> | |
270 <input type="image" | |
271 onclick="setAction('sortByBookIdUp', 'fullTextSearchForm');" | |
272 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
273 </td></tr> | |
274 <tr><td> | |
275 <input type="image" | |
276 onclick="setAction('sortByBookIdDown', 'fullTextSearchForm');" | |
277 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
278 </td></tr> | |
279 </table> | |
280 </td> | |
281 </tr> | |
282 <tr> | |
283 <td> | |
284 <input type="text" class="filterInput" name="bookIdFilter" id="bookIdFilter" value="<%= sessionBean.getFullTextSearchPage().getBookIdFilter()%>" size="8"/> | |
285 </td> | |
286 <td> | |
287 <input type="image" | |
288 onclick="setAction('filter', 'fullTextSearchForm');" | |
289 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
290 </td> | |
291 </tr> | |
292 </table> | |
293 </th> | |
294 <th> | |
295 <table class="sortTable"> | |
296 <tr> | |
297 <td><label class="tableTitle">Book Name</label></td> | |
298 <td> | |
299 <table> | |
300 <tr><td> | |
301 <input type="image" | |
302 onclick="setAction('sortByBookNameUp', 'fullTextSearchForm');" | |
303 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
304 </td></tr> | |
305 <tr><td> | |
306 <input type="image" | |
307 onclick="setAction('sortByBookNameDown', 'fullTextSearchForm');" | |
308 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
309 </td></tr> | |
310 </table> | |
311 </td> | |
312 </tr> | |
313 <tr> | |
314 <td> | |
315 <input type="text" class="filterInput" name="bookNameFilter" id="bookNameFilter" value="<%= sessionBean.getFullTextSearchPage().getBookNameFilter()%>" size="8"/> | |
316 </td> | |
317 <td> | |
318 <input type="image" | |
319 onclick="setAction('filter', 'fullTextSearchForm');" | |
320 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
321 </td> | |
322 </tr> | |
323 </table> | |
324 </th> | |
325 <th> | |
326 <table class="sortTable"> | |
327 <tr> | |
328 <td><label class="tableTitle">Level 1</label></td> | |
329 <td> | |
330 <table> | |
331 <tr><td> | |
332 <input type="image" | |
333 onclick="setAction('sortByLevel1Up', 'fullTextSearchForm');" | |
334 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
335 </td></tr> | |
336 <tr><td> | |
337 <input type="image" | |
338 onclick="setAction('sortByLevel1Down', 'fullTextSearchForm');" | |
339 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
340 </td></tr> | |
341 </table> | |
342 </td> | |
343 </tr> | |
344 <tr> | |
345 <td> | |
346 <input type="text" class="filterInput" name="level1Filter" id="level1Filter" value="<%= sessionBean.getFullTextSearchPage().getLevel1Filter()%>" size="8"/> | |
347 </td> | |
348 <td> | |
349 <input type="image" | |
350 onclick="setAction('filter', 'fullTextSearchForm');" | |
351 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
352 </td> | |
353 </tr> | |
354 </table> | |
355 </th> | |
356 <th> | |
357 <table class="sortTable"> | |
358 <tr> | |
359 <td><label class="tableTitle">Level 2</label></td> | |
360 <td> | |
361 <table> | |
362 <tr><td> | |
363 <input type="image" | |
364 onclick="setAction('sortByLevel2Up', 'fullTextSearchForm');" | |
365 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
366 </td></tr> | |
367 <tr><td> | |
368 <input type="image" | |
369 onclick="setAction('sortByLevel2Down', 'fullTextSearchForm');" | |
370 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
371 </td></tr> | |
372 </table> | |
373 </td> | |
374 </tr> | |
375 <tr> | |
376 <td> | |
377 <input type="text" class="filterInput" name="level2Filter" id="level2Filter" value="<%= sessionBean.getFullTextSearchPage().getLevel2Filter()%>" size="8"/> | |
378 </td> | |
379 <td> | |
380 <input type="image" | |
381 onclick="setAction('filter', 'fullTextSearchForm');" | |
382 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
383 </td> | |
384 </tr> | |
385 </table> | |
386 </th> | |
387 <th> | |
388 <table class="sortTable"> | |
389 <tr> | |
390 <td><label class="tableTitle">Dynasty</label></td> | |
391 <td> | |
392 <table> | |
393 <tr><td> | |
394 <input type="image" | |
395 onclick="setAction('sortByDynastyUp', 'fullTextSearchForm');" | |
396 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
397 </td></tr> | |
398 <tr><td> | |
399 <input type="image" | |
400 onclick="setAction('sortByDynastyDown', 'fullTextSearchForm');" | |
401 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
402 </td></tr> | |
403 </table> | |
404 </td> | |
405 </tr> | |
406 <tr> | |
407 <td> | |
408 <input type="text" class="filterInput" name="dynastyFilter" id="dynastyFilter" value="<%= sessionBean.getFullTextSearchPage().getDynastyFilter()%>" size="8"/> | |
409 </td> | |
410 <td> | |
411 <input type="image" | |
412 onclick="setAction('filter', 'fullTextSearchForm');" | |
413 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
414 </td> | |
415 </tr> | |
416 </table> | |
417 </th> | |
418 <th> | |
419 <table class="sortTable"> | |
420 <tr> | |
421 <td><label class="tableTitle">Period</label></td> | |
422 <td> | |
423 <table> | |
424 <tr><td> | |
425 <input type="image" | |
426 onclick="setAction('sortByPeriodUp', 'fullTextSearchForm');" | |
427 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
428 </td></tr> | |
429 <tr><td> | |
430 <input type="image" | |
431 onclick="setAction('sortByPeriodDown', 'fullTextSearchForm');" | |
432 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
433 </td></tr> | |
434 </table> | |
435 </td> | |
436 </tr> | |
437 <tr> | |
438 <td> | |
439 <input type="text" class="filterInput" name="periodFilter" id="periodFilter" value="<%= sessionBean.getFullTextSearchPage().getPeriodFilter()%>" size="8"/> | |
440 </td> | |
441 <td> | |
442 <input type="image" | |
443 onclick="setAction('filter', 'fullTextSearchForm');" | |
444 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
445 </td> | |
446 </tr> | |
447 </table> | |
448 </th> | |
449 <th> | |
450 <table class="sortTable"> | |
451 <tr> | |
452 <td><label class="tableTitle">Admin Type</label></td> | |
453 <td> | |
454 <table> | |
455 <tr><td> | |
456 <input type="image" | |
457 onclick="setAction('sortByAdminTypeUp', 'fullTextSearchForm');" | |
458 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
459 </td></tr> | |
460 <tr><td> | |
461 <input type="image" | |
462 onclick="setAction('sortByAdminTypeDown', 'fullTextSearchForm');" | |
463 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
464 </td></tr> | |
465 </table> | |
466 </td> | |
467 </tr> | |
468 <tr> | |
469 <td> | |
470 <input type="text" class="filterInput" name="adminTypeFilter" id="adminTypeFilter" value="<%= sessionBean.getFullTextSearchPage().getAdminTypeFilter()%>" size="8"/> | |
471 </td> | |
472 <td> | |
473 <input type="image" | |
474 onclick="setAction('filter', 'fullTextSearchForm');" | |
475 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
476 </td> | |
477 </tr> | |
478 </table> | |
479 </th> | |
480 | |
481 <th> | |
482 <table class="sortTable"> | |
483 <tr> | |
484 <td><label class="tableTitle">Section Name</label></td> | |
485 <td> | |
486 <table> | |
487 <tr><td> | |
488 <input type="image" | |
489 onclick="setAction('sortBySectionNameUp', 'fullTextSearchForm');" | |
490 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
491 </td></tr> | |
492 <tr><td> | |
493 <input type="image" | |
494 onclick="setAction('sortBySectionNameDown', 'fullTextSearchForm');" | |
495 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
496 </td></tr> | |
497 </table> | |
498 </td> | |
499 </tr> | |
500 <tr> | |
501 <td> | |
502 <input type="text" class="filterInput" name="sectionNameFilter" id="sectionNameFilter" value="<%= sessionBean.getFullTextSearchPage().getSectionNameFilter()%>" size="8"/> | |
503 </td> | |
504 <td> | |
505 <input type="image" | |
506 onclick="setAction('filter', 'fullTextSearchForm');" | |
507 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
508 </td> | |
509 </tr> | |
510 </table> | |
511 </th> | |
512 <th> | |
513 <table class="sortTable"> | |
514 <tr> | |
515 <td><label class="tableTitle">Section Pages</label></td> | |
516 <td> | |
517 <table> | |
518 <tr><td> | |
519 <input type="image" | |
520 onclick="setAction('sortBySectionNameUp', 'fullTextSearchForm');" | |
521 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
522 </td></tr> | |
523 <tr><td> | |
524 <input type="image" | |
525 onclick="setAction('sortBySectionNameDown', 'fullTextSearchForm');" | |
526 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
527 </td></tr> | |
528 </table> | |
529 </td> | |
530 </tr> | |
531 </table> | |
532 </th> | |
533 <th> | |
534 <table class="sortTable"> | |
535 <tr> | |
536 <td><label class="tableTitle">Page</label></td> | |
537 <td> | |
538 <table> | |
539 <tr><td> | |
540 <input type="image" | |
541 onclick="setAction('sortByStartPageUp', 'fullTextSearchForm');" | |
542 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
543 </td></tr> | |
544 <tr><td> | |
545 <input type="image" | |
546 onclick="setAction('sortByStartPageDown', 'fullTextSearchForm');" | |
547 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
548 </td></tr> | |
549 </table> | |
550 </td> | |
551 </tr> | |
552 </table> | |
553 | |
554 </th> | |
555 <th style="min-width:300px"><label class="tableTitle">Content</label></th> | |
556 <th><label class="tableTitle">Select rows</th> | |
557 </tr> | |
558 | |
559 | |
560 <% | |
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
|
561 for (DBContents content : sessionBean.getFullTextSearchPage().getDisplayList() ) { |
39 | 562 %> |
563 | |
564 <% if ( content.isRemoved() ) { %> | |
565 <tr class="removedContent"> | |
566 <% } else { %> | |
567 <tr> | |
568 <% } %> | |
569 | |
570 <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
|
571 <td><%=content.getBookId() %></td> |
39 | 572 <td><%=content.getSection().getBook().getName()%></td> |
573 <td><%=content.getSection().getBook().getLevel1()%></td> | |
574 <td><%=content.getSection().getBook().getLevel2()%></td> | |
575 <td><%=content.getSection().getBook().getDynasty()%></td> | |
576 <td><%=content.getSection().getBook().getPeriod()%></td> | |
577 <td><%=content.getSection().getBook().getAdmin_type() %></td> | |
578 <td><%=content.getSection().getName() %></td> | |
579 <td><%=content.getSection().getPages()%></td> | |
580 <td><%=content.getPage() %></td> | |
581 <td class="content"><%=content.getContent()%></td> | |
582 <td> | |
583 <% if ( content.isRemoved() ) { %> | |
584 | |
585 <input type="image" onclick="setAction0('recoverFocusedContent', 'fullTextSearchForm', 'focusedContentId', '<%=content.getId() %>');" | |
586 src="<%=sessionBean.getApplicationBean().getCheckboxUncheckedImage()%>" width="20" height="20"/> | |
587 | |
588 <% } else { %> | |
589 | |
590 <input type="image" onclick="setAction0('removeFocusedContent', 'fullTextSearchForm', 'focusedContentId', '<%=content.getId() %>');" | |
591 src="<%=sessionBean.getApplicationBean().getCheckboxCheckedImage()%>" width="20" height="20"/> | |
592 | |
593 <% } %> | |
594 | |
595 | |
596 | |
597 </td> | |
598 | |
599 </tr> | |
600 <% | |
601 } | |
602 %> | |
603 | |
604 </tbody> | |
605 </table> | |
606 | |
607 | |
608 <% | |
609 } | |
610 %> | |
611 | |
612 </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
|
613 |
39 | 614 <jsp:include page="../componentes/paginator.jsp"> |
615 <jsp:param name="formName" value="fullTextSearchForm"/> | |
616 </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
|
617 |
39 | 618 |
619 </form> | |
620 | |
621 <% } %> | |
622 | |
623 </div> | |
624 | |
625 </body> | |
626 </html> |