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