浏览代码

#581 add labels.facet_is_not_found

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

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

@@ -2355,6 +2355,9 @@ public class FessLabels extends ActionMessages {
     /** The key of the message: Version From */
     public static final String LABELS_target_version = "{labels.target_version}";
 
+    /** The key of the message: No match */
+    public static final String LABELS_facet_is_not_found = "{labels.facet_is_not_found}";
+
     /**
      * Assert the property is not null.
      * @param property The value of the property. (NotNull)

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

@@ -775,3 +775,4 @@ labels.upgrade_data_migration=Data Migration
 labels.upgrade_start_button=Start
 labels.targetVersion=Version
 labels.target_version=Version From
+labels.facet_is_not_found=No match

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

@@ -775,3 +775,4 @@ labels.upgrade_data_migration=Data Migration
 labels.upgrade_start_button=Start
 labels.targetVersion=Version
 labels.target_version=Version From
+labels.facet_is_not_found=No match.

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

@@ -775,3 +775,4 @@ labels.upgrade_data_migration=\u30c7\u30fc\u30bf\u79fb\u884c
 labels.upgrade_start_button=\u958b\u59cb
 labels.targetVersion=\u5bfe\u8c61\u30d0\u30fc\u30b8\u30e7\u30f3
 labels.target_version=\u5bfe\u8c61\u30d0\u30fc\u30b8\u30e7\u30f3
+labels.facet_is_not_found=\u8a72\u5f53\u306a\u3057

+ 5 - 0
src/main/webapp/WEB-INF/view/searchResults.jsp

@@ -131,6 +131,7 @@
 				<ul class="list-group m-b">
 					<li class="list-group-item text-uppercase"><la:message
 							key="${facetQueryView.title}" /></li>
+					<c:set var="facetFound" value="F"/>
 					<c:forEach var="queryEntry" items="${facetQueryView.queryMap}">
 						<c:if test="${facetResponse.queryCountMap[queryEntry.value] != 0}">
 							<li class="list-group-item p-l-md"><la:link
@@ -138,8 +139,12 @@
 									<la:message key="${queryEntry.key}" />
 									<span class="label label-default label-pill pull-right">${f:h(facetResponse.queryCountMap[queryEntry.value])}</span>
 								</la:link></li>
+							<c:set var="facetFound" value="T"/>
 						</c:if>
 					</c:forEach>
+					<c:if test="${facetFound == 'F'}">
+						<li class="list-group-item p-l-md"><la:message key="labels.facet_is_not_found" /></li>
+					</c:if>
 				</ul>
 			</c:forEach>
 			<c:if test="${!empty ex_q}">