Bugzilla – Attachment 155152 Details for
Bug 34693
Add 035$a as Other-control-number index in authorities search indexes (MARC21, Elasticsearch)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34693: Add 035$a as Other-control-number index in default authorities search indexes
Bug-34693-Add-035a-as-Other-control-number-index-i.patch (text/plain), 2.96 KB, created by
Caroline Cyr La Rose
on 2023-09-01 19:28:58 UTC
(
hide
)
Description:
Bug 34693: Add 035$a as Other-control-number index in default authorities search indexes
Filename:
MIME Type:
Creator:
Caroline Cyr La Rose
Created:
2023-09-01 19:28:58 UTC
Size:
2.96 KB
patch
obsolete
>From 30d47d429ad87c6f22b7e5c2489c7c413e774b07 Mon Sep 17 00:00:00 2001 >From: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> >Date: Fri, 1 Sep 2023 15:27:44 -0400 >Subject: [PATCH] Bug 34693: Add 035$a as Other-control-number index in default > authorities search indexes > >This patch adds a new index for authorities, Other-control-number, and maps it to 035$a. > >This will help when trying to match authority records when importing external records. > >Test 1: >0. Make sure Elasticsearch is set as the search engine >1. Apply patch and restart >2. Import the attached record > 2.1. Go to Cataloging > Stage records for import > 2.2. Choose the file > 2.3. Click Upload file > 2.4. Choose Record type: Authority > 2.5. Click Stage for import > (wait until the job is finished...) > 2.6. Click View batch > 2.7. Click Import this batch into the catalog > (wait until the job is finished...) > 2.8. Click Manage imported batch > 2.9. Click View next to the record > 2.10. Note the auth id number > >3. Examine the ES entry for the record (replace INDEX_NAME with the index name (found in koha-conf.xml and XX with the auth_id) > >curl -XGET 'http://localhost:9200/INDEX_NAME_authorities/data/XX?_source_includes=other-control-number&pretty' > >--> It should give you the value of 035$a > >Test 2 (optional): >1. Steps 1 and 2 as above >2. Add a matching rule to match on 035$a for authority records > 2.1. Go to Administration > Record matching rules > 2.2. Click New record matching rule > 2.3. Fill out the form > - Matching rule code: enter a code (for example AUTCONTROL) > - Description: enter a description (for example 035$a for authorities) > - Match threshold: 100 > - Record type: Authority record > - Search index: Other-control-number > - Score: 100 > - Tag: 035 > - Subfields: a > 2.4. Click Save >3. Import the same record again, checking for matches using the new rule > 3.1. Go to Cataloging > Stage records for import > 3.2. Choose the file > 3.3. Click Upload file > 3.4. Choose Record type: Authority > 3.5. Choose Record matching rule: rule created above > 2.6. Click Stage for import > (wait until the job is finished...) > --> It should say that 1 record was found using the rule >--- > admin/searchengine/elasticsearch/mappings.yaml | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > >diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml >index e0830506b6a..88bd54308f0 100644 >--- a/admin/searchengine/elasticsearch/mappings.yaml >+++ b/admin/searchengine/elasticsearch/mappings.yaml >@@ -715,6 +715,18 @@ authorities: > opac: 1 > staff_client: 1 > type: '' >+ Other-control-number: >+ label: Other-control-number >+ mandatory: ~ >+ mappings: >+ - facet: '' >+ marc_field: 035a >+ marc_type: marc21 >+ sort: ~ >+ suggestible: '' >+ opac: 1 >+ staff_client: 1 >+ type: '' > Personal-name-heading: > label: Personal-name-heading > mandatory: ~ >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34693
:
155152
|
162795