浏览代码

replace with popularWord

Shinsuke Sugaya 9 年之前
父节点
当前提交
a1a6ad6ee5

+ 3 - 3
src/main/java/org/codelibs/fess/api/json/JsonApiManager.java

@@ -327,11 +327,11 @@ public class JsonApiManager extends BaseApiManager {
         String errMsg = StringUtil.EMPTY;
         String errMsg = StringUtil.EMPTY;
         final StringBuilder buf = new StringBuilder(255);
         final StringBuilder buf = new StringBuilder(255);
         try {
         try {
-            final List<String> hotSearchWordList = popularWordHelper.getWordList(seed, tags, fields, excludes);
+            final List<String> popularWordList = popularWordHelper.getWordList(seed, tags, fields, excludes);
 
 
             buf.append("\"result\":[");
             buf.append("\"result\":[");
             boolean first1 = true;
             boolean first1 = true;
-            for (final String word : hotSearchWordList) {
+            for (final String word : popularWordList) {
                 if (!first1) {
                 if (!first1) {
                     buf.append(',');
                     buf.append(',');
                 } else {
                 } else {
@@ -348,7 +348,7 @@ public class JsonApiManager extends BaseApiManager {
             }
             }
             errMsg = e.getMessage();
             errMsg = e.getMessage();
             if (logger.isDebugEnabled()) {
             if (logger.isDebugEnabled()) {
-                logger.debug("Failed to process a hotSearchWord request.", e);
+                logger.debug("Failed to process a popularWord request.", e);
             }
             }
         }
         }
 
 

+ 2 - 2
src/main/java/org/codelibs/fess/app/web/admin/general/AdminGeneralAction.java

@@ -148,7 +148,7 @@ public class AdminGeneralAction extends FessAdminAction {
         updateProperty(Constants.IGNORE_FAILURE_TYPE_PROPERTY, form.ignoreFailureType);
         updateProperty(Constants.IGNORE_FAILURE_TYPE_PROPERTY, form.ignoreFailureType);
         updateProperty(Constants.FAILURE_COUNT_THRESHOLD_PROPERTY, form.failureCountThreshold.toString());
         updateProperty(Constants.FAILURE_COUNT_THRESHOLD_PROPERTY, form.failureCountThreshold.toString());
         updateProperty(Constants.WEB_API_POPULAR_WORD_PROPERTY,
         updateProperty(Constants.WEB_API_POPULAR_WORD_PROPERTY,
-                form.hotSearchWord != null && Constants.ON.equalsIgnoreCase(form.hotSearchWord) ? Constants.TRUE : Constants.FALSE);
+                form.popularWord != null && Constants.ON.equalsIgnoreCase(form.popularWord) ? Constants.TRUE : Constants.FALSE);
         updateProperty(Constants.CSV_FILE_ENCODING_PROPERTY, form.csvFileEncoding);
         updateProperty(Constants.CSV_FILE_ENCODING_PROPERTY, form.csvFileEncoding);
         updateProperty(Constants.PURGE_SEARCH_LOG_DAY_PROPERTY, form.purgeSearchLogDay.toString());
         updateProperty(Constants.PURGE_SEARCH_LOG_DAY_PROPERTY, form.purgeSearchLogDay.toString());
         updateProperty(Constants.PURGE_JOB_LOG_DAY_PROPERTY, form.purgeJobLogDay.toString());
         updateProperty(Constants.PURGE_JOB_LOG_DAY_PROPERTY, form.purgeJobLogDay.toString());
@@ -180,7 +180,7 @@ public class AdminGeneralAction extends FessAdminAction {
         form.ignoreFailureType =
         form.ignoreFailureType =
                 crawlerProperties.getProperty(Constants.IGNORE_FAILURE_TYPE_PROPERTY, Constants.DEFAULT_IGNORE_FAILURE_TYPE);
                 crawlerProperties.getProperty(Constants.IGNORE_FAILURE_TYPE_PROPERTY, Constants.DEFAULT_IGNORE_FAILURE_TYPE);
         form.failureCountThreshold = getPropertyAsInteger(Constants.FAILURE_COUNT_THRESHOLD_PROPERTY, Constants.DEFAULT_FAILURE_COUNT);
         form.failureCountThreshold = getPropertyAsInteger(Constants.FAILURE_COUNT_THRESHOLD_PROPERTY, Constants.DEFAULT_FAILURE_COUNT);
-        form.hotSearchWord = crawlerProperties.getProperty(Constants.WEB_API_POPULAR_WORD_PROPERTY, Constants.TRUE);
+        form.popularWord = crawlerProperties.getProperty(Constants.WEB_API_POPULAR_WORD_PROPERTY, Constants.TRUE);
         form.csvFileEncoding = crawlerProperties.getProperty(Constants.CSV_FILE_ENCODING_PROPERTY, Constants.UTF_8);
         form.csvFileEncoding = crawlerProperties.getProperty(Constants.CSV_FILE_ENCODING_PROPERTY, Constants.UTF_8);
         form.purgeSearchLogDay =
         form.purgeSearchLogDay =
                 Integer.parseInt(crawlerProperties.getProperty(Constants.PURGE_SEARCH_LOG_DAY_PROPERTY, Constants.DEFAULT_PURGE_DAY));
                 Integer.parseInt(crawlerProperties.getProperty(Constants.PURGE_SEARCH_LOG_DAY_PROPERTY, Constants.DEFAULT_PURGE_DAY));

+ 1 - 1
src/main/java/org/codelibs/fess/app/web/admin/general/EditForm.java

@@ -78,7 +78,7 @@ public class EditForm implements Serializable {
     public Integer failureCountThreshold;
     public Integer failureCountThreshold;
 
 
     @Size(max = 10)
     @Size(max = 10)
-    public String hotSearchWord;
+    public String popularWord;
 
 
     @Required
     @Required
     @Size(max = 20)
     @Size(max = 20)

+ 1 - 1
src/main/java/org/codelibs/fess/app/web/admin/general/MailForm.java

@@ -52,7 +52,7 @@ public class MailForm implements Serializable {
 
 
     public String failureCountThreshold;
     public String failureCountThreshold;
 
 
-    public String hotSearchWord;
+    public String popularWord;
 
 
     public String csvFileEncoding;
     public String csvFileEncoding;
 
 

+ 1 - 1
src/main/java/org/codelibs/fess/mylasta/action/FessLabels.java

@@ -213,7 +213,7 @@ public class FessLabels extends ActionMessages {
     public static final String LABELS_HANDLER_SCRIPT = "{labels.handlerScript}";
     public static final String LABELS_HANDLER_SCRIPT = "{labels.handlerScript}";
 
 
     /** The key of the message: Popular words */
     /** The key of the message: Popular words */
-    public static final String LABELS_HOT_SEARCH_WORD = "{labels.hotSearchWord}";
+    public static final String LABELS_POPULAR_WORD = "{labels.popularWord}";
 
 
     /** The key of the message: Ignored Failure Type */
     /** The key of the message: Ignored Failure Type */
     public static final String LABELS_IGNORE_FAILURE_TYPE = "{labels.ignoreFailureType}";
     public static final String LABELS_IGNORE_FAILURE_TYPE = "{labels.ignoreFailureType}";

+ 1 - 1
src/main/resources/fess_label.properties

@@ -60,7 +60,7 @@ labels.fileName=File name
 labels.handlerName=Handler Name
 labels.handlerName=Handler Name
 labels.handlerParameter=Parameters
 labels.handlerParameter=Parameters
 labels.handlerScript=Scripts
 labels.handlerScript=Scripts
-labels.hotSearchWord=Popular words
+labels.popularWord=Popular words
 labels.ignoreFailureType=Ignored Failure Type
 labels.ignoreFailureType=Ignored Failure Type
 labels.lastAccessTime=Last Accessed
 labels.lastAccessTime=Last Accessed
 labels.notificationTo=Notification To
 labels.notificationTo=Notification To

+ 1 - 1
src/main/resources/fess_label_en.properties

@@ -60,7 +60,7 @@ labels.fileName=File name
 labels.handlerName=Handler Name
 labels.handlerName=Handler Name
 labels.handlerParameter=Parameters
 labels.handlerParameter=Parameters
 labels.handlerScript=Scripts
 labels.handlerScript=Scripts
-labels.hotSearchWord=Popular words
+labels.popularWord=Popular words
 labels.ignoreFailureType=Ignored Failure Type
 labels.ignoreFailureType=Ignored Failure Type
 labels.lastAccessTime=Last Accessed
 labels.lastAccessTime=Last Accessed
 labels.notificationTo=Notification To
 labels.notificationTo=Notification To

+ 1 - 1
src/main/resources/fess_label_ja.properties

@@ -60,7 +60,7 @@ labels.fileName = \u30d5\u30a1\u30a4\u30eb\u540d
 labels.handlerName = \u30cf\u30f3\u30c9\u30e9\u540d
 labels.handlerName = \u30cf\u30f3\u30c9\u30e9\u540d
 labels.handlerParameter = \u30d1\u30e9\u30e1\u30fc\u30bf
 labels.handlerParameter = \u30d1\u30e9\u30e1\u30fc\u30bf
 labels.handlerScript = \u30b9\u30af\u30ea\u30d7\u30c8
 labels.handlerScript = \u30b9\u30af\u30ea\u30d7\u30c8
-labels.hotSearchWord = \u4eba\u6c17\u30ef\u30fc\u30c9
+labels.popularWord = \u4eba\u6c17\u30ef\u30fc\u30c9
 labels.ignoreFailureType = \u7121\u8996\u3055\u308c\u305f\u969c\u5bb3\u7a2e\u985e
 labels.ignoreFailureType = \u7121\u8996\u3055\u308c\u305f\u969c\u5bb3\u7a2e\u985e
 labels.lastAccessTime = \u6700\u7d42\u30a2\u30af\u30bb\u30b9\u65e5\u6642
 labels.lastAccessTime = \u6700\u7d42\u30a2\u30af\u30bb\u30b9\u65e5\u6642
 labels.notificationTo = \u901a\u77e5\u5148
 labels.notificationTo = \u901a\u77e5\u5148

+ 1 - 1
src/main/webapp/WEB-INF/orig/view/index.jsp

@@ -72,7 +72,7 @@
 						</div>
 						</div>
 						<c:if test="${!empty popularWords}">
 						<c:if test="${!empty popularWords}">
 							<div>
 							<div>
-								<p class="hotSearchWordBody ellipsis">
+								<p class="popularWordBody ellipsis">
 									<la:message key="labels.search_popular_word_word" />
 									<la:message key="labels.search_popular_word_word" />
 									<c:forEach var="item" items="${popularWords}">
 									<c:forEach var="item" items="${popularWords}">
 										<la:link
 										<la:link

+ 1 - 1
src/main/webapp/WEB-INF/orig/view/search.jsp

@@ -88,7 +88,7 @@
 		<c:if test="${!empty popularWords}">
 		<c:if test="${!empty popularWords}">
 			<div class="row">
 			<div class="row">
 				<div class="col-md-12">
 				<div class="col-md-12">
-					<p class="hotSearchWordBody ellipsis">
+					<p class="popularWordBody ellipsis">
 						<la:message key="labels.search_popular_word_word" />
 						<la:message key="labels.search_popular_word_word" />
 						<c:forEach var="item" items="${popularWords}">
 						<c:forEach var="item" items="${popularWords}">
 							<la:link
 							<la:link

+ 3 - 3
src/main/webapp/WEB-INF/view/admin/general/admin_general.jsp

@@ -68,12 +68,12 @@
 										</div>
 										</div>
 									</div>
 									</div>
 									<div class="form-group">
 									<div class="form-group">
-										<label for="hotSearchWord" class="col-sm-3 control-label"><la:message
+										<label for="popularWord" class="col-sm-3 control-label"><la:message
 												key="labels.popular_word_word_enabled" /></label>
 												key="labels.popular_word_word_enabled" /></label>
 										<div class="col-sm-9">
 										<div class="col-sm-9">
-											<la:errors property="hotSearchWord" />
+											<la:errors property="popularWord" />
 											<div class="checkbox">
 											<div class="checkbox">
-												<label> <la:checkbox property="hotSearchWord" /> <la:message
+												<label> <la:checkbox property="popularWord" /> <la:message
 														key="labels.enabled" />
 														key="labels.enabled" />
 												</label>
 												</label>
 											</div>
 											</div>

+ 1 - 1
src/main/webapp/WEB-INF/view/index.jsp

@@ -72,7 +72,7 @@
 						</div>
 						</div>
 						<c:if test="${!empty popularWords}">
 						<c:if test="${!empty popularWords}">
 							<div>
 							<div>
-								<p class="hotSearchWordBody ellipsis">
+								<p class="popularWordBody ellipsis">
 									<la:message key="labels.search_popular_word_word" />
 									<la:message key="labels.search_popular_word_word" />
 									<c:forEach var="item" items="${popularWords}">
 									<c:forEach var="item" items="${popularWords}">
 										<la:link
 										<la:link

+ 1 - 1
src/main/webapp/WEB-INF/view/search.jsp

@@ -88,7 +88,7 @@
 		<c:if test="${!empty popularWords}">
 		<c:if test="${!empty popularWords}">
 			<div class="row">
 			<div class="row">
 				<div class="col-md-12">
 				<div class="col-md-12">
-					<p class="hotSearchWordBody ellipsis">
+					<p class="popularWordBody ellipsis">
 						<la:message key="labels.search_popular_word_word" />
 						<la:message key="labels.search_popular_word_word" />
 						<c:forEach var="item" items="${popularWords}">
 						<c:forEach var="item" items="${popularWords}">
 							<la:link
 							<la:link

+ 2 - 2
src/main/webapp/css/style.css

@@ -259,7 +259,7 @@ body.search #searchOptions.active, body.help #searchOptions.active {
 	#result ol {
 	#result ol {
 		margin-left: 0;
 		margin-left: 0;
 	}
 	}
-	.hotSearchWordBody {
+	.popularWordBody {
 		width: 440px;
 		width: 440px;
 	}
 	}
 	#result .site {
 	#result .site {
@@ -291,7 +291,7 @@ body.search #searchOptions.active, body.help #searchOptions.active {
 	.searchFormBox {
 	.searchFormBox {
 		margin-top: 80px;
 		margin-top: 80px;
 	}
 	}
-	.hotSearchWordBody {
+	.popularWordBody {
 		width: 280px;
 		width: 280px;
 	}
 	}
 	#result .site {
 	#result .site {