diff --git a/lib/Alchemy/Phrasea/Core/Configuration/DisplaySettingService.php b/lib/Alchemy/Phrasea/Core/Configuration/DisplaySettingService.php index 532c8cf247..3c1d0c79eb 100644 --- a/lib/Alchemy/Phrasea/Core/Configuration/DisplaySettingService.php +++ b/lib/Alchemy/Phrasea/Core/Configuration/DisplaySettingService.php @@ -18,6 +18,7 @@ class DisplaySettingService const ORDER_ALPHA_ASC = "ORDER_ALPHA_ASC"; const ORDER_ALPHA_DESC = "ORDER_ALPHA_DESC"; const ORDER_BY_ADMIN = "ORDER_BY_ADMIN"; + const ORDER_BY_BCT = "ORDER_BY_BCT"; /** * The default user settings. diff --git a/templates/web/prod/index.html.twig b/templates/web/prod/index.html.twig index b6e795ffb4..094e5ba404 100644 --- a/templates/web/prod/index.html.twig +++ b/templates/web/prod/index.html.twig @@ -143,7 +143,7 @@ $(document).ready(function(){ prodApp.appEvents.emit('workzone.doRemoveWarning', "{% if app['settings'].getUserSetting(app.getAuthenticatedUser(), "warning_on_delete_story") %}true{% else %}false{% endif %}"); - prodApp.appEvents.emit('search.setFilterFacet', "{% if app['settings'].getUserSetting(app.getAuthenticatedUser(), "facet") %}{{ app['settings'].getUserSetting(app.getAuthenticatedUser(), "facet") }}{% else %}false{% endif %}") + prodApp.appEvents.emit('search.updateFacetData'); }); @@ -713,6 +713,20 @@ +