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