annotate src/main/webapp/pages/fullTextSearch.jsp @ 67:0a9937b06cc3

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