Koha/admin
Nick Clemens ce161fda9b Bug 25273: Make match-heading rely on authority type configuration
The match-heading field is a special field used only by the linker, not accessible
to staff or patrons via the interface. This field is used to store the constructed
'search form' used for matching bib headings to authority fields.

In bug 24269 I attempted to use the mappings defined in the inferface and also inject the search term.
This did not work as too many subfields were indexed on their own and leading to false matches.
In this bug we remove the mappings for this field, and create it ourselves during
the indexing process. The C4::Headings module is still used to generate the correct form,
however, the mappings are set based on the authority types in the system. This gives the user
the ability to add new typoes, but prevents mapping changes from breaking linker functionality

To test:
 1 - Start form a sample database with ElasticSearch working
 2 - Download via Z39.50 2 authorities, one of which is a narrower heading of the other, e.g.:
    Waterworks
    Waterworks - Costs
 3 - Place a heading for the broader term in a record. e.g. Waterworks
       In 650$a, without the cataloguing authority plugin. We don't want
       the link created now.
       You need syspref BiblioAddsAuthorities => allow
 4 - Make sure linker is set to default
 5 - Attempt to link the records
       misc/link_bibs_to_authorities.pl
 6 - Linking fails
 7 - Apply patch
 8 - refresh index settings (if using a custom file, remove 'match-heading')
       You can reset mappings in the UI or run this:
       misc/search_tools/rebuild_elasticsearch.pl -v -d -r
 9 - Reindex ES
10 - Try to link again
11 - It succeeds!
12 - Run the tests
     prove t/db_dependent/Koha/SearchEngine/Elasticsearch.t

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Bug 25273: (follow-up)

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-08-31 16:10:25 +02:00
..
searchengine/elasticsearch Bug 25273: Make match-heading rely on authority type configuration 2020-08-31 16:10:25 +02:00
add_user_search.pl
additional-fields.pl
admin-home.pl Bug 20415: Remove UseKohaPlugins system preference 2020-03-26 11:42:02 +00:00
adveditorshortcuts.pl
aqbudgetperiods.pl
aqbudgets.pl
aqcontract.pl
aqplan.pl
audio_alerts.pl
auth_subfields_structure.pl
auth_tag_structure.pl
authorised_values.pl Bug 25651: Fix modification of authorised value 2020-06-12 09:57:31 +02:00
authtypes.pl
biblio_framework.pl
branch_transfer_limits.pl
branches.pl Bug 25288: (QA follow-up) Escape data and restore empty list behaviour 2020-06-24 15:15:41 +02:00
cash_registers.pl
categories.pl
check_budget_parent.pl
check_parent_total.pl
checkmarc.pl
cities.pl Bug 25279: Use another var name for the filter 2020-05-12 11:40:07 +01:00
classsources.pl
clone-rules.pl
columns_settings.pl Bug 24156: Fix set sort order to the first column 2020-06-25 10:51:59 +02:00
columns_settings.yml Bug 21750: Move collection code to its own column on checkins table 2020-08-24 12:10:53 +02:00
credit_types.pl Bug 19036: Add ability to enable credit number for only some credit types 2020-08-20 12:31:59 +02:00
currency.pl
debit_types.pl
desks.pl Bug 13881: (QA follow-up) Check for manage_libraries permission 2020-03-25 09:19:34 +00:00
didyoumean.pl Bug 20399: Remove "did you mean" for the staff interface 2020-03-26 11:55:37 +00:00
edi_accounts.pl Bug 20415: Remove UseKohaPlugins system preference 2020-03-26 11:42:02 +00:00
edi_ean_accounts.pl
import_export_framework.pl
item_circulation_alerts.pl
items_search_field.pl
items_search_fields.pl
itemtypes.pl Bug 21946: Update Administration->Item types to allow for defining parent types 2020-08-13 10:13:14 +02:00
koha2marclinks.pl
library_groups.pl
localization.pl
marc_subfields_structure.pl Bug 25826: Forbid changing the hidden attributes for biblionumber 2020-08-07 09:55:50 +02:00
marctagstructure.pl Bug 17232: Make sure all fields are copies when creating a new framework from another 2020-04-27 11:44:32 +01:00
matching-rules.pl
oai_set_mappings.pl
oai_sets.pl
overdrive.pl
patron-attr-types.pl Bug 22844: Add the new entry to the patron attr types form 2020-07-20 16:08:22 +02:00
preferences.pl Bug 26015: Terminology: Fix tons more staff clients to staff interfaces 2020-08-31 16:10:25 +02:00
share_content.pl
smart-rules.pl Bug 25663: Remove Koha::RefundLostItemFeeRule and uses 2020-08-13 07:55:44 +02:00
sms_providers.pl
sru_modmapping.pl
systempreferences.pl Bug 26015: Terminology: Fix tons more staff clients to staff interfaces 2020-08-31 16:10:25 +02:00
transport-cost-matrix.pl
usage_statistics.pl
z3950servers.pl