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