File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,17 +67,20 @@ const contextLine = (state = {}, action) => {
6767
6868/**
6969 * Returns the search modifier (how the searched papers are selected).
70- *
70+ *
7171 * @param {Object } config the config object
7272 * @param {Object } context the context object
73- *
73+ *
7474 * @returns {string } either most-recent, most-relevant or null
7575 */
7676export const getModifier = ( config , context ) => {
7777 if (
7878 ! context . params ||
7979 ! exists ( context . params . sorting ) ||
80- context . num_documents < config . max_documents
80+ ( context . num_documents < config . max_documents &&
81+ // temporarily allowing most relevant label for fewer documents
82+ // (after a backend change this should be removed and refactored)
83+ context . params . sorting !== "most-relevant" )
8184 ) {
8285 return null ;
8386 }
You can’t perform that action at this time.
0 commit comments