|
@@ -1,240 +1,223 @@
|
|
|
-<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><tiles:insert template="/WEB-INF/view/common/admin/layout.jsp" flush="true">
|
|
|
- <tiles:put name="title"><bean:message key="labels.crawler_configuration" /></tiles:put>
|
|
|
- <tiles:put name="header" value="/WEB-INF/view/common/admin/header.jsp" />
|
|
|
- <tiles:put name="footer" value="/WEB-INF/view/common/admin/footer.jsp" />
|
|
|
- <tiles:put name="menu" value="/WEB-INF/view/common/admin/menu.jsp" />
|
|
|
- <tiles:put name="menuType" value="crawl" />
|
|
|
- <tiles:put name="headerScript" type="string"></tiles:put>
|
|
|
- <tiles:put name="body" type="string">
|
|
|
+<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><!DOCTYPE html>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+<meta charset="UTF-8">
|
|
|
+<title>Fess | <bean:message key="labels.crawler_configuration" /></title>
|
|
|
+<jsp:include page="/WEB-INF/view/common/admin2/head.jsp"></jsp:include>
|
|
|
+</head>
|
|
|
+<body class="skin-blue sidebar-mini">
|
|
|
+ <div class="wrapper">
|
|
|
+ <jsp:include page="/WEB-INF/view/common/admin2/header.jsp"></jsp:include>
|
|
|
+ <jsp:include page="/WEB-INF/view/common/admin2/sidebar.jsp">
|
|
|
+ <jsp:param name="menuCategoryType" value="crawl" />
|
|
|
+ <jsp:param name="menuType" value="crawl" />
|
|
|
+ </jsp:include>
|
|
|
|
|
|
- <%-- Message: BEGIN --%>
|
|
|
- <div>
|
|
|
- <html:messages id="msg" message="true">
|
|
|
- <div class="alert-message info"><bean:write name="msg" ignore="true" /></div>
|
|
|
- </html:messages>
|
|
|
- <html:errors />
|
|
|
- </div>
|
|
|
- <%-- Message: END --%>
|
|
|
+ <div class="content-wrapper">
|
|
|
|
|
|
- <s:form>
|
|
|
- <div>
|
|
|
- <h3><bean:message key="labels.crawler_title_edit"/></h3>
|
|
|
- <table class="bordered-table zebra-striped">
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <th style="width:200px;">
|
|
|
- <bean:message key="labels.search_log_enabled"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:checkbox property="searchLog"/><bean:message key="labels.enabled"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.user_info_enabled"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:checkbox property="userInfo"/><bean:message key="labels.enabled"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.user_favorite_enabled"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:checkbox property="userFavorite"/><bean:message key="labels.enabled"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.append_query_param_enabled"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:checkbox property="appendQueryParameter"/><bean:message key="labels.enabled"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.web_api_xml_enabled"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:checkbox property="webApiXml"/><bean:message key="labels.enabled"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.web_api_json_enabled"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:checkbox property="webApiJson"/><bean:message key="labels.enabled"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.default_label_value"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:textarea property="defaultLabelValue" styleClass="width:98%"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.supported_search_feature"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:select property="supportedSearch">
|
|
|
- <c:forEach var="item" items="${supportedSearchItems}">
|
|
|
- <html:option value="${f:u(item.value)}">${f:h(item.label)}</html:option>
|
|
|
- </c:forEach>
|
|
|
- </html:select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.hot_search_word_enabled"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:checkbox property="hotSearchWord"/><bean:message key="labels.enabled"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.purge_search_log_day"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:text property="purgeSearchLogDay" styleClass="small"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.purge_job_log_day"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:text property="purgeJobLogDay" styleClass="small"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.purge_user_info_day"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:text property="purgeUserInfoDay" styleClass="small"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.purge_by_bots"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:text property="purgeByBots" style="width:98%"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.notification_to"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:text property="notificationTo" style="width:98%"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.csv_file_encoding"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:text property="csvFileEncoding" styleClass="small"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.diff_crawling"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:checkbox property="diffCrawling"/><bean:message key="labels.enabled"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.use_acl_as_role"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:checkbox property="useAclAsRole"/><bean:message key="labels.enabled"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.server_rotation"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:checkbox property="serverRotation"/><bean:message key="labels.enabled"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.crawling_thread_count"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:text property="crawlingThreadCount" styleClass="small"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.day_for_cleanup"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:select property="dayForCleanup" styleClass="small">
|
|
|
- <html:option value="-1"><bean:message key="labels.none"/></html:option>
|
|
|
- <c:forEach var="d" items="${dayItems}">
|
|
|
- <html:option value="${f:h(d)}">${f:h(d)}</html:option>
|
|
|
- </c:forEach>
|
|
|
- </html:select>
|
|
|
- <bean:message key="labels.day"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.ignore_failure_type"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:text property="ignoreFailureType" style="width:98%"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.failure_count_threshold"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:text property="failureCountThreshold" styleClass="small"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th style="width:200px;">
|
|
|
- <bean:message key="labels.suggest_search_log_enabled"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:checkbox property="suggestSearchLog"/><bean:message key="labels.enabled"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <bean:message key="labels.purge_suggest_search_log_day"/>
|
|
|
- </th>
|
|
|
- <td>
|
|
|
- <html:text property="purgeSuggestSearchLogDay" styleClass="small"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- <tfoot>
|
|
|
- <tr>
|
|
|
- <td colspan="2">
|
|
|
- <input type="submit" class="btn small" name="update" value="<bean:message key="labels.crawl_button_update"/>"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tfoot>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </s:form>
|
|
|
+ <%-- Content Header --%>
|
|
|
+ <section class="content-header">
|
|
|
+ <h1>
|
|
|
+ <bean:message key="labels.crawler_title_edit" />
|
|
|
+ </h1>
|
|
|
+ </section>
|
|
|
+
|
|
|
+ <section class="content">
|
|
|
+
|
|
|
+ <%-- Form --%>
|
|
|
+ <s:form>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-md-12">
|
|
|
+ <div class="box">
|
|
|
+ <%-- Box Header --%>
|
|
|
+ <%-- Box Body --%>
|
|
|
+ <div class="box-body">
|
|
|
+ <%-- Message --%>
|
|
|
+ <div>
|
|
|
+ <html:messages id="msg" message="true">
|
|
|
+ <div class="alert-message info">
|
|
|
+ <bean:write name="msg" ignore="true" />
|
|
|
+ </div>
|
|
|
+ </html:messages>
|
|
|
+ <html:errors />
|
|
|
+ </div>
|
|
|
|
|
|
+ <%-- Form Fields --%>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="searchLog"><bean:message key="labels.search_log_enabled" /></label>
|
|
|
+ <div styleClass="form-inline" >
|
|
|
+ <html:checkbox property="searchLog" />
|
|
|
+ <bean:message key="labels.enabled"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="userInfo"><bean:message key="labels.user_info_enabled" /></label>
|
|
|
+ <div styleClass="form-inline" >
|
|
|
+ <html:checkbox property="userInfo" />
|
|
|
+ <bean:message key="labels.enabled"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="userFavorite"><bean:message key="labels.user_favorite_enabled" /></label>
|
|
|
+ <div styleClass="form-inline" >
|
|
|
+ <html:checkbox property="userFavorite" />
|
|
|
+ <bean:message key="labels.enabled"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="appendQueryParameter"><bean:message key="labels.append_query_param_enabled" /></label>
|
|
|
+ <div styleClass="form-inline" >
|
|
|
+ <html:checkbox property="appendQueryParameter" />
|
|
|
+ <bean:message key="labels.enabled"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="webApiXml"><bean:message key="labels.web_api_xml_enabled" /></label>
|
|
|
+ <div styleClass="form-inline" >
|
|
|
+ <html:checkbox property="webApiXml" />
|
|
|
+ <bean:message key="labels.enabled"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="webApiJson"><bean:message key="labels.web_api_json_enabled" /></label>
|
|
|
+ <div styleClass="form-inline" >
|
|
|
+ <html:checkbox property="webApiJson" />
|
|
|
+ <bean:message key="labels.enabled"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="defaultLabelValue"><bean:message key="labels.default_label_value" /></label>
|
|
|
+ <html:textarea property="defaultLabelValue" styleClass="form-control" />
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="supportedSearch"><bean:message key="labels.supported_search_feature" /></label>
|
|
|
+ <div class="form-inline">
|
|
|
+ <html:select property="supportedSearch" styleClass="form-control">
|
|
|
+ <c:forEach var="item" items="${supportedSearchItems}">
|
|
|
+ <html:option value="${f:u(item.value)}">${f:h(item.label)}</html:option>
|
|
|
+ </c:forEach>
|
|
|
+ </html:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="hotSearchWord"><bean:message key="labels.hot_search_word_enabled" /></label>
|
|
|
+ <div styleClass="form-inline" >
|
|
|
+ <html:checkbox property="hotSearchWord" />
|
|
|
+ <bean:message key="labels.enabled"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="purgeSearchLogDay"><bean:message key="labels.purge_search_log_day" /></label>
|
|
|
+ <div class="form-inline">
|
|
|
+ <html:text property="purgeSearchLogDay" styleClass="form-control" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="purgeJobLogDay"><bean:message key="labels.purge_job_log_day" /></label>
|
|
|
+ <div class="form-inline">
|
|
|
+ <html:text property="purgeJobLogDay" styleClass="form-control" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="purgeUserInfoDay"><bean:message key="labels.purge_user_info_day" /></label>
|
|
|
+ <div class="form-inline">
|
|
|
+ <html:text property="purgeUserInfoDay" styleClass="form-control" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="purgeByBots"><bean:message key="labels.purge_by_bots" /></label>
|
|
|
+ <html:text property="purgeByBots" styleClass="form-control" />
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="notificationTo"><bean:message key="labels.notification_to" /></label>
|
|
|
+ <html:text property="notificationTo" styleClass="form-control" />
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="csvFileEncoding"><bean:message key="labels.csv_file_encoding" /></label>
|
|
|
+ <div class="form-inline">
|
|
|
+ <html:text property="csvFileEncoding" styleClass="form-control" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="diffCrawling"><bean:message key="labels.diff_crawling" /></label>
|
|
|
+ <div styleClass="form-inline" >
|
|
|
+ <html:checkbox property="diffCrawling" />
|
|
|
+ <bean:message key="labels.enabled"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="useAclAsRole"><bean:message key="labels.use_acl_as_role" /></label>
|
|
|
+ <div styleClass="form-inline" >
|
|
|
+ <html:checkbox property="useAclAsRole" />
|
|
|
+ <bean:message key="labels.enabled"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="serverRotation"><bean:message key="labels.server_rotation" /></label>
|
|
|
+ <div styleClass="form-inline" >
|
|
|
+ <html:checkbox property="serverRotation" />
|
|
|
+ <bean:message key="labels.enabled"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="crawlingThreadCount"><bean:message key="labels.crawling_thread_count" /></label>
|
|
|
+ <div class="form-inline">
|
|
|
+ <html:text property="crawlingThreadCount" styleClass="form-control" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="dayForCleanup"><bean:message key="labels.day_for_cleanup" /></label>
|
|
|
+ <div class="form-inline">
|
|
|
+ <html:select property="dayForCleanup" styleClass="form-control">
|
|
|
+ <html:option value="-1"><bean:message key="labels.none"/></html:option>
|
|
|
+ <c:forEach var="d" items="${dayItems}">
|
|
|
+ <html:option value="${f:h(d)}">${f:h(d)}</html:option>
|
|
|
+ </c:forEach>
|
|
|
+ </html:select>
|
|
|
+ <bean:message key="labels.day"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="ignoreFailureType"><bean:message key="labels.ignore_failure_type" /></label>
|
|
|
+ <html:text property="ignoreFailureType" styleClass="form-control" />
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="failureCountThreshold"><bean:message key="labels.failure_count_threshold" /></label>
|
|
|
+ <div class="form-inline">
|
|
|
+ <html:text property="failureCountThreshold" styleClass="form-control" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="suggestSearchLog"><bean:message key="labels.suggest_search_log_enabled" /></label>
|
|
|
+ <div styleClass="form-inline" >
|
|
|
+ <html:checkbox property="suggestSearchLog" />
|
|
|
+ <bean:message key="labels.enabled"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="purgeSuggestSearchLogDay"><bean:message key="labels.purge_suggest_search_log_day" /></label>
|
|
|
+ <div class="form-inline">
|
|
|
+ <html:text property="purgeSuggestSearchLogDay" styleClass="form-control" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
- </tiles:put>
|
|
|
-</tiles:insert>
|
|
|
+ </div>
|
|
|
+ <%-- Box Footer --%>
|
|
|
+ <div class="box-footer">
|
|
|
+ <input type="submit" class="btn small btn-primary" name="update"
|
|
|
+ value="<bean:message key="labels.crawl_button_update"/>"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </s:form>
|
|
|
+
|
|
|
+ </section>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <jsp:include page="/WEB-INF/view/common/admin2/footer.jsp"></jsp:include>
|
|
|
+ </div>
|
|
|
+ <jsp:include page="/WEB-INF/view/common/admin2/foot.jsp"></jsp:include>
|
|
|
+</body>
|
|
|
+</html>
|