Mercurial > hg > LGServices
annotate src/main/webapp/pages/fullTextSearch.jsp @ 62:824b808a7481
improvements and bug fixed
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 18 Jul 2016 17:35:32 +0200 |
parents | bc0219c2600b |
children | 0a9937b06cc3 |
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 | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
8 <jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
9 scope="session" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
10 |
39 | 11 |
12 <html> | |
13 | |
14 <head> | |
15 | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
16 <jsp:include page="../componentes/headContent.jsp" /> |
39 | 17 |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
18 <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
|
19 |
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
|
20 |
39 | 21 $(function() { |
22 $( "#dialogMoreInfo" ).dialog({ | |
23 autoOpen: false, | |
24 modal: true, | |
25 position: { my: "center", at: "top", of: window }, | |
26 | |
27 }); | |
28 | |
29 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
|
30 { |
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 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
|
32 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
|
33 } |
39 | 34 ); |
35 $("#saveResult").button().on( "click", function() { | |
36 // append searchTerm into the form | |
37 $('<input>').attr({ | |
38 type: 'hidden', | |
39 name: 'searchTerm', | |
40 value: $("#searchTerm").val() | |
41 }).appendTo('form[name="saveTableForm"]'); | |
42 | |
54
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
43 if ($("#fileName").val() == "") { |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
44 $("#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
|
45 } |
39 | 46 |
47 dialogSave.dialog( "open" ); | |
48 }); | |
49 | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
50 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
51 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
52 $("#prompToSaveResult").click( function () { |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
53 $("#saveResult").click(); |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
54 }); |
58
b8ad346e39a0
new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
57
diff
changeset
|
55 |
b8ad346e39a0
new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
57
diff
changeset
|
56 |
39 | 57 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
|
58 { |
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
|
59 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
|
60 //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
|
61 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
|
62 width: "850px", |
54
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
63 |
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
|
64 } |
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
|
65 ); |
39 | 66 $("#viewSavedResult").button().on( "click", function() { |
67 dialogViewSavedResult.dialog( "open" ); | |
68 }); | |
69 | |
59
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
70 $("#bookIdFilter").autocomplete({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
71 source : function(request, response) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
72 $.ajax({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
73 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/fullTextSearchBookIdAutocomplete.jsp", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
74 type : "POST", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
75 dataType : "json", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
76 data : { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
77 term : request.term |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
78 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
79 success : function(data) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
80 response($.map(data, function(item) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
81 return { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
82 label : item.name, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
83 value : item.value, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
84 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
85 })); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
86 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
87 error : function(error) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
88 alert('error: ' + error); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
89 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
90 }); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
91 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
92 minLength : 0 |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
93 }); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
94 $("#bookNameFilter").autocomplete({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
95 source : function(request, response) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
96 $.ajax({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
97 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/fullTextSearchBookNameAutocomplete.jsp", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
98 type : "POST", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
99 dataType : "json", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
100 data : { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
101 term : request.term |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
102 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
103 success : function(data) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
104 response($.map(data, function(item) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
105 return { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
106 label : item.name, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
107 value : item.value, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
108 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
109 })); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
110 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
111 error : function(error) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
112 alert('error: ' + error); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
113 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
114 }); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
115 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
116 minLength : 0 |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
117 }); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
118 $("#level1Filter").autocomplete({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
119 source : function(request, response) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
120 $.ajax({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
121 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/fullTextSearchLevel1Autocomplete.jsp", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
122 type : "POST", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
123 dataType : "json", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
124 data : { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
125 term : request.term |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
126 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
127 success : function(data) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
128 response($.map(data, function(item) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
129 return { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
130 label : item.name, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
131 value : item.value, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
132 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
133 })); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
134 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
135 error : function(error) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
136 alert('error: ' + error); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
137 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
138 }); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
139 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
140 minLength : 0 |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
141 }); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
142 $("#level2Filter").autocomplete({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
143 source : function(request, response) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
144 $.ajax({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
145 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/fullTextSearchLevel2Autocomplete.jsp", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
146 type : "POST", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
147 dataType : "json", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
148 data : { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
149 term : request.term |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
150 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
151 success : function(data) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
152 response($.map(data, function(item) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
153 return { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
154 label : item.name, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
155 value : item.value, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
156 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
157 })); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
158 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
159 error : function(error) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
160 alert('error: ' + error); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
161 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
162 }); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
163 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
164 minLength : 0 |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
165 }); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
166 $("#dynastyFilter").autocomplete({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
167 source : function(request, response) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
168 $.ajax({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
169 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/fullTextSearchDynastyAutocomplete.jsp", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
170 type : "POST", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
171 dataType : "json", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
172 data : { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
173 term : request.term |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
174 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
175 success : function(data) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
176 response($.map(data, function(item) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
177 return { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
178 label : item.name, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
179 value : item.value, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
180 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
181 })); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
182 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
183 error : function(error) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
184 alert('error: ' + error); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
185 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
186 }); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
187 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
188 minLength : 0 |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
189 }); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
190 $("#periodFilter").autocomplete({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
191 source : function(request, response) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
192 $.ajax({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
193 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/fullTextSearchPeriodAutocomplete.jsp", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
194 type : "POST", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
195 dataType : "json", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
196 data : { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
197 term : request.term |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
198 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
199 success : function(data) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
200 response($.map(data, function(item) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
201 return { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
202 label : item.name, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
203 value : item.value, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
204 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
205 })); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
206 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
207 error : function(error) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
208 alert('error: ' + error); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
209 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
210 }); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
211 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
212 minLength : 0 |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
213 }); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
214 $("#adminTypeFilter").autocomplete({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
215 source : function(request, response) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
216 $.ajax({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
217 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/fullTextSearchAdminTypeAutocomplete.jsp", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
218 type : "POST", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
219 dataType : "json", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
220 data : { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
221 term : request.term |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
222 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
223 success : function(data) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
224 response($.map(data, function(item) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
225 return { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
226 label : item.name, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
227 value : item.value, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
228 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
229 })); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
230 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
231 error : function(error) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
232 alert('error: ' + error); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
233 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
234 }); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
235 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
236 minLength : 0 |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
237 }); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
238 $("#sectionNameFilter").autocomplete({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
239 source : function(request, response) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
240 $.ajax({ |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
241 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/fullTextSearchSectionNameAutocomplete.jsp", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
242 type : "POST", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
243 dataType : "json", |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
244 data : { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
245 term : request.term |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
246 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
247 success : function(data) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
248 response($.map(data, function(item) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
249 return { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
250 label : item.name, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
251 value : item.value, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
252 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
253 })); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
254 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
255 error : function(error) { |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
256 alert('error: ' + error); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
257 } |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
258 }); |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
259 }, |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
260 minLength : 0 |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
261 }); |
39 | 262 |
263 }); | |
264 | |
265 // enter pressed event, we don't want to always go to "search". | |
266 $(document).keypress( | |
267 function(event){ | |
268 if (event.which == '13') { // enter pressed | |
269 // if any of the filter fields is filled in, filter first; otherwize, go to search | |
270 $(".filterInput" ).each(function( i ) { | |
271 //console.log( this.value ); | |
272 if (this.value != "") { | |
273 //console.log('filtering' + i); | |
274 setAction('filter', 'fullTextSearchForm'); | |
275 $("#fullTextSearchForm").submit(); | |
276 return false; | |
277 } | |
278 | |
279 }); | |
280 } | |
281 }); | |
282 | |
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
|
283 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
|
284 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
|
285 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
|
286 $("#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
|
287 $("#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
|
288 } |
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
|
289 |
39 | 290 $(document).ready(function(){ |
291 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
|
292 scrollPage(); |
39 | 293 }) |
294 | |
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
|
295 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
|
296 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
|
297 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
|
298 |
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
|
299 //$('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
|
300 |
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
|
301 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
|
302 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
|
303 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
|
304 |
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
|
305 //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
|
306 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
|
307 |
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
|
308 //$('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
|
309 $('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
|
310 |
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
|
311 } |
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 |
39 | 313 function highlightKeywords() // highlight keywords in content column, with class="content" |
314 { | |
315 if ($("#searchTerm")[0] == undefined ){ | |
316 return; | |
317 } | |
318 var keywords = $("#searchTerm")[0].value; | |
319 var keywordsArray = keywords.split(", "); | |
320 //console.log("keywordsArray: "+keywordsArray); | |
321 | |
322 var content = $(".content"); | |
323 for (var i = 0; i < content.length; i++) { | |
324 // find keywords in content[i] | |
325 var text = content[i].innerHTML; | |
326 for (var j = 0; j < keywordsArray.length; j++) { | |
327 var index = text.indexOf(keywordsArray[j]); | |
328 if (index >= 0) { | |
329 text = text.substring(0,index) + "<span class='highlight'>" + text.substring(index, index+keywordsArray[j].length) + "</span>" + text.substring(index+keywordsArray[j].length); | |
330 content[i].innerHTML = text; | |
331 } | |
332 }; | |
333 | |
334 }; | |
335 } | |
336 | |
59
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
337 |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
338 |
bc0219c2600b
new: minor improvements
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
58
diff
changeset
|
339 |
39 | 340 </script> |
341 </head> | |
342 | |
343 <body> | |
344 | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
345 <jsp:include page="../componentes/template.jsp" /> |
39 | 346 |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
347 <div id="dialogMoreInfo" title="Full Text Search Details"></div> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
348 |
39 | 349 <div id="page"> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
350 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
351 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
352 if (sessionBean.getUser() == null) { |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
353 %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
354 <label class="subTitel">You must login!</label> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
355 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
356 } else { |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
357 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
358 if (sessionBean.getFullTextSearchPage().getFileList() == null) { |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
359 sessionBean.getFullTextSearchPage().loadParameters(request, |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
360 response); |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
361 sessionBean.getFullTextSearchPage().forceLoadFileList(); |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
362 } |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
363 %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
364 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
365 <div id="dialogSave" title="Save Table:"> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
366 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
367 <form name="saveTableForm" id="saveTableForm" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
368 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
369 method="post"> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
370 <input name="bean" type="hidden" value="fullTextSearchBean" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
371 <table> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
372 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
373 <td><input id="fileName" name="fileName" type="text" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
374 placeholder="table name" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
375 value="<%=sessionBean.getFullTextSearchPage().getFileName()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
376 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
377 <td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
378 <button |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
379 onclick="setAction('save', 'saveTableForm'); document.getElementById('saveTableForm').submit();">Save</button> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
380 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
381 </td> |
54
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
382 </tr> |
a00efd5d9e77
new: adding delete saved table function
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
52
diff
changeset
|
383 </table> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
384 </form> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
385 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
386 </div> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
387 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
388 <div id="dialogViewSavedResult" title="Saved Table(s)"> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
389 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
390 <div class="label">This week:</div> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
391 <table class="savedResultTable"> |
55
95bf4ac726e6
Topic synchronization with extraction-interface. new tables in LGService database
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
54
diff
changeset
|
392 <tr> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
393 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
394 for (LGFullTextSearchFile aFile : sessionBean |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
395 .getFullTextSearchPage().getWeekFileList()) { |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
396 %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
397 <td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
398 <div><%=aFile.getFileName()%></div> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
399 <button type="button" class="lgButton" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
400 onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId()%>); document.getElementById('fullTextSearchForm').submit();">load</button> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
401 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
402 <!-- getFullTextSearchFileText?fileId= &userId= --> <!-- click searching result to open it in the same table of full-text-search result --> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
403 <a |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
404 href="<%=sessionBean.getApplicationBean().getRootServer()%>/rest/text/getFullTextSearchHtmlFile?fileId=<%=aFile.getId()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
405 target="_blank"> <img title="Show text in html" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
406 src="<%=sessionBean.getApplicationBean().getShowImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
407 </a> <!-- download csv file --> <a |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
408 href="<%=sessionBean.getApplicationBean().getRootServer()%>/rest/text/downloadFullTextSearchCsvFile?file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
409 target="_blank"> <img title="Download CSV" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
410 src="<%=sessionBean.getApplicationBean() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
411 .getDownloadImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
412 </a> <!-- view on LGMap --> <a |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
413 href="<%=sessionBean.getApplicationBean().getLGMapUrl()%>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
414 target="_blank"> <img title="View on LGMap" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
415 src="<%=sessionBean.getApplicationBean().getViewOnMap()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
416 </a> <input type="image" title="Delete it" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
417 onclick="<%=sessionBean.getApplicationBean() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
418 .getJSConfirmationDelete()%> setAction0('deleteFile', 'fullTextSearchForm', 'fileId','<%=aFile.getId()%>'); document.getElementById('fullTextSearchForm').submit();" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
419 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
420 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
421 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
422 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
423 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
424 } |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
425 %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
426 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
427 </table> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
428 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
429 <div class="label">This month:</div> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
430 <table class="savedResultTable"> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
431 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
432 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
433 for (LGFullTextSearchFile aFile : sessionBean |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
434 .getFullTextSearchPage().getMonthFileList()) { |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
435 %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
436 <td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
437 <div><%=aFile.getFileName()%></div> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
438 <button type="button" class="lgButton" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
439 onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId()%>); document.getElementById('fullTextSearchForm').submit();">load</button> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
440 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
441 <!-- getFullTextSearchFileText?fileId= &userId= --> <!-- click searching result to open it in the same table of full-text-search result --> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
442 <a |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
443 href="<%=sessionBean.getApplicationBean().getRootServer()%>/rest/text/getFullTextSearchHtmlFile?fileId=<%=aFile.getId()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
444 target="_blank"> <img title="Show text in html" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
445 src="<%=sessionBean.getApplicationBean().getShowImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
446 </a> <!-- download csv file --> <a |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
447 href="<%=sessionBean.getApplicationBean().getRootServer()%>/rest/text/downloadFullTextSearchCsvFile?file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
448 target="_blank"> <img title="Download CSV" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
449 src="<%=sessionBean.getApplicationBean() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
450 .getDownloadImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
451 </a> <!-- view on LGMap --> <a |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
452 href="<%=sessionBean.getApplicationBean().getLGMapUrl()%>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
453 target="_blank"> <img title="View on LGMap" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
454 src="<%=sessionBean.getApplicationBean().getViewOnMap()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
455 </a> <input type="image" title="Delete it" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
456 onclick="<%=sessionBean.getApplicationBean() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
457 .getJSConfirmationDelete()%> setAction0('deleteFile', 'fullTextSearchForm', 'fileId','<%=aFile.getId()%>'); document.getElementById('fullTextSearchForm').submit();" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
458 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
459 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
460 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
461 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
462 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
463 } |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
464 %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
465 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
466 </table> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
467 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
468 <div class="label">Older...</div> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
469 <table class="savedResultTable"> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
470 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
471 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
472 for (LGFullTextSearchFile aFile : sessionBean |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
473 .getFullTextSearchPage().getOlderFileList()) { |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
474 %> |
55
95bf4ac726e6
Topic synchronization with extraction-interface. new tables in LGService database
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
54
diff
changeset
|
475 <td> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
476 <div><%=aFile.getFileName()%></div> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
477 <button type="button" class="lgButton" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
478 onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId()%>); document.getElementById('fullTextSearchForm').submit();">load</button> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
479 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
480 <!-- getFullTextSearchFileText?fileId= &userId= --> <!-- click searching result to open it in the same table of full-text-search result --> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
481 <a |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
482 href="<%=sessionBean.getApplicationBean().getRootServer()%>/rest/text/getFullTextSearchHtmlFile?fileId=<%=aFile.getId()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
483 target="_blank"> <img title="Show text in html" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
484 src="<%=sessionBean.getApplicationBean().getShowImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
485 </a> <!-- download csv file --> <a |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
486 href="<%=sessionBean.getApplicationBean().getRootServer()%>/rest/text/downloadFullTextSearchCsvFile?file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
487 target="_blank"> <img title="Download CSV" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
488 src="<%=sessionBean.getApplicationBean() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
489 .getDownloadImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
490 </a> <!-- view on LGMap --> <a |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
491 href="<%=sessionBean.getApplicationBean().getLGMapUrl()%>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
492 target="_blank"> <img title="View on LGMap" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
493 src="<%=sessionBean.getApplicationBean().getViewOnMap()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
494 </a> <input type="image" title="Delete it" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
495 onclick="<%=sessionBean.getApplicationBean() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
496 .getJSConfirmationDelete()%> setAction0('deleteFile', 'fullTextSearchForm', 'fileId','<%=aFile.getId()%>'); document.getElementById('fullTextSearchForm').submit();" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
497 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
498 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
499 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
500 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
501 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
502 } |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
503 %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
504 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
505 </table> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
506 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
507 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
508 </div> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
509 <label class="subTitel">Full Text Search</label> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
510 <form name="fullTextSearchForm" id="fullTextSearchForm" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
511 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
512 method="post" class="contentForm"> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
513 <input name="bean" type="hidden" value="fullTextSearchBean" /> <input |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
514 id="focusedId" type="hidden" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
515 value="<%=sessionBean.getFullTextSearchPage().getFocusedContentId()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
516 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
517 <input id="mouseX" name="mouseX" type="hidden" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
518 value="<%=sessionBean.getFullTextSearchPage().getMouseX()%>" /> <input |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
519 id="mouseY" name="mouseY" type="hidden" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
520 value="<%=sessionBean.getFullTextSearchPage().getMouseY()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
521 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
522 <table style="width: 300px; margin-left: auto; margin-right: auto;"> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
523 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
524 <td><input id="searchTerm" name="searchTerm" type="text" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
525 placeholder='if multiple terms, use "," to separate them.' |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
526 class="searchInput" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
527 value="<%=sessionBean.getFullTextSearchPage().getSearchTerm()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
528 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
529 <td><input id="search" type="image" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
530 onclick="setAction('search', 'fullTextSearchForm');" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
531 src="<%=sessionBean.getApplicationBean().getSearchImage()%>" /></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
532 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
533 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
534 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
535 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
536 <!-- batching querying --> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
537 <!-- for batching, query keyword sets separated by ";" and within each keyword set, keywords separated by "," --> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
538 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
539 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
540 if (StringUtils.equals(sessionBean.getUserName(), "admin")) { // || StringUtils.equals(sessionBean.getUserName(), "silk")) { |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
541 %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
542 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
543 <td><input id="batchSearchTerm" name="batchSearchTerm" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
544 type="text" placeholder="(TODO plz Don't use this to search)" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
545 class="searchInput" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
546 value="<%=sessionBean.getFullTextSearchPage() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
547 .getBatchSearchTerm()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
548 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
549 <td><input id="search" type="image" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
550 onclick="setAction('searchBatch', 'fullTextSearchForm');" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
551 src="<%=sessionBean.getApplicationBean().getSearchImage()%>" /></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
552 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
553 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
554 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
555 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
556 } |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
557 %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
558 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
559 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
560 <td><label class="label"><%=(StringUtils.isNotEmpty(sessionBean |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
561 .getFullTextSearchPage().getSearchMessage())) ? sessionBean |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
562 .getFullTextSearchPage().getSearchMessage() : ""%></label></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
563 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
564 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
565 <td><label class="label"><%=(StringUtils.isNotEmpty(sessionBean |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
566 .getFullTextSearchPage().getFilteringMessage())) ? sessionBean |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
567 .getFullTextSearchPage().getFilteringMessage() : ""%></label></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
568 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
569 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
570 <td><label class="label"><%=(StringUtils.isNotEmpty(sessionBean |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
571 .getFullTextSearchPage().getSelectedContentMessage())) ? sessionBean |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
572 .getFullTextSearchPage().getSelectedContentMessage() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
573 : ""%></label></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
574 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
575 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
576 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
577 <td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
578 <button id="saveResult" type="button" class="lgButton">Save |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
579 Table</button> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
580 <button id="viewSavedResult" type="button" class="lgButton">View/Load |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
581 Saved Table(s)</button> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
582 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
583 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
584 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
585 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
586 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
587 <td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
588 <!-- for view on LGMap, prompt to save if it's not saved. After saving, it could be shown on LGMap --> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
589 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
590 if (sessionBean.getFullTextSearchPage().getFile() != null) { |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
591 LGFullTextSearchFile theFile = sessionBean |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
592 .getFullTextSearchPage().getFile(); |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
593 %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
594 <a |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
595 href="<%=sessionBean.getApplicationBean().getLGMapUrl()%>&file=<%=theFile.getUserId().toString()%>_<%=theFile.getFileName()%>.csv&name=<%=theFile.getSearchTerms()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
596 target="_blank">View on LGMap </a> <!-- download csv file --> <a |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
597 href="<%=sessionBean.getApplicationBean().getRootServer()%>/rest/text/downloadFullTextSearchCsvFile?file=<%=theFile.getUserId().toString()%>_<%=theFile.getFileName()%>.csv" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
598 target="_blank"> <img title="Download CSV" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
599 src="<%=sessionBean.getApplicationBean() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
600 .getDownloadImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
601 </a> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
602 <% } else if (sessionBean.getFullTextSearchPage().getCompleteList() != null) { %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
603 <!-- prompt to save --> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
604 <!-- A click icon for Save Table, showing the text as bellow --> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
605 <button id="prompToSaveResult" type="button" class="lgButton">View on LGMap?</button> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
606 <% } %> |
55
95bf4ac726e6
Topic synchronization with extraction-interface. new tables in LGService database
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
54
diff
changeset
|
607 |
95bf4ac726e6
Topic synchronization with extraction-interface. new tables in LGService database
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
54
diff
changeset
|
608 </td> |
39 | 609 </tr> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
610 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
611 </table> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
612 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
613 |
39 | 614 <% |
615 if (sessionBean.getFullTextSearchPage().getCompleteList() != null) { | |
616 %> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
617 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
618 |
39 | 619 <jsp:include page="../componentes/paginator.jsp"> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
620 <jsp:param name="formName" value="fullTextSearchForm" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
621 </jsp:include> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
622 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
623 |
39 | 624 <div class="tableDiv double-scroll"> |
625 <table class="pageTable"> | |
626 <tbody> | |
627 <tr> | |
628 <th> | |
629 <table class="sortTable"> | |
630 <tr> | |
631 <td><label class="tableTitle">#</label></td> | |
632 <td> | |
633 <table> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
634 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
635 <td><input type="image" |
39 | 636 onclick="setAction('sortByInxUp', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
637 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
638 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
639 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
640 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
641 <td><input type="image" |
39 | 642 onclick="setAction('sortByInxDown', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
643 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
644 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
645 </tr> |
39 | 646 </table> |
647 </td> | |
648 </tr> | |
649 </table> | |
650 </th> | |
651 <th> | |
652 <table class="sortTable"> | |
653 <tr> | |
654 <td><label class="tableTitle">Book Id</label></td> | |
655 <td> | |
656 <table> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
657 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
658 <td><input type="image" |
39 | 659 onclick="setAction('sortByBookIdUp', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
660 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
661 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
662 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
663 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
664 <td><input type="image" |
39 | 665 onclick="setAction('sortByBookIdDown', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
666 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
667 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
668 </tr> |
39 | 669 </table> |
670 </td> | |
671 </tr> | |
672 <tr> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
673 <td><input type="text" class="filterInput" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
674 name="bookIdFilter" id="bookIdFilter" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
675 value="<%=sessionBean.getFullTextSearchPage() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
676 .getBookIdFilter()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
677 size="8" /></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
678 <td><input type="image" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
679 onclick="setAction('filter', 'fullTextSearchForm');" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
680 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
681 </td> |
39 | 682 </tr> |
683 </table> | |
684 </th> | |
685 <th> | |
686 <table class="sortTable"> | |
687 <tr> | |
688 <td><label class="tableTitle">Book Name</label></td> | |
689 <td> | |
690 <table> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
691 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
692 <td><input type="image" |
39 | 693 onclick="setAction('sortByBookNameUp', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
694 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
695 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
696 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
697 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
698 <td><input type="image" |
39 | 699 onclick="setAction('sortByBookNameDown', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
700 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
701 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
702 </tr> |
39 | 703 </table> |
704 </td> | |
705 </tr> | |
706 <tr> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
707 <td><input type="text" class="filterInput" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
708 name="bookNameFilter" id="bookNameFilter" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
709 value="<%=sessionBean.getFullTextSearchPage() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
710 .getBookNameFilter()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
711 size="8" /></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
712 <td><input type="image" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
713 onclick="setAction('filter', 'fullTextSearchForm');" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
714 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
715 </td> |
39 | 716 </tr> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
717 </table> |
39 | 718 </th> |
719 <th> | |
720 <table class="sortTable"> | |
721 <tr> | |
722 <td><label class="tableTitle">Level 1</label></td> | |
723 <td> | |
724 <table> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
725 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
726 <td><input type="image" |
39 | 727 onclick="setAction('sortByLevel1Up', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
728 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
729 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
730 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
731 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
732 <td><input type="image" |
39 | 733 onclick="setAction('sortByLevel1Down', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
734 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
735 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
736 </tr> |
39 | 737 </table> |
738 </td> | |
739 </tr> | |
740 <tr> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
741 <td><input type="text" class="filterInput" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
742 name="level1Filter" id="level1Filter" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
743 value="<%=sessionBean.getFullTextSearchPage() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
744 .getLevel1Filter()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
745 size="8" /></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
746 <td><input type="image" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
747 onclick="setAction('filter', 'fullTextSearchForm');" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
748 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
749 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
750 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
751 </table> |
39 | 752 </th> |
753 <th> | |
754 <table class="sortTable"> | |
755 <tr> | |
756 <td><label class="tableTitle">Level 2</label></td> | |
757 <td> | |
758 <table> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
759 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
760 <td><input type="image" |
39 | 761 onclick="setAction('sortByLevel2Up', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
762 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
763 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
764 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
765 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
766 <td><input type="image" |
39 | 767 onclick="setAction('sortByLevel2Down', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
768 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
769 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
770 </tr> |
39 | 771 </table> |
772 </td> | |
773 </tr> | |
774 <tr> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
775 <td><input type="text" class="filterInput" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
776 name="level2Filter" id="level2Filter" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
777 value="<%=sessionBean.getFullTextSearchPage() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
778 .getLevel2Filter()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
779 size="8" /></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
780 <td><input type="image" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
781 onclick="setAction('filter', 'fullTextSearchForm');" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
782 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
783 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
784 </tr> |
39 | 785 </table> |
786 </th> | |
787 <th> | |
788 <table class="sortTable"> | |
789 <tr> | |
790 <td><label class="tableTitle">Dynasty</label></td> | |
791 <td> | |
792 <table> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
793 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
794 <td><input type="image" |
39 | 795 onclick="setAction('sortByDynastyUp', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
796 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
797 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
798 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
799 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
800 <td><input type="image" |
39 | 801 onclick="setAction('sortByDynastyDown', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
802 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
803 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
804 </tr> |
39 | 805 </table> |
806 </td> | |
807 </tr> | |
808 <tr> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
809 <td><input type="text" class="filterInput" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
810 name="dynastyFilter" id="dynastyFilter" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
811 value="<%=sessionBean.getFullTextSearchPage() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
812 .getDynastyFilter()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
813 size="8" /></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
814 <td><input type="image" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
815 onclick="setAction('filter', 'fullTextSearchForm');" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
816 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
817 </td> |
39 | 818 </tr> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
819 </table> |
39 | 820 </th> |
821 <th> | |
822 <table class="sortTable"> | |
823 <tr> | |
824 <td><label class="tableTitle">Period</label></td> | |
825 <td> | |
826 <table> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
827 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
828 <td><input type="image" |
39 | 829 onclick="setAction('sortByPeriodUp', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
830 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
831 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
832 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
833 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
834 <td><input type="image" |
39 | 835 onclick="setAction('sortByPeriodDown', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
836 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
837 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
838 </tr> |
39 | 839 </table> |
840 </td> | |
841 </tr> | |
842 <tr> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
843 <td><input type="text" class="filterInput" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
844 name="periodFilter" id="periodFilter" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
845 value="<%=sessionBean.getFullTextSearchPage() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
846 .getPeriodFilter()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
847 size="8" /></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
848 <td><input type="image" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
849 onclick="setAction('filter', 'fullTextSearchForm');" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
850 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
851 </td> |
39 | 852 </tr> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
853 </table> |
39 | 854 </th> |
855 <th> | |
856 <table class="sortTable"> | |
857 <tr> | |
858 <td><label class="tableTitle">Admin Type</label></td> | |
859 <td> | |
860 <table> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
861 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
862 <td><input type="image" |
39 | 863 onclick="setAction('sortByAdminTypeUp', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
864 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
865 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
866 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
867 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
868 <td><input type="image" |
39 | 869 onclick="setAction('sortByAdminTypeDown', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
870 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
871 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
872 </tr> |
39 | 873 </table> |
874 </td> | |
875 </tr> | |
876 <tr> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
877 <td><input type="text" class="filterInput" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
878 name="adminTypeFilter" id="adminTypeFilter" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
879 value="<%=sessionBean.getFullTextSearchPage() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
880 .getAdminTypeFilter()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
881 size="8" /></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
882 <td><input type="image" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
883 onclick="setAction('filter', 'fullTextSearchForm');" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
884 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
885 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
886 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
887 </table> |
39 | 888 </th> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
889 |
39 | 890 <th> |
891 <table class="sortTable"> | |
892 <tr> | |
893 <td><label class="tableTitle">Section Name</label></td> | |
894 <td> | |
895 <table> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
896 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
897 <td><input type="image" |
39 | 898 onclick="setAction('sortBySectionNameUp', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
899 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
900 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
901 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
902 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
903 <td><input type="image" |
39 | 904 onclick="setAction('sortBySectionNameDown', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
905 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
906 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
907 </tr> |
39 | 908 </table> |
909 </td> | |
910 </tr> | |
911 <tr> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
912 <td><input type="text" class="filterInput" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
913 name="sectionNameFilter" id="sectionNameFilter" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
914 value="<%=sessionBean.getFullTextSearchPage() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
915 .getSectionNameFilter()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
916 size="8" /></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
917 <td><input type="image" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
918 onclick="setAction('filter', 'fullTextSearchForm');" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
919 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
920 </td> |
39 | 921 </tr> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
922 </table> |
39 | 923 </th> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
924 |
58
b8ad346e39a0
new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
57
diff
changeset
|
925 <!-- |
39 | 926 <th> |
927 <table class="sortTable"> | |
928 <tr> | |
929 <td><label class="tableTitle">Section Pages</label></td> | |
930 <td> | |
931 <table> | |
932 <tr><td> | |
933 <input type="image" | |
934 onclick="setAction('sortBySectionNameUp', 'fullTextSearchForm');" | |
935 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
936 </td></tr> | |
937 <tr><td> | |
938 <input type="image" | |
939 onclick="setAction('sortBySectionNameDown', 'fullTextSearchForm');" | |
940 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
941 </td></tr> | |
942 </table> | |
943 </td> | |
944 </tr> | |
945 </table> | |
946 </th> | |
58
b8ad346e39a0
new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
57
diff
changeset
|
947 --> |
b8ad346e39a0
new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
57
diff
changeset
|
948 <th><label class="tableTitle">Load Text</label></th> |
39 | 949 <th> |
950 <table class="sortTable"> | |
951 <tr> | |
952 <td><label class="tableTitle">Page</label></td> | |
953 <td> | |
954 <table> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
955 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
956 <td><input type="image" |
39 | 957 onclick="setAction('sortByStartPageUp', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
958 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
959 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
960 </tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
961 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
962 <td><input type="image" |
39 | 963 onclick="setAction('sortByStartPageDown', 'fullTextSearchForm');" |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
964 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
965 </td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
966 </tr> |
39 | 967 </table> |
968 </td> | |
969 </tr> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
970 </table> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
971 |
39 | 972 </th> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
973 <th style="min-width: 300px"> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
974 |
49
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
975 <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
|
976 <tr> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
977 <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
|
978 <td></td> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
979 </tr> |
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
980 <tr> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
981 <td><input type="text" class="filterInput" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
982 name="contentFilter" id="contentFilter" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
983 value="<%=sessionBean.getFullTextSearchPage() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
984 .getContentFilter()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
985 size="8" /></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
986 <td><input type="image" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
987 onclick="setAction('filter', 'fullTextSearchForm');" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
988 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
989 </td> |
49
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
990 </tr> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
991 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
992 </table> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
993 |
49
7c2e1b14b77d
new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
48
diff
changeset
|
994 </th> |
57
5cbe567a9c52
new: a link to view section text in ext-interface on full text searching page. bug fixed: a default topicId passed when doing search and full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
55
diff
changeset
|
995 <th><label class="tableTitle">Select rows</label></th> |
39 | 996 </tr> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
997 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
998 |
39 | 999 <% |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1000 for (DBContents content : sessionBean |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1001 .getFullTextSearchPage().getDisplayList()) { |
39 | 1002 %> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1003 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1004 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1005 if (content.isRemoved()) { |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1006 %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1007 <tr class="removedContent"> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1008 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1009 } else { |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1010 %> |
39 | 1011 |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1012 <tr> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1013 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1014 } |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1015 %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1016 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1017 <td><%=content.getInx()%></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1018 <td><%=content.getBookId()%></td> |
39 | 1019 <td><%=content.getSection().getBook().getName()%></td> |
1020 <td><%=content.getSection().getBook().getLevel1()%></td> | |
1021 <td><%=content.getSection().getBook().getLevel2()%></td> | |
1022 <td><%=content.getSection().getBook().getDynasty()%></td> | |
1023 <td><%=content.getSection().getBook().getPeriod()%></td> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1024 <td><%=content.getSection().getBook() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1025 .getAdmin_type()%></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1026 <td><%=content.getSection().getName()%></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1027 |
57
5cbe567a9c52
new: a link to view section text in ext-interface on full text searching page. bug fixed: a default topicId passed when doing search and full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
55
diff
changeset
|
1028 <!-- View text in Ext-Interface --> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1029 <td><a href="#" title="Show Section in Extraction Interface" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1030 onclick="sectionInExtractionInterface('<%=content.getSection().getId()%>', '<%=content.getSection().getName()%>', '<%=content.getSection().getBook().getId()%>', '<%=content.getSection().getBook().getName()%>', '<%=sessionBean.getTopicListPage() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1031 .getCompleteTopicList().get(0).getId()%>', '<%=sessionBean.getUser().getId()%>', '<%=sessionBean.getApplicationBean() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1032 .getExtractionInterfaceUrl()%>');"> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1033 <img title="Show Section in Extraction Interface" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1034 src="<%=sessionBean.getApplicationBean() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1035 .getShowImage()%>"> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1036 </a></td> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1037 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1038 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1039 <td><%=content.getPage()%></td> |
39 | 1040 <td class="content"><%=content.getContent()%></td> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1041 <td id="content_<%=content.getId()%>"> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1042 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1043 if (content.isRemoved()) { |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1044 %> <input type="image" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1045 onclick="setMousePos(); setAction0('recoverFocusedContent', 'fullTextSearchForm', 'focusedContentId', '<%=content.getId()%>');" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1046 src="<%=sessionBean.getApplicationBean() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1047 .getCheckboxUncheckedImage()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1048 width="20" height="20" /> <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1049 } else { |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1050 %> <input type="image" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1051 onclick="setMousePos(); setAction0('removeFocusedContent', 'fullTextSearchForm', 'focusedContentId', '<%=content.getId()%>');" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1052 src="<%=sessionBean.getApplicationBean() |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1053 .getCheckboxCheckedImage()%>" |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1054 width="20" height="20" /> <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1055 } |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1056 %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1057 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1058 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1059 |
39 | 1060 </td> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1061 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1062 |
39 | 1063 </tr> |
1064 <% | |
1065 } | |
1066 %> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1067 |
39 | 1068 </tbody> |
1069 </table> | |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1070 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1071 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1072 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1073 } |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1074 %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1075 |
39 | 1076 </div> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1077 |
39 | 1078 <jsp:include page="../componentes/paginator.jsp"> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1079 <jsp:param name="formName" value="fullTextSearchForm" /> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1080 </jsp:include> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1081 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1082 |
39 | 1083 </form> |
62
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1084 |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1085 <% |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1086 } |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1087 %> |
824b808a7481
improvements and bug fixed
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
59
diff
changeset
|
1088 |
39 | 1089 </div> |
1090 | |
1091 </body> | |
1092 </html> |