Bug 36729 - Add publisher/distributor number (MARC21 028$a) to standard identifier search index
Summary: Add publisher/distributor number (MARC21 028$a) to standard identifier search...
Status: Pushed to main
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Elasticsearch (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Danyon Sewell
QA Contact: Katrin Fischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-30 05:50 UTC by Aleisha Amohia
Modified: 2025-01-10 01:36 UTC (History)
2 users (show)

See Also:
Change sponsored?: Sponsored
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
This enhancement adds 028$a (MARC21 - Publisher or distributor number) to the standard number (standard-identifier) search index, searchable using the Advanced search > Standard number (in the staff interface and OPAC). Note: This change only affects new installations, or when resetting mappings. To update existing installations, either manually make the change and reindex, or reset the mappings and reindex. It may also require updating your bibliographic frameworks.
Version(s) released in:
25.05.00
Circulation function:


Attachments
Bug 36729: Add Publisher/Distributor Number to standard identifier search index (1.54 KB, patch)
2024-06-05 01:58 UTC, Danyon Sewell
Details | Diff | Splinter Review
Bug 36729: Add Publisher/Distributor Number to standard identifier search index (1.59 KB, patch)
2024-06-08 01:09 UTC, David Nind
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Aleisha Amohia 2024-04-30 05:50:51 UTC
028 is already mapped to an index called identifier-publisher-for-music

It would be good to have this index available in the advanced search dropdown
Comment 1 Aleisha Amohia 2024-05-14 01:31:58 UTC
Please ignore the above description

We would like to add 028$a to the identifier-standard search index, used by the 'Standard number' advanced search dropdown option

Justification: To search for publisher/distributor number (028 $a).
e.g. 028 $a RSMC058.
Comment 2 Danyon Sewell 2024-06-05 01:58:42 UTC
Created attachment 167425 [details] [review]
Bug 36729: Add Publisher/Distributor Number to standard identifier search index

Have written a patch to allow Publisher/Distributor number to be searched using the standard identifier search index.

Testing plan:

1. Start up KTD with Elasticsearch: ktd --es8 up
2. Apply the patch and restart everything (restart_all).
3. Reset the mappings: Administration > Catalog > Search engine configuration (Elasticsearch) > Reset mappings (at the bottom of the page)
4. Reindex: koha-elasticsearch --rebuild -d -b -a kohadev
5. Alternative to steps 3 and 4: reset_all
6. Update the visibility for 028a in the default framework so that it is visible in the Editor.
7. Add a new record using the default framework and put a term in 028a.
8. Using the advanced search "Standard number" Field, search for the term you put in step 7.
Comment 3 David Nind 2024-06-08 01:09:07 UTC
Created attachment 167593 [details] [review]
Bug 36729: Add Publisher/Distributor Number to standard identifier search index

Have written a patch to allow Publisher/Distributor number to be searched using the standard identifier search index.

Testing plan:

1. Start up KTD with Elasticsearch: ktd --es8 up
2. Apply the patch and restart everything (restart_all).
3. Reset the mappings: Administration > Catalog > Search engine configuration (Elasticsearch) > Reset mappings (at the bottom of the page)
4. Reindex: koha-elasticsearch --rebuild -d -b -a kohadev
5. Alternative to steps 3 and 4: reset_all
6. Update the visibility for 028a in the default framework so that it is visible in the Editor.
7. Add a new record using the default framework and put a term in 028a.
8. Using the advanced search "Standard number" Field, search for the term you put in step 7.

Signed-off-by: David Nind <david@davidnind.com>
Comment 4 Katrin Fischer 2024-12-27 16:31:13 UTC
QA by RM.
Comment 5 Katrin Fischer 2024-12-27 16:36:14 UTC
Pushed for 25.05!

Well done everyone, thank you!