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