Mercurial > hg > LGServices
annotate src/main/webapp/pages/fullTextSearch.jsp @ 54:a00efd5d9e77
new: adding delete saved table function
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 04 Feb 2016 11:30:46 +0100 |
parents | fc4ee9cc587b |
children | 95bf4ac726e6 |
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, |
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
|
52 position: { my: "left+100px", at: "top", of: $("#viewSavedResult") }, |
54
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
53 |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
54 //position: { my: "center", at: "top+150px", of: $("#viewSavedResult") }, // TODO |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
55 // width: "600px", |
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 | |
54
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
180 <div id="dialogViewSavedResult" title="Saved Table"> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
181 |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
182 <div class="label">Recent</div> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
183 <table class="pageTable"> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
184 |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
185 <% for (LGFullTextSearchFile aFile : sessionBean.getFullTextSearchPage().getFileList() ){%> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
186 <tr><td> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
187 <%= aFile.getFileName() %> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
188 |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
189 <button type="button" class="lgButton" onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId() %>); document.getElementById('fullTextSearchForm').submit();">load</button> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
190 |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
191 <!-- getFullTextSearchFileText?fileId= &userId= --> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
192 |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
193 <!-- click searching result to open it in the same table of full-text-search result --> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
194 <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
|
195 target="_blank"> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
196 <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
|
197 </a> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
198 |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
199 |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
200 <!-- view on LGMap --> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
201 <a href="<%=sessionBean.getApplicationBean().getLGMapUrl() %>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms() %>" |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
202 target="_blank"> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
203 <img title="View on LGMap" src="<%=sessionBean.getApplicationBean().getViewOnMap()%>"/> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
204 </a> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
205 |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
206 <input type="image" title="Delete it" |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
207 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationDelete() %> setAction0('deleteFile', 'fullTextSearchForm', 'fileId','<%=aFile.getId() %>'); document.getElementById('fullTextSearchForm').submit();" |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
208 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>"/> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
209 </td> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
210 <tr> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
211 <% } %> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
212 </tr> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
213 </table> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
214 |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
215 <div class="label">Last Week</div> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
216 <div class="label">Last Month</div> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
217 <div class="label">Older...</div> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
218 |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
219 <!-- |
39 | 220 <table class="pageTable"> |
221 <tr> | |
222 <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
|
223 <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
|
224 <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
|
225 <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
|
226 <td class="tableTitle">Delete</td> |
39 | 227 </tr> |
54
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
228 |
39 | 229 <% for (LGFullTextSearchFile aFile : sessionBean.getFullTextSearchPage().getFileList() ){%> |
230 <tr> | |
231 <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
|
232 <td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
233 <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
|
234 </td> |
54
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
235 |
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
|
236 <td> |
54
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
237 |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
238 <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
|
239 target="_blank"> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
240 <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
|
241 </a> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
242 </td> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
243 |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
244 <td> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
245 |
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
|
246 <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
|
247 target="_blank"> |
54
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
248 <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
|
249 </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
|
250 </td> |
54
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
251 |
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
|
252 <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
|
253 <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
|
254 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
|
255 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
|
256 </td> |
54
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
257 |
39 | 258 </tr> |
259 <% } %> | |
260 | |
261 </table> | |
54
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
262 --> |
39 | 263 |
264 </div> | |
265 <label class="subTitel">Full Text Search</label> | |
266 | |
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
|
267 |
39 | 268 <form name="fullTextSearchForm" id="fullTextSearchForm" |
269 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" | |
270 method="post" | |
271 class="contentForm"> | |
272 <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
|
273 <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
|
274 |
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
|
275 <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
|
276 <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
|
277 |
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
|
278 |
39 | 279 <table style="width: 300px; margin-left: auto;margin-right: auto;"> |
280 <tr> | |
281 <td> | |
282 <input | |
283 id="searchTerm" | |
284 name="searchTerm" | |
285 type="text" | |
54
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
286 placeholder='if multiple terms, use "," to separate them.' |
39 | 287 class="searchInput" |
288 value="<%=sessionBean.getFullTextSearchPage().getSearchTerm()%>" /> | |
289 </td> | |
290 <td> | |
291 <input id="search" | |
292 type="image" | |
293 onclick="setAction('search', 'fullTextSearchForm');" | |
294 src="<%=sessionBean.getApplicationBean().getSearchImage()%>"/> | |
295 </td> | |
48
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
296 |
39 | 297 |
298 </tr> | |
299 | |
54
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
300 <!-- batching querying --> |
48
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
301 <!-- 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
|
302 <% 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
|
303 <tr> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
304 <td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
305 <input |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
306 id="batchSearchTerm" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
307 name="batchSearchTerm" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
308 type="text" |
54
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
309 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
|
310 class="searchInput" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
311 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
|
312 </td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
313 <td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
314 <input id="search" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
315 type="image" |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
316 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
|
317 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
|
318 </td> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
319 |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
320 |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
321 </tr> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
322 <% } %> |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
323 |
39 | 324 <tr><td><label class="label"><%= (StringUtils.isNotEmpty(sessionBean.getFullTextSearchPage().getSearchMessage())) ? sessionBean.getFullTextSearchPage().getSearchMessage() : ""%></label></td></tr> |
325 <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
|
326 <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
|
327 |
39 | 328 <tr><td> |
329 <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
|
330 <button id="viewSavedResult" type="button" class="lgButton">View/Load Saved Table(s)</button> |
39 | 331 </td></tr> |
332 | |
333 | |
334 </table> | |
335 | |
336 | |
337 | |
338 <% | |
339 if (sessionBean.getFullTextSearchPage().getCompleteList() != null) { | |
340 %> | |
341 | |
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
|
342 |
39 | 343 <jsp:include page="../componentes/paginator.jsp"> |
344 <jsp:param name="formName" value="fullTextSearchForm"/> | |
345 </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
|
346 |
39 | 347 |
348 <div class="tableDiv double-scroll"> | |
349 <table class="pageTable"> | |
350 <tbody> | |
351 <tr> | |
352 <th> | |
353 <table class="sortTable"> | |
354 <tr> | |
355 <td><label class="tableTitle">#</label></td> | |
356 <td> | |
357 <table> | |
358 <tr><td> | |
359 <input type="image" | |
360 onclick="setAction('sortByInxUp', 'fullTextSearchForm');" | |
361 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
362 </td></tr> | |
363 <tr><td> | |
364 <input type="image" | |
365 onclick="setAction('sortByInxDown', 'fullTextSearchForm');" | |
366 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
367 </td></tr> | |
368 </table> | |
369 </td> | |
370 </tr> | |
371 </table> | |
372 </th> | |
373 <th> | |
374 <table class="sortTable"> | |
375 <tr> | |
376 <td><label class="tableTitle">Book Id</label></td> | |
377 <td> | |
378 <table> | |
379 <tr><td> | |
380 <input type="image" | |
381 onclick="setAction('sortByBookIdUp', 'fullTextSearchForm');" | |
382 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
383 </td></tr> | |
384 <tr><td> | |
385 <input type="image" | |
386 onclick="setAction('sortByBookIdDown', 'fullTextSearchForm');" | |
387 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
388 </td></tr> | |
389 </table> | |
390 </td> | |
391 </tr> | |
392 <tr> | |
393 <td> | |
394 <input type="text" class="filterInput" name="bookIdFilter" id="bookIdFilter" value="<%= sessionBean.getFullTextSearchPage().getBookIdFilter()%>" size="8"/> | |
395 </td> | |
396 <td> | |
397 <input type="image" | |
398 onclick="setAction('filter', 'fullTextSearchForm');" | |
399 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
400 </td> | |
401 </tr> | |
402 </table> | |
403 </th> | |
404 <th> | |
405 <table class="sortTable"> | |
406 <tr> | |
407 <td><label class="tableTitle">Book Name</label></td> | |
408 <td> | |
409 <table> | |
410 <tr><td> | |
411 <input type="image" | |
412 onclick="setAction('sortByBookNameUp', 'fullTextSearchForm');" | |
413 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
414 </td></tr> | |
415 <tr><td> | |
416 <input type="image" | |
417 onclick="setAction('sortByBookNameDown', 'fullTextSearchForm');" | |
418 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
419 </td></tr> | |
420 </table> | |
421 </td> | |
422 </tr> | |
423 <tr> | |
424 <td> | |
425 <input type="text" class="filterInput" name="bookNameFilter" id="bookNameFilter" value="<%= sessionBean.getFullTextSearchPage().getBookNameFilter()%>" size="8"/> | |
426 </td> | |
427 <td> | |
428 <input type="image" | |
429 onclick="setAction('filter', 'fullTextSearchForm');" | |
430 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
431 </td> | |
432 </tr> | |
433 </table> | |
434 </th> | |
435 <th> | |
436 <table class="sortTable"> | |
437 <tr> | |
438 <td><label class="tableTitle">Level 1</label></td> | |
439 <td> | |
440 <table> | |
441 <tr><td> | |
442 <input type="image" | |
443 onclick="setAction('sortByLevel1Up', 'fullTextSearchForm');" | |
444 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
445 </td></tr> | |
446 <tr><td> | |
447 <input type="image" | |
448 onclick="setAction('sortByLevel1Down', 'fullTextSearchForm');" | |
449 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
450 </td></tr> | |
451 </table> | |
452 </td> | |
453 </tr> | |
454 <tr> | |
455 <td> | |
456 <input type="text" class="filterInput" name="level1Filter" id="level1Filter" value="<%= sessionBean.getFullTextSearchPage().getLevel1Filter()%>" size="8"/> | |
457 </td> | |
458 <td> | |
459 <input type="image" | |
460 onclick="setAction('filter', 'fullTextSearchForm');" | |
461 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
462 </td> | |
463 </tr> | |
464 </table> | |
465 </th> | |
466 <th> | |
467 <table class="sortTable"> | |
468 <tr> | |
469 <td><label class="tableTitle">Level 2</label></td> | |
470 <td> | |
471 <table> | |
472 <tr><td> | |
473 <input type="image" | |
474 onclick="setAction('sortByLevel2Up', 'fullTextSearchForm');" | |
475 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
476 </td></tr> | |
477 <tr><td> | |
478 <input type="image" | |
479 onclick="setAction('sortByLevel2Down', 'fullTextSearchForm');" | |
480 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
481 </td></tr> | |
482 </table> | |
483 </td> | |
484 </tr> | |
485 <tr> | |
486 <td> | |
487 <input type="text" class="filterInput" name="level2Filter" id="level2Filter" value="<%= sessionBean.getFullTextSearchPage().getLevel2Filter()%>" size="8"/> | |
488 </td> | |
489 <td> | |
490 <input type="image" | |
491 onclick="setAction('filter', 'fullTextSearchForm');" | |
492 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
493 </td> | |
494 </tr> | |
495 </table> | |
496 </th> | |
497 <th> | |
498 <table class="sortTable"> | |
499 <tr> | |
500 <td><label class="tableTitle">Dynasty</label></td> | |
501 <td> | |
502 <table> | |
503 <tr><td> | |
504 <input type="image" | |
505 onclick="setAction('sortByDynastyUp', 'fullTextSearchForm');" | |
506 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
507 </td></tr> | |
508 <tr><td> | |
509 <input type="image" | |
510 onclick="setAction('sortByDynastyDown', 'fullTextSearchForm');" | |
511 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
512 </td></tr> | |
513 </table> | |
514 </td> | |
515 </tr> | |
516 <tr> | |
517 <td> | |
518 <input type="text" class="filterInput" name="dynastyFilter" id="dynastyFilter" value="<%= sessionBean.getFullTextSearchPage().getDynastyFilter()%>" size="8"/> | |
519 </td> | |
520 <td> | |
521 <input type="image" | |
522 onclick="setAction('filter', 'fullTextSearchForm');" | |
523 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
524 </td> | |
525 </tr> | |
526 </table> | |
527 </th> | |
528 <th> | |
529 <table class="sortTable"> | |
530 <tr> | |
531 <td><label class="tableTitle">Period</label></td> | |
532 <td> | |
533 <table> | |
534 <tr><td> | |
535 <input type="image" | |
536 onclick="setAction('sortByPeriodUp', 'fullTextSearchForm');" | |
537 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
538 </td></tr> | |
539 <tr><td> | |
540 <input type="image" | |
541 onclick="setAction('sortByPeriodDown', 'fullTextSearchForm');" | |
542 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
543 </td></tr> | |
544 </table> | |
545 </td> | |
546 </tr> | |
547 <tr> | |
548 <td> | |
549 <input type="text" class="filterInput" name="periodFilter" id="periodFilter" value="<%= sessionBean.getFullTextSearchPage().getPeriodFilter()%>" size="8"/> | |
550 </td> | |
551 <td> | |
552 <input type="image" | |
553 onclick="setAction('filter', 'fullTextSearchForm');" | |
554 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
555 </td> | |
556 </tr> | |
557 </table> | |
558 </th> | |
559 <th> | |
560 <table class="sortTable"> | |
561 <tr> | |
562 <td><label class="tableTitle">Admin Type</label></td> | |
563 <td> | |
564 <table> | |
565 <tr><td> | |
566 <input type="image" | |
567 onclick="setAction('sortByAdminTypeUp', 'fullTextSearchForm');" | |
568 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
569 </td></tr> | |
570 <tr><td> | |
571 <input type="image" | |
572 onclick="setAction('sortByAdminTypeDown', 'fullTextSearchForm');" | |
573 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
574 </td></tr> | |
575 </table> | |
576 </td> | |
577 </tr> | |
578 <tr> | |
579 <td> | |
580 <input type="text" class="filterInput" name="adminTypeFilter" id="adminTypeFilter" value="<%= sessionBean.getFullTextSearchPage().getAdminTypeFilter()%>" size="8"/> | |
581 </td> | |
582 <td> | |
583 <input type="image" | |
584 onclick="setAction('filter', 'fullTextSearchForm');" | |
585 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
586 </td> | |
587 </tr> | |
588 </table> | |
589 </th> | |
590 | |
591 <th> | |
592 <table class="sortTable"> | |
593 <tr> | |
594 <td><label class="tableTitle">Section Name</label></td> | |
595 <td> | |
596 <table> | |
597 <tr><td> | |
598 <input type="image" | |
599 onclick="setAction('sortBySectionNameUp', 'fullTextSearchForm');" | |
600 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
601 </td></tr> | |
602 <tr><td> | |
603 <input type="image" | |
604 onclick="setAction('sortBySectionNameDown', 'fullTextSearchForm');" | |
605 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
606 </td></tr> | |
607 </table> | |
608 </td> | |
609 </tr> | |
610 <tr> | |
611 <td> | |
612 <input type="text" class="filterInput" name="sectionNameFilter" id="sectionNameFilter" value="<%= sessionBean.getFullTextSearchPage().getSectionNameFilter()%>" size="8"/> | |
613 </td> | |
614 <td> | |
615 <input type="image" | |
616 onclick="setAction('filter', 'fullTextSearchForm');" | |
617 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
618 </td> | |
619 </tr> | |
620 </table> | |
621 </th> | |
622 <th> | |
623 <table class="sortTable"> | |
624 <tr> | |
625 <td><label class="tableTitle">Section Pages</label></td> | |
626 <td> | |
627 <table> | |
628 <tr><td> | |
629 <input type="image" | |
630 onclick="setAction('sortBySectionNameUp', 'fullTextSearchForm');" | |
631 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
632 </td></tr> | |
633 <tr><td> | |
634 <input type="image" | |
635 onclick="setAction('sortBySectionNameDown', 'fullTextSearchForm');" | |
636 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
637 </td></tr> | |
638 </table> | |
639 </td> | |
640 </tr> | |
641 </table> | |
642 </th> | |
643 <th> | |
644 <table class="sortTable"> | |
645 <tr> | |
646 <td><label class="tableTitle">Page</label></td> | |
647 <td> | |
648 <table> | |
649 <tr><td> | |
650 <input type="image" | |
651 onclick="setAction('sortByStartPageUp', 'fullTextSearchForm');" | |
652 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
653 </td></tr> | |
654 <tr><td> | |
655 <input type="image" | |
656 onclick="setAction('sortByStartPageDown', 'fullTextSearchForm');" | |
657 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
658 </td></tr> | |
659 </table> | |
660 </td> | |
661 </tr> | |
662 </table> | |
663 | |
664 </th> | |
49
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
665 <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
|
666 |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
667 <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
|
668 <tr> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
669 <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
|
670 <td></td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
671 </tr> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
672 <tr> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
673 <td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
674 <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
|
675 </td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
676 <td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
677 <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
|
678 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
|
679 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
|
680 </td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
681 </tr> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
682 |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
683 </table> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
684 |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
685 </th> |
39 | 686 <th><label class="tableTitle">Select rows</th> |
687 </tr> | |
688 | |
689 | |
690 <% | |
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
|
691 for (DBContents content : sessionBean.getFullTextSearchPage().getDisplayList() ) { |
39 | 692 %> |
693 | |
694 <% if ( content.isRemoved() ) { %> | |
695 <tr class="removedContent"> | |
696 <% } else { %> | |
697 <tr> | |
698 <% } %> | |
699 | |
700 <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
|
701 <td><%=content.getBookId() %></td> |
39 | 702 <td><%=content.getSection().getBook().getName()%></td> |
703 <td><%=content.getSection().getBook().getLevel1()%></td> | |
704 <td><%=content.getSection().getBook().getLevel2()%></td> | |
705 <td><%=content.getSection().getBook().getDynasty()%></td> | |
706 <td><%=content.getSection().getBook().getPeriod()%></td> | |
707 <td><%=content.getSection().getBook().getAdmin_type() %></td> | |
708 <td><%=content.getSection().getName() %></td> | |
709 <td><%=content.getSection().getPages()%></td> | |
710 <td><%=content.getPage() %></td> | |
711 <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
|
712 <td id="content_<%=content.getId() %>"> |
39 | 713 <% if ( content.isRemoved() ) { %> |
714 | |
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
|
715 <input type="image" onclick="setMousePos(); setAction0('recoverFocusedContent', 'fullTextSearchForm', 'focusedContentId', '<%=content.getId() %>');" |
39 | 716 src="<%=sessionBean.getApplicationBean().getCheckboxUncheckedImage()%>" width="20" height="20"/> |
717 | |
718 <% } else { %> | |
719 | |
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
|
720 <input type="image" onclick="setMousePos(); setAction0('removeFocusedContent', 'fullTextSearchForm', 'focusedContentId', '<%=content.getId() %>');" |
39 | 721 src="<%=sessionBean.getApplicationBean().getCheckboxCheckedImage()%>" width="20" height="20"/> |
722 | |
723 <% } %> | |
724 | |
725 | |
726 | |
727 </td> | |
728 | |
729 </tr> | |
730 <% | |
731 } | |
732 %> | |
733 | |
734 </tbody> | |
735 </table> | |
736 | |
737 | |
738 <% | |
739 } | |
740 %> | |
741 | |
742 </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
|
743 |
39 | 744 <jsp:include page="../componentes/paginator.jsp"> |
745 <jsp:param name="formName" value="fullTextSearchForm"/> | |
746 </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
|
747 |
39 | 748 |
749 </form> | |
750 | |
751 <% } %> | |
752 | |
753 </div> | |
754 | |
755 </body> | |
756 </html> |