From e8221e9eb0606364fac4b454444e44d6a8ae0b76 Mon Sep 17 00:00:00 2001
From: Gregor Gawol <gawol@ub.uni-leipzig.de>
Date: Thu, 12 Dec 2019 16:16:19 +0100
Subject: [PATCH] refs #16660 [fid_adlr] fix search bug

removes multiple author_corp fields from searchspecs

* author_corp_ref
* author_corp
* author_corp2
* author_corp_orig
* author_corp2_orig

co-authored by: "Dorian Merz <merz@ub.uni-leipzig.de>"
---
 fid_adlr/alpha/config/vufind/searchspecs.yaml | 44 -------------------
 fid_adlr/config/vufind/searchspecs.yaml       | 44 -------------------
 2 files changed, 88 deletions(-)

diff --git a/fid_adlr/alpha/config/vufind/searchspecs.yaml b/fid_adlr/alpha/config/vufind/searchspecs.yaml
index 43e397e5816..060805c7b59 100644
--- a/fid_adlr/alpha/config/vufind/searchspecs.yaml
+++ b/fid_adlr/alpha/config/vufind/searchspecs.yaml
@@ -159,13 +159,8 @@ Author:
     - author2^300
     - author_id^100
     - author_ref^150
-    - author_corp^200
-    - author_corp2^200
-    - author_corp_ref^150
     - author_orig^200
     - author2_orig^200
-    - author_corp_orig^200
-    - author_corp2_orig^200
   QueryFields:
     - author:
       - [onephrase, 350]
@@ -179,18 +174,6 @@ Author:
       - [onephrase, 350]
       - [and, 200]
       - [or, 100]
-    - author_corp:
-      - [onephrase, 350]
-      - [and, 200]
-      - [or, 100]
-    - author_corp2:
-      - [onephrase, 350]
-      - [and, 200]
-      - [or, 100]
-    - author_corp_ref:
-      - [onephrase, 350]
-      - [and, 200]
-      - [or, 100]
     - author_orig:
       - [onephrase, 350]
       - [and, 200]
@@ -199,14 +182,6 @@ Author:
       - [onephrase, 350]
       - [and, 200]
       - [or, 100]
-    - author_corp_orig:
-      - [onephrase, 350]
-      - [and, 200]
-      - [or, 100]
-    - author_corp2_orig:
-      - [onephrase, 350]
-      - [and, 200]
-      - [or, 100]
     - author_id:
       - [onephrase, 450]
       - [and, 300]
@@ -443,15 +418,10 @@ AllFields:
     - series2^30
     - series_orig^50
     - author^500
-    - author_corp^300
     - author2^400
-    - author_corp2^100
     - author_ref^500
-    - author_corp_ref^500
     - author_orig^300
     - author2_orig^300
-    - author_corp_orig^300
-    - author_corp2_orig^100
     - topic_ref^10
     - contents^10
     - topic_unstemmed^15
@@ -503,27 +473,13 @@ AllFields:
       - [onephrase, 250]
       - [and, 250]
       - [or, 250]
-    author_corp_ref:
-      - [onephrase, 250]
-      - [and, 250]
-      - [or, 250]
     author_orig:
       - [onephrase, 500]
       - [and, 250]
     author2_orig:
       - [and, 50]
-    author_corp_orig:
-      - [onephrase, 500]
-      - [and, 400]
-    author_corp2_orig:
-      - [and, 50]
-    author_corp:
-      - [onephrase, 500]
-      - [and, 400]
     author2:
       - [and, 50]
-    author_corp2:
-      - [and, 50]
     contents:
       - [and, 10]
     topic_unstemmed:
diff --git a/fid_adlr/config/vufind/searchspecs.yaml b/fid_adlr/config/vufind/searchspecs.yaml
index 43e397e5816..060805c7b59 100644
--- a/fid_adlr/config/vufind/searchspecs.yaml
+++ b/fid_adlr/config/vufind/searchspecs.yaml
@@ -159,13 +159,8 @@ Author:
     - author2^300
     - author_id^100
     - author_ref^150
-    - author_corp^200
-    - author_corp2^200
-    - author_corp_ref^150
     - author_orig^200
     - author2_orig^200
-    - author_corp_orig^200
-    - author_corp2_orig^200
   QueryFields:
     - author:
       - [onephrase, 350]
@@ -179,18 +174,6 @@ Author:
       - [onephrase, 350]
       - [and, 200]
       - [or, 100]
-    - author_corp:
-      - [onephrase, 350]
-      - [and, 200]
-      - [or, 100]
-    - author_corp2:
-      - [onephrase, 350]
-      - [and, 200]
-      - [or, 100]
-    - author_corp_ref:
-      - [onephrase, 350]
-      - [and, 200]
-      - [or, 100]
     - author_orig:
       - [onephrase, 350]
       - [and, 200]
@@ -199,14 +182,6 @@ Author:
       - [onephrase, 350]
       - [and, 200]
       - [or, 100]
-    - author_corp_orig:
-      - [onephrase, 350]
-      - [and, 200]
-      - [or, 100]
-    - author_corp2_orig:
-      - [onephrase, 350]
-      - [and, 200]
-      - [or, 100]
     - author_id:
       - [onephrase, 450]
       - [and, 300]
@@ -443,15 +418,10 @@ AllFields:
     - series2^30
     - series_orig^50
     - author^500
-    - author_corp^300
     - author2^400
-    - author_corp2^100
     - author_ref^500
-    - author_corp_ref^500
     - author_orig^300
     - author2_orig^300
-    - author_corp_orig^300
-    - author_corp2_orig^100
     - topic_ref^10
     - contents^10
     - topic_unstemmed^15
@@ -503,27 +473,13 @@ AllFields:
       - [onephrase, 250]
       - [and, 250]
       - [or, 250]
-    author_corp_ref:
-      - [onephrase, 250]
-      - [and, 250]
-      - [or, 250]
     author_orig:
       - [onephrase, 500]
       - [and, 250]
     author2_orig:
       - [and, 50]
-    author_corp_orig:
-      - [onephrase, 500]
-      - [and, 400]
-    author_corp2_orig:
-      - [and, 50]
-    author_corp:
-      - [onephrase, 500]
-      - [and, 400]
     author2:
       - [and, 50]
-    author_corp2:
-      - [and, 50]
     contents:
       - [and, 10]
     topic_unstemmed:
-- 
GitLab