%@ page import="java.util.*" %>
<%@ page import="gui.common.query.UserQuery" %>
<%@ page import="gui.common.settings.UIConst" %>
<%@ page import="gui.common.management.UIManager" %>
<%-- ******************Radio buttons state initialisation************** --%>
<%String path = manager.getPath();
String redirection = request.getParameter("redirection");%>
<%-- **********Update query object -if form is submitted-*********** --%>
<%if (redirection != null){
HttpSession currSession = request.getSession();%>
<%-- ***************************----Redirections---************************* --%>
<%
if (redirection.compareTo("fuzzy_search")==0)
{
currSession.setAttribute("UserQuery", UserQuery);
manager.forward(path
+ manager.getLink("CORM_RESULT") + "?Action="
+ UIConst.CORM_FUZZY_SEARCH, response, request,getServletContext());
}
if (redirection.compareTo("ReloadQuery")==0)
{
String idx = request.getParameter("ID");
UserQuery = manager.getCurrentCORMBasicQuery(idx);
System.out.println(UserQuery.getSearchType());
if (idx != null)
currSession.setAttribute("UserQuery", UserQuery);
}
if (redirection.compareTo("RefineQuery")==0)
{
UserQuery = manager.getLastCORMQuery();
if (UserQuery != null)
currSession.setAttribute("UserQuery", UserQuery);
}
if (redirection.compareTo("Reset")==0)
{
UserQuery = new UserQuery();
currSession.setAttribute("UserQuery",UserQuery);
}
else manager.dispatch(redirection,response, request,getServletContext());
}
%>
<%manager.setSearchType(UIConst.METADATA_BASIC_SEARCH);%>
<%manager.setScreenID(UIConst.METADATA_BASIC_SEARCH);%>
<%manager.setAdditionalTitle("");%>
<%manager.setaAditionalSubTitle(UIConst.EMPTY_STRING);%>
<%-- **********Main frame table-*********** --%>