diff src/main/webapp/pages/fullTextSearch.jsp @ 49:7c2e1b14b77d

new: load existing full text searching result into searching table
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Tue, 26 Jan 2016 11:46:10 +0100
parents 13555aff1f88
children 8f6c47775fe8
line wrap: on
line diff
--- a/src/main/webapp/pages/fullTextSearch.jsp	Thu Jan 21 11:56:30 2016 +0100
+++ b/src/main/webapp/pages/fullTextSearch.jsp	Tue Jan 26 11:46:10 2016 +0100
@@ -142,6 +142,7 @@
 					<tr>
 						<td class="tableTitle">Table name</td>
 						<td class="tableTitle">html</td>
+						<td></td>
 					</tr>
 					
 					<% for (LGFullTextSearchFile aFile : sessionBean.getFullTextSearchPage().getFileList() ){%>
@@ -149,12 +150,15 @@
 						<td><%= aFile.getFileName() %></td>
 						<!-- getFullTextSearchFileText?fileId= &userId= -->
 						<td>
+							<!-- TODO click searching result to open it in the same table of full-text-search result -->
 							<a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/getFullTextSearchHtmlFile?fileId=<%= aFile.getId() %>"
 										target="_blank">
 								<img alt="Show text in html" src="<%=sessionBean.getApplicationBean().getShowImage()%>"/>	
 							</a>
 						</td>
-						
+						<td>
+							<button type="button" class="lgButton" onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId() %>); document.getElementById('fullTextSearchForm').submit();">load</button>	
+						</td>
 					</tr>
 					<% } %>
 					
@@ -217,7 +221,7 @@
 				<tr><td><label class="label"><%= (StringUtils.isNotEmpty(sessionBean.getFullTextSearchPage().getFilteringMessage())) ? sessionBean.getFullTextSearchPage().getFilteringMessage() : ""%></label></td></tr>
 				<tr><td>
 					<button id="saveResult" type="button" class="lgButton">Save Table</button>								
-					<button id="viewSavedResult" type="button" class="lgButton">View Saved Table(s)</button>
+					<button id="viewSavedResult" type="button" class="lgButton">View/Load Saved Table(s)</button>
 				</td></tr>
 					
 				
@@ -552,7 +556,27 @@
 								</table>							
 							
 							</th>
-							<th style="min-width:300px"><label class="tableTitle">Content</label></th>
+							<th style="min-width:300px">
+								
+								<table class="sortTable">
+									<tr>
+										<td><label class="tableTitle">Content</label></td>
+										<td></td>
+									</tr>
+									<tr>
+										<td>
+											<input type="text" class="filterInput" name="contentFilter" id="contentFilter" value="<%= sessionBean.getFullTextSearchPage().getContentFilter()%>" size="8"/>
+										</td>									
+										<td>
+											<input type="image"
+												onclick="setAction('filter', 'fullTextSearchForm');"
+												src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/>
+										</td>							
+									</tr>
+									
+								</table>	
+								
+							</th>
 							<th><label class="tableTitle">Select rows</th>
 						</tr>