Mercurial > hg > LGServices
comparison src/main/webapp/pages/fullTextSearch.jsp @ 55:95bf4ac726e6
Topic synchronization with extraction-interface. new tables in LGService database
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 16 Feb 2016 15:09:40 +0100 |
parents | a00efd5d9e77 |
children | 5cbe567a9c52 |
comparison
equal
deleted
inserted
replaced
54:a00efd5d9e77 | 55:95bf4ac726e6 |
---|---|
47 }); | 47 }); |
48 | 48 |
49 var dialogViewSavedResult = $("#dialogViewSavedResult").dialog( | 49 var dialogViewSavedResult = $("#dialogViewSavedResult").dialog( |
50 { | 50 { |
51 autoOpen: false, | 51 autoOpen: false, |
52 position: { my: "left+100px", at: "top", of: $("#viewSavedResult") }, | 52 //position: { my: "left+100px", at: "top", of: $("#viewSavedResult") }, |
53 | 53 position: { my: "center", at: "top+200px", of: $("#viewSavedResult") }, // TODO |
54 //position: { my: "center", at: "top+150px", of: $("#viewSavedResult") }, // TODO | 54 width: "850px", |
55 // width: "600px", | 55 |
56 } | 56 } |
57 ); | 57 ); |
58 $("#viewSavedResult").button().on( "click", function() { | 58 $("#viewSavedResult").button().on( "click", function() { |
59 dialogViewSavedResult.dialog( "open" ); | 59 dialogViewSavedResult.dialog( "open" ); |
60 }); | 60 }); |
175 </table> | 175 </table> |
176 </form> | 176 </form> |
177 | 177 |
178 </div> | 178 </div> |
179 | 179 |
180 <div id="dialogViewSavedResult" title="Saved Table"> | 180 <div id="dialogViewSavedResult" title="Saved Table(s)"> |
181 | 181 |
182 <div class="label">Recent</div> | 182 <div class="label">This week:</div> |
183 <table class="pageTable"> | 183 <table class="savedResultTable"> |
184 | 184 <tr> |
185 <% for (LGFullTextSearchFile aFile : sessionBean.getFullTextSearchPage().getFileList() ){%> | 185 <% for (LGFullTextSearchFile aFile : sessionBean.getFullTextSearchPage().getWeekFileList() ){%> |
186 <tr><td> | 186 <td> |
187 <%= aFile.getFileName() %> | 187 <div><%= aFile.getFileName() %></div> |
188 | 188 <button type="button" class="lgButton" onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId() %>); document.getElementById('fullTextSearchForm').submit();">load</button> |
189 <button type="button" class="lgButton" onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId() %>); document.getElementById('fullTextSearchForm').submit();">load</button> | 189 |
190 | 190 <!-- getFullTextSearchFileText?fileId= &userId= --> |
191 <!-- getFullTextSearchFileText?fileId= &userId= --> | 191 |
192 | 192 <!-- click searching result to open it in the same table of full-text-search result --> |
193 <!-- click searching result to open it in the same table of full-text-search result --> | 193 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/getFullTextSearchHtmlFile?fileId=<%= aFile.getId() %>" |
194 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/getFullTextSearchHtmlFile?fileId=<%= aFile.getId() %>" | 194 target="_blank"> |
195 target="_blank"> | 195 <img title="Show text in html" src="<%=sessionBean.getApplicationBean().getShowImage()%>"/> |
196 <img title="Show text in html" src="<%=sessionBean.getApplicationBean().getShowImage()%>"/> | 196 </a> |
197 </a> | 197 <!-- view on LGMap --> |
198 | 198 <a href="<%=sessionBean.getApplicationBean().getLGMapUrl() %>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms() %>" |
199 | 199 target="_blank"> |
200 <!-- view on LGMap --> | 200 <img title="View on LGMap" src="<%=sessionBean.getApplicationBean().getViewOnMap()%>"/> |
201 <a href="<%=sessionBean.getApplicationBean().getLGMapUrl() %>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms() %>" | 201 </a> |
202 target="_blank"> | 202 |
203 <img title="View on LGMap" src="<%=sessionBean.getApplicationBean().getViewOnMap()%>"/> | 203 <input type="image" title="Delete it" |
204 </a> | 204 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationDelete() %> setAction0('deleteFile', 'fullTextSearchForm', 'fileId','<%=aFile.getId() %>'); document.getElementById('fullTextSearchForm').submit();" |
205 | 205 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>"/> |
206 <input type="image" title="Delete it" | 206 |
207 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationDelete() %> setAction0('deleteFile', 'fullTextSearchForm', 'fileId','<%=aFile.getId() %>'); document.getElementById('fullTextSearchForm').submit();" | 207 </td> |
208 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>"/> | 208 |
209 </td> | |
210 <tr> | |
211 <% } %> | 209 <% } %> |
212 </tr> | 210 </tr> |
213 </table> | 211 </table> |
214 | 212 |
215 <div class="label">Last Week</div> | 213 <div class="label">This month:</div> |
216 <div class="label">Last Month</div> | 214 <table class="savedResultTable"> |
215 <tr> | |
216 <% for (LGFullTextSearchFile aFile : sessionBean.getFullTextSearchPage().getMonthFileList() ){ %> | |
217 <td> | |
218 <div><%= aFile.getFileName() %></div> | |
219 <button type="button" class="lgButton" onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId() %>); document.getElementById('fullTextSearchForm').submit();">load</button> | |
220 | |
221 <!-- getFullTextSearchFileText?fileId= &userId= --> | |
222 | |
223 <!-- click searching result to open it in the same table of full-text-search result --> | |
224 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/getFullTextSearchHtmlFile?fileId=<%= aFile.getId() %>" | |
225 target="_blank"> | |
226 <img title="Show text in html" src="<%=sessionBean.getApplicationBean().getShowImage()%>"/> | |
227 </a> | |
228 | |
229 | |
230 <!-- view on LGMap --> | |
231 <a href="<%=sessionBean.getApplicationBean().getLGMapUrl() %>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms() %>" | |
232 target="_blank"> | |
233 <img title="View on LGMap" src="<%=sessionBean.getApplicationBean().getViewOnMap()%>"/> | |
234 </a> | |
235 | |
236 <input type="image" title="Delete it" | |
237 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationDelete() %> setAction0('deleteFile', 'fullTextSearchForm', 'fileId','<%=aFile.getId() %>'); document.getElementById('fullTextSearchForm').submit();" | |
238 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>"/> | |
239 | |
240 </td> | |
241 | |
242 <% } %> | |
243 </tr> | |
244 </table> | |
245 | |
217 <div class="label">Older...</div> | 246 <div class="label">Older...</div> |
247 <table class="savedResultTable"> | |
248 <tr> | |
249 <% for (LGFullTextSearchFile aFile : sessionBean.getFullTextSearchPage().getOlderFileList() ){%> | |
250 <td> | |
251 <div><%= aFile.getFileName() %></div> | |
252 <button type="button" class="lgButton" onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId() %>); document.getElementById('fullTextSearchForm').submit();">load</button> | |
253 | |
254 <!-- getFullTextSearchFileText?fileId= &userId= --> | |
255 | |
256 <!-- click searching result to open it in the same table of full-text-search result --> | |
257 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/getFullTextSearchHtmlFile?fileId=<%= aFile.getId() %>" | |
258 target="_blank"> | |
259 <img title="Show text in html" src="<%=sessionBean.getApplicationBean().getShowImage()%>"/> | |
260 </a> | |
261 | |
262 | |
263 <!-- view on LGMap --> | |
264 <a href="<%=sessionBean.getApplicationBean().getLGMapUrl() %>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms() %>" | |
265 target="_blank"> | |
266 <img title="View on LGMap" src="<%=sessionBean.getApplicationBean().getViewOnMap()%>"/> | |
267 </a> | |
268 | |
269 <input type="image" title="Delete it" | |
270 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationDelete() %> setAction0('deleteFile', 'fullTextSearchForm', 'fileId','<%=aFile.getId() %>'); document.getElementById('fullTextSearchForm').submit();" | |
271 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>"/> | |
272 | |
273 </td> | |
274 | |
275 <% } %> | |
276 </tr> | |
277 </table> | |
218 | 278 |
219 <!-- | 279 <!-- |
220 <table class="pageTable"> | 280 <table class="pageTable"> |
221 <tr> | 281 <tr> |
222 <td class="tableTitle">Table name</td> | 282 <td class="tableTitle">Table name</td> |
261 </table> | 321 </table> |
262 --> | 322 --> |
263 | 323 |
264 </div> | 324 </div> |
265 <label class="subTitel">Full Text Search</label> | 325 <label class="subTitel">Full Text Search</label> |
266 | |
267 | |
268 <form name="fullTextSearchForm" id="fullTextSearchForm" | 326 <form name="fullTextSearchForm" id="fullTextSearchForm" |
269 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" | 327 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" |
270 method="post" | 328 method="post" |
271 class="contentForm"> | 329 class="contentForm"> |
272 <input name="bean" type="hidden" value="fullTextSearchBean" /> | 330 <input name="bean" type="hidden" value="fullTextSearchBean" /> |
273 <input id="focusedId" type="hidden" value="<%=sessionBean.getFullTextSearchPage().getFocusedContentId() %>"/> | 331 <input id="focusedId" type="hidden" value="<%=sessionBean.getFullTextSearchPage().getFocusedContentId() %>"/> |
274 | 332 |
275 <input id="mouseX" name="mouseX" type="hidden" value="<%=sessionBean.getFullTextSearchPage().getMouseX() %>"/> | 333 <input id="mouseX" name="mouseX" type="hidden" value="<%=sessionBean.getFullTextSearchPage().getMouseX() %>"/> |
276 <input id="mouseY" name="mouseY" type="hidden" value="<%=sessionBean.getFullTextSearchPage().getMouseY() %>"/> | 334 <input id="mouseY" name="mouseY" type="hidden" value="<%=sessionBean.getFullTextSearchPage().getMouseY() %>"/> |
277 | |
278 | 335 |
279 <table style="width: 300px; margin-left: auto;margin-right: auto;"> | 336 <table style="width: 300px; margin-left: auto;margin-right: auto;"> |
280 <tr> | 337 <tr> |
281 <td> | 338 <td> |
282 <input | 339 <input |