fix #1535 add notification for advance search page
This commit is contained in:
parent
c1b46af153
commit
7336f53679
3 changed files with 7 additions and 1 deletions
|
@ -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";
|
||||
|
|
|
@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue