Bug 36725 - Add "current publication frequency" to Elasticsearch index mappings (MARC21 310$a)
Summary: Add "current publication frequency" to Elasticsearch index mappings (MARC21 3...
Status: Needs documenting
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Elasticsearch (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Alex Buckley
QA Contact: Nick Clemens (kidclamp)
URL:
Keywords: release-notes-needed
Depends on:
Blocks:
 
Reported: 2024-04-30 04:59 UTC by Aleisha Amohia
Modified: 2024-11-18 18:33 UTC (History)
4 users (show)

See Also:
Change sponsored?: Sponsored
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
24.11.00
Circulation function:


Attachments
Bug 36725: Add Current publication frequency 310$a to Elasticsearch index mappings (1.58 KB, patch)
2024-05-12 22:15 UTC, Alex Buckley
Details | Diff | Splinter Review
Bug 36725: Add Current publication frequency 310$a to Elasticsearch index mappings (1.44 KB, patch)
2024-05-13 18:00 UTC, Alex Buckley
Details | Diff | Splinter Review
Bug 36725: Add Current publication frequency 310$a to Elasticsearch index mappings (1.48 KB, patch)
2024-06-02 22:55 UTC, David Nind
Details | Diff | Splinter Review
Bug 36725: Add Current publication frequency 310$a to Elasticsearch index mappings (1.54 KB, patch)
2024-09-27 17:55 UTC, Nick Clemens (kidclamp)
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 04:59:05 UTC
https://www.loc.gov/marc/bibliographic/bd310.html
Comment 1 Alex Buckley 2024-05-12 22:15:26 UTC
Created attachment 166615 [details] [review]
Bug 36725: Add Current publication frequency 310$a to Elasticsearch index mappings

Test plan:
1. Start up KTD with Elasticsearch: ktd --es8 up

2. Apply this patch and restart all services (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 310$a in the default framework so that it is visible inte Editor (OPAC, Staff interface should already be selected).

7. Add a new record using the default framework and put a term in 310$a, such as 'Annual'.

Sponsored-by: Education Services Australia SCIS
Comment 2 Alex Buckley 2024-05-13 18:00:24 UTC
Created attachment 166652 [details] [review]
Bug 36725: Add Current publication frequency 310$a to Elasticsearch index mappings

Test plan:
1. Start up KTD with Elasticsearch: ktd --es8 up

2. Apply this patch and restart all services (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. Add a new record using the default framework and put a term in 310$a, such as 'Annual'.

Sponsored-by: Education Services Australia SCIS
Comment 3 Alex Buckley 2024-05-13 18:02:49 UTC
This is ready to test.

Note: We have taken a similar approach in this patchset as we did in bug 36723 - that is, only include the addition to the index mappings and leave the advanced search dropdown additions as a customisation for our client who requested it.
Comment 4 David Nind 2024-06-02 22:55:32 UTC
Created attachment 167329 [details] [review]
Bug 36725: Add Current publication frequency 310$a to Elasticsearch index mappings

Test plan:
1. Start up KTD with Elasticsearch: ktd --es8 up

2. Apply this patch and restart all services (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. Add a new record using the default framework and put a term in 310$a, such as 'Annual'.

Sponsored-by: Education Services Australia SCIS
Signed-off-by: David Nind <david@davidnind.com>
Comment 5 David Nind 2024-06-02 22:57:50 UTC
Testing notes (using KTD):
1. In staff interface or OPAC (after patch is applied, etc), can search for this using Current-publication-frequency:Annual in the standard catalog search box
  ==> Result: 3 results - the one added, and two existing sample records that have Annual in 310$a
Comment 6 Nick Clemens (kidclamp) 2024-09-27 17:55:27 UTC
Created attachment 172142 [details] [review]
Bug 36725: Add Current publication frequency 310$a to Elasticsearch index mappings

Test plan:
1. Start up KTD with Elasticsearch: ktd --es8 up

2. Apply this patch and restart all services (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. Add a new record using the default framework and put a term in 310$a, such as 'Annual'.

Sponsored-by: Education Services Australia SCIS
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Comment 7 Katrin Fischer 2024-10-21 13:12:37 UTC
Pushed for 24.11!

Well done everyone, thank you!