Selaa lähdekoodia

fix #1535 add notification for advance search page

Shinsuke Sugaya 7 vuotta sitten
vanhempi
commit
7336f53679

+ 2 - 0
src/main/java/org/codelibs/fess/Constants.java

@@ -385,6 +385,8 @@ public class Constants extends CoreLibConstants {
 
     public static final String NOTIFICATION_SEARCH_TOP = "notification.search.top";
 
+    public static final String NOTIFICATION_ADVANCE_SEARCH = "notification.advance.search";
+
     public static final String MAPPING_TYPE_ARRAY = "array";
 
     public static final String MAPPING_TYPE_STRING = "string";

+ 1 - 1
src/main/java/org/codelibs/fess/app/web/search/SearchAction.java

@@ -95,7 +95,7 @@ public class SearchAction extends FessSearchAction {
         }
         return asHtml(virtualHost(path_AdvanceJsp)).renderWith(data -> {
             buildInitParams();
-            RenderDataUtil.register(data, "notification", fessConfig.getNotificationLogin());
+            RenderDataUtil.register(data, "notification", fessConfig.getNotificationAdvanceSearch());
         });
     }
 

+ 4 - 0
src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

@@ -612,6 +612,10 @@ public interface FessProp {
         return getSystemProperty(Constants.NOTIFICATION_LOGIN, StringUtil.EMPTY);
     }
 
+    public default String getNotificationAdvanceSearch() {
+        return getSystemProperty(Constants.NOTIFICATION_ADVANCE_SEARCH, StringUtil.EMPTY);
+    }
+
     public default void setNotificationSearchTop(final String value) {
         setSystemProperty(Constants.NOTIFICATION_SEARCH_TOP, value);
     }