Bug 9940: (follow-up) add language-original to QP search field list
authorGalen Charlton <gmc@esilibrary.com>
Wed, 25 Dec 2013 15:49:48 +0000 (15:49 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 25 Dec 2013 15:49:48 +0000 (15:49 +0000)
This patch adds language-original to the list of search fields
recognized by QueryParser.

To test:

[1] After doing the tests in the main patch, copy the configuration
    file etc/searchengine/queryparser.yaml into place, turn on the
    UseQueryParser system preference, and verify that searching on
    language-original still works.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
etc/searchengine/queryparser.yaml

index 53cff85..832643a 100644 (file)
@@ -654,6 +654,15 @@ field_mappings:
         - language
         - ln
       label: Language
+    language:
+      bib1_mapping:
+        biblioserver:
+          1: 1095
+      enabled: 1
+      aliases:
+        - language-original
+      index: language-original
+      label: Language of original
     lc-card-number:
       bib1_mapping:
         biblioserver: