From c86c9df1f1a2cc34d0412a7189bd63e14d838c08 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 15 Nov 2013 11:10:04 +0100 Subject: [PATCH] Bug 11255: allow sorting by relevance asc The query parser config does not declare relevance asc as possible "modifier". Test plan: 0/ create some biblio with "history" in the title 1/ define prefs defaultSortField = relevance and defaultSortOrder = asc 2/ search "history" on the staff interface 3/ note that no result is returned. 4/ apply the patch 5/ verify the queryparser config file in use takes the modification into account (see the queryparser_config value in your $KOHA_CONF file). 6/ relaunch the search and verify results are returned Signed-off-by: Christopher Brannon --- etc/searchengine/queryparser.yaml | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/etc/searchengine/queryparser.yaml b/etc/searchengine/queryparser.yaml index 0cce85c..53cff85 100644 --- a/etc/searchengine/queryparser.yaml +++ b/etc/searchengine/queryparser.yaml @@ -1427,6 +1427,12 @@ modifier_mappings: 2: 102 enabled: 1 label: Relevance_dsc + relevance_asc: + bib1_mapping: + biblioserver: + 2: 102 + enabled: 1 + label: Relevance_asc title-sort-az: bib1_mapping: biblioserver: -- 1.7.2.5