Mercurial > hg > LGServices
annotate src/main/webapp/pages/fullTextSearch.jsp @ 52:fc4ee9cc587b
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 | Mon, 01 Feb 2016 15:40:41 +0100 |
parents | cf747a960516 |
children | a00efd5d9e77 |
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 |
52
fc4ee9cc587b
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:
51
diff
changeset
|
102 //$('html,body').animate({scrollTop: $("#content_"+id).offset().top - y + offsetInElement}, 'fast'); |
fc4ee9cc587b
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:
51
diff
changeset
|
103 $('html,body').scrollTop($("#content_"+id).offset().top - y + offsetInElement); |
fc4ee9cc587b
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:
51
diff
changeset
|
104 |
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
|
105 } |
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
|
106 |
39 | 107 function highlightKeywords() // highlight keywords in content column, with class="content" |
108 { | |
109 if ($("#searchTerm")[0] == undefined ){ | |
110 return; | |
111 } | |
112 var keywords = $("#searchTerm")[0].value; | |
113 var keywordsArray = keywords.split(", "); | |
114 //console.log("keywordsArray: "+keywordsArray); | |
115 | |
116 var content = $(".content"); | |
117 for (var i = 0; i < content.length; i++) { | |
118 // find keywords in content[i] | |
119 var text = content[i].innerHTML; | |
120 for (var j = 0; j < keywordsArray.length; j++) { | |
121 var index = text.indexOf(keywordsArray[j]); | |
122 if (index >= 0) { | |
123 text = text.substring(0,index) + "<span class='highlight'>" + text.substring(index, index+keywordsArray[j].length) + "</span>" + text.substring(index+keywordsArray[j].length); | |
124 content[i].innerHTML = text; | |
125 } | |
126 }; | |
127 | |
128 }; | |
129 } | |
130 | |
131 </script> | |
132 </head> | |
133 | |
134 <body> | |
135 | |
136 <jsp:include page="../componentes/template.jsp"/> | |
137 | |
138 <div id="dialogMoreInfo" title="Full Text Search Details"> </div> | |
139 | |
140 <div id="page"> | |
141 | |
142 <% 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
|
143 <label class="subTitel">You must login!</label> |
39 | 144 <% } else { |
145 | |
146 if (sessionBean.getFullTextSearchPage().getFileList() == null){ | |
147 sessionBean.getFullTextSearchPage().loadParameters(request, response); | |
148 sessionBean.getFullTextSearchPage().forceLoadFileList(); | |
149 } | |
150 | |
151 %> | |
152 | |
153 <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
|
154 |
39 | 155 <form name="saveTableForm" id="saveTableForm" |
156 action="<%= sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" | |
157 method="post"> | |
158 <input name="bean" type="hidden" value="fullTextSearchBean" /> | |
159 <table> | |
160 <tr> | |
52
fc4ee9cc587b
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:
51
diff
changeset
|
161 <td> |
39 | 162 <input id="fileName" name="fileName" type="text" placeholder="table name"/> |
163 </td> | |
164 <td> | |
165 <button onclick="setAction('save', 'saveTableForm'); document.getElementById('saveTableForm').submit();">Save</button> | |
166 | |
167 </td> | |
168 </tr> | |
169 </table> | |
170 </form> | |
171 | |
172 </div> | |
173 | |
174 <div id="dialogViewSavedResult" title="Saved Table List:"> | |
175 | |
176 <table class="pageTable"> | |
177 <tr> | |
178 <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
|
179 <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
|
180 <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
|
181 <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
|
182 <!-- |
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
|
183 <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
|
184 --> |
39 | 185 </tr> |
186 | |
187 <% for (LGFullTextSearchFile aFile : sessionBean.getFullTextSearchPage().getFileList() ){%> | |
188 <tr> | |
189 <td><%= aFile.getFileName() %></td> | |
190 <!-- getFullTextSearchFileText?fileId= &userId= --> | |
191 <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
|
192 <!-- click searching result to open it in the same table of full-text-search result --> |
39 | 193 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/getFullTextSearchHtmlFile?fileId=<%= aFile.getId() %>" |
194 target="_blank"> | |
195 <img alt="Show text in html" src="<%=sessionBean.getApplicationBean().getShowImage()%>"/> | |
196 </a> | |
197 </td> | |
49
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
198 <td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
199 <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
|
200 </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
|
201 <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
|
202 <!-- 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
|
203 <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
|
204 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
|
205 <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
|
206 </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
|
207 </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
|
208 <!-- |
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 <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
|
210 <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
|
211 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
|
212 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
|
213 |
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
|
214 </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
|
215 --> |
39 | 216 </tr> |
217 <% } %> | |
218 | |
219 </table> | |
220 | |
221 | |
222 </div> | |
223 <label class="subTitel">Full Text Search</label> | |
224 | |
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
|
225 |
39 | 226 <form name="fullTextSearchForm" id="fullTextSearchForm" |
227 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" | |
228 method="post" | |
229 class="contentForm"> | |
230 <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
|
231 <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
|
232 |
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 <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
|
234 <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
|
235 |
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
|
236 |
39 | 237 <table style="width: 300px; margin-left: auto;margin-right: auto;"> |
238 <tr> | |
239 <td> | |
240 <input | |
241 id="searchTerm" | |
242 name="searchTerm" | |
243 type="text" | |
244 class="searchInput" | |
245 value="<%=sessionBean.getFullTextSearchPage().getSearchTerm()%>" /> | |
246 </td> | |
247 <td> | |
248 <input id="search" | |
249 type="image" | |
250 onclick="setAction('search', 'fullTextSearchForm');" | |
251 src="<%=sessionBean.getApplicationBean().getSearchImage()%>"/> | |
252 </td> | |
48
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
253 |
39 | 254 |
255 </tr> | |
256 | |
48
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
257 <!-- TODO batching querying --> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
258 <!-- 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
|
259 <% 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
|
260 <tr> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
261 <td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
262 <input |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
263 id="batchSearchTerm" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
264 name="batchSearchTerm" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
265 type="text" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
266 class="searchInput" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
267 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
|
268 </td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
269 <td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
270 <input id="search" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
271 type="image" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
272 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
|
273 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
|
274 </td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
275 |
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 </tr> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
278 <% } %> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
279 |
39 | 280 <tr><td><label class="label"><%= (StringUtils.isNotEmpty(sessionBean.getFullTextSearchPage().getSearchMessage())) ? sessionBean.getFullTextSearchPage().getSearchMessage() : ""%></label></td></tr> |
281 <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
|
282 <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
|
283 |
39 | 284 <tr><td> |
285 <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
|
286 <button id="viewSavedResult" type="button" class="lgButton">View/Load Saved Table(s)</button> |
39 | 287 </td></tr> |
288 | |
289 | |
290 </table> | |
291 | |
292 | |
293 | |
294 <% | |
295 if (sessionBean.getFullTextSearchPage().getCompleteList() != null) { | |
296 %> | |
297 | |
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
|
298 |
39 | 299 <jsp:include page="../componentes/paginator.jsp"> |
300 <jsp:param name="formName" value="fullTextSearchForm"/> | |
301 </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
|
302 |
39 | 303 |
304 <div class="tableDiv double-scroll"> | |
305 <table class="pageTable"> | |
306 <tbody> | |
307 <tr> | |
308 <th> | |
309 <table class="sortTable"> | |
310 <tr> | |
311 <td><label class="tableTitle">#</label></td> | |
312 <td> | |
313 <table> | |
314 <tr><td> | |
315 <input type="image" | |
316 onclick="setAction('sortByInxUp', 'fullTextSearchForm');" | |
317 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
318 </td></tr> | |
319 <tr><td> | |
320 <input type="image" | |
321 onclick="setAction('sortByInxDown', 'fullTextSearchForm');" | |
322 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
323 </td></tr> | |
324 </table> | |
325 </td> | |
326 </tr> | |
327 </table> | |
328 </th> | |
329 <th> | |
330 <table class="sortTable"> | |
331 <tr> | |
332 <td><label class="tableTitle">Book Id</label></td> | |
333 <td> | |
334 <table> | |
335 <tr><td> | |
336 <input type="image" | |
337 onclick="setAction('sortByBookIdUp', 'fullTextSearchForm');" | |
338 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
339 </td></tr> | |
340 <tr><td> | |
341 <input type="image" | |
342 onclick="setAction('sortByBookIdDown', '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="bookIdFilter" id="bookIdFilter" value="<%= sessionBean.getFullTextSearchPage().getBookIdFilter()%>" 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">Book Name</label></td> | |
364 <td> | |
365 <table> | |
366 <tr><td> | |
367 <input type="image" | |
368 onclick="setAction('sortByBookNameUp', 'fullTextSearchForm');" | |
369 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
370 </td></tr> | |
371 <tr><td> | |
372 <input type="image" | |
373 onclick="setAction('sortByBookNameDown', '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="bookNameFilter" id="bookNameFilter" value="<%= sessionBean.getFullTextSearchPage().getBookNameFilter()%>" 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">Level 1</label></td> | |
395 <td> | |
396 <table> | |
397 <tr><td> | |
398 <input type="image" | |
399 onclick="setAction('sortByLevel1Up', 'fullTextSearchForm');" | |
400 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
401 </td></tr> | |
402 <tr><td> | |
403 <input type="image" | |
404 onclick="setAction('sortByLevel1Down', '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="level1Filter" id="level1Filter" value="<%= sessionBean.getFullTextSearchPage().getLevel1Filter()%>" 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">Level 2</label></td> | |
426 <td> | |
427 <table> | |
428 <tr><td> | |
429 <input type="image" | |
430 onclick="setAction('sortByLevel2Up', 'fullTextSearchForm');" | |
431 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
432 </td></tr> | |
433 <tr><td> | |
434 <input type="image" | |
435 onclick="setAction('sortByLevel2Down', '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="level2Filter" id="level2Filter" value="<%= sessionBean.getFullTextSearchPage().getLevel2Filter()%>" 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">Dynasty</label></td> | |
457 <td> | |
458 <table> | |
459 <tr><td> | |
460 <input type="image" | |
461 onclick="setAction('sortByDynastyUp', 'fullTextSearchForm');" | |
462 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
463 </td></tr> | |
464 <tr><td> | |
465 <input type="image" | |
466 onclick="setAction('sortByDynastyDown', '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="dynastyFilter" id="dynastyFilter" value="<%= sessionBean.getFullTextSearchPage().getDynastyFilter()%>" 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 <th> | |
485 <table class="sortTable"> | |
486 <tr> | |
487 <td><label class="tableTitle">Period</label></td> | |
488 <td> | |
489 <table> | |
490 <tr><td> | |
491 <input type="image" | |
492 onclick="setAction('sortByPeriodUp', 'fullTextSearchForm');" | |
493 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
494 </td></tr> | |
495 <tr><td> | |
496 <input type="image" | |
497 onclick="setAction('sortByPeriodDown', 'fullTextSearchForm');" | |
498 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
499 </td></tr> | |
500 </table> | |
501 </td> | |
502 </tr> | |
503 <tr> | |
504 <td> | |
505 <input type="text" class="filterInput" name="periodFilter" id="periodFilter" value="<%= sessionBean.getFullTextSearchPage().getPeriodFilter()%>" size="8"/> | |
506 </td> | |
507 <td> | |
508 <input type="image" | |
509 onclick="setAction('filter', 'fullTextSearchForm');" | |
510 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
511 </td> | |
512 </tr> | |
513 </table> | |
514 </th> | |
515 <th> | |
516 <table class="sortTable"> | |
517 <tr> | |
518 <td><label class="tableTitle">Admin Type</label></td> | |
519 <td> | |
520 <table> | |
521 <tr><td> | |
522 <input type="image" | |
523 onclick="setAction('sortByAdminTypeUp', 'fullTextSearchForm');" | |
524 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
525 </td></tr> | |
526 <tr><td> | |
527 <input type="image" | |
528 onclick="setAction('sortByAdminTypeDown', 'fullTextSearchForm');" | |
529 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
530 </td></tr> | |
531 </table> | |
532 </td> | |
533 </tr> | |
534 <tr> | |
535 <td> | |
536 <input type="text" class="filterInput" name="adminTypeFilter" id="adminTypeFilter" value="<%= sessionBean.getFullTextSearchPage().getAdminTypeFilter()%>" size="8"/> | |
537 </td> | |
538 <td> | |
539 <input type="image" | |
540 onclick="setAction('filter', 'fullTextSearchForm');" | |
541 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
542 </td> | |
543 </tr> | |
544 </table> | |
545 </th> | |
546 | |
547 <th> | |
548 <table class="sortTable"> | |
549 <tr> | |
550 <td><label class="tableTitle">Section Name</label></td> | |
551 <td> | |
552 <table> | |
553 <tr><td> | |
554 <input type="image" | |
555 onclick="setAction('sortBySectionNameUp', 'fullTextSearchForm');" | |
556 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
557 </td></tr> | |
558 <tr><td> | |
559 <input type="image" | |
560 onclick="setAction('sortBySectionNameDown', 'fullTextSearchForm');" | |
561 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
562 </td></tr> | |
563 </table> | |
564 </td> | |
565 </tr> | |
566 <tr> | |
567 <td> | |
568 <input type="text" class="filterInput" name="sectionNameFilter" id="sectionNameFilter" value="<%= sessionBean.getFullTextSearchPage().getSectionNameFilter()%>" size="8"/> | |
569 </td> | |
570 <td> | |
571 <input type="image" | |
572 onclick="setAction('filter', 'fullTextSearchForm');" | |
573 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
574 </td> | |
575 </tr> | |
576 </table> | |
577 </th> | |
578 <th> | |
579 <table class="sortTable"> | |
580 <tr> | |
581 <td><label class="tableTitle">Section Pages</label></td> | |
582 <td> | |
583 <table> | |
584 <tr><td> | |
585 <input type="image" | |
586 onclick="setAction('sortBySectionNameUp', 'fullTextSearchForm');" | |
587 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
588 </td></tr> | |
589 <tr><td> | |
590 <input type="image" | |
591 onclick="setAction('sortBySectionNameDown', 'fullTextSearchForm');" | |
592 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
593 </td></tr> | |
594 </table> | |
595 </td> | |
596 </tr> | |
597 </table> | |
598 </th> | |
599 <th> | |
600 <table class="sortTable"> | |
601 <tr> | |
602 <td><label class="tableTitle">Page</label></td> | |
603 <td> | |
604 <table> | |
605 <tr><td> | |
606 <input type="image" | |
607 onclick="setAction('sortByStartPageUp', 'fullTextSearchForm');" | |
608 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
609 </td></tr> | |
610 <tr><td> | |
611 <input type="image" | |
612 onclick="setAction('sortByStartPageDown', 'fullTextSearchForm');" | |
613 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
614 </td></tr> | |
615 </table> | |
616 </td> | |
617 </tr> | |
618 </table> | |
619 | |
620 </th> | |
49
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
621 <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
|
622 |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
623 <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
|
624 <tr> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
625 <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
|
626 <td></td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
627 </tr> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
628 <tr> |
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 <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
|
631 </td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
632 <td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
633 <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
|
634 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
|
635 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
|
636 </td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
637 </tr> |
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 </table> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
640 |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
641 </th> |
39 | 642 <th><label class="tableTitle">Select rows</th> |
643 </tr> | |
644 | |
645 | |
646 <% | |
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
|
647 for (DBContents content : sessionBean.getFullTextSearchPage().getDisplayList() ) { |
39 | 648 %> |
649 | |
650 <% if ( content.isRemoved() ) { %> | |
651 <tr class="removedContent"> | |
652 <% } else { %> | |
653 <tr> | |
654 <% } %> | |
655 | |
656 <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
|
657 <td><%=content.getBookId() %></td> |
39 | 658 <td><%=content.getSection().getBook().getName()%></td> |
659 <td><%=content.getSection().getBook().getLevel1()%></td> | |
660 <td><%=content.getSection().getBook().getLevel2()%></td> | |
661 <td><%=content.getSection().getBook().getDynasty()%></td> | |
662 <td><%=content.getSection().getBook().getPeriod()%></td> | |
663 <td><%=content.getSection().getBook().getAdmin_type() %></td> | |
664 <td><%=content.getSection().getName() %></td> | |
665 <td><%=content.getSection().getPages()%></td> | |
666 <td><%=content.getPage() %></td> | |
667 <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
|
668 <td id="content_<%=content.getId() %>"> |
39 | 669 <% if ( content.isRemoved() ) { %> |
670 | |
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
|
671 <input type="image" onclick="setMousePos(); setAction0('recoverFocusedContent', 'fullTextSearchForm', 'focusedContentId', '<%=content.getId() %>');" |
39 | 672 src="<%=sessionBean.getApplicationBean().getCheckboxUncheckedImage()%>" width="20" height="20"/> |
673 | |
674 <% } else { %> | |
675 | |
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
|
676 <input type="image" onclick="setMousePos(); setAction0('removeFocusedContent', 'fullTextSearchForm', 'focusedContentId', '<%=content.getId() %>');" |
39 | 677 src="<%=sessionBean.getApplicationBean().getCheckboxCheckedImage()%>" width="20" height="20"/> |
678 | |
679 <% } %> | |
680 | |
681 | |
682 | |
683 </td> | |
684 | |
685 </tr> | |
686 <% | |
687 } | |
688 %> | |
689 | |
690 </tbody> | |
691 </table> | |
692 | |
693 | |
694 <% | |
695 } | |
696 %> | |
697 | |
698 </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
|
699 |
39 | 700 <jsp:include page="../componentes/paginator.jsp"> |
701 <jsp:param name="formName" value="fullTextSearchForm"/> | |
702 </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
|
703 |
39 | 704 |
705 </form> | |
706 | |
707 <% } %> | |
708 | |
709 </div> | |
710 | |
711 </body> | |
712 </html> |