Bug 36725

Summary: Add "current publication frequency" to Elasticsearch index mappings (MARC21 310$a)
Product: Koha Reporter: Aleisha Amohia <aleisha>
Component: Searching - ElasticsearchAssignee: Alex Buckley <alexbuckley>
Status: Needs documenting --- QA Contact: Nick Clemens (kidclamp) <nick>
Severity: enhancement    
Priority: P5 - low CC: alexbuckley, david, lucas, martin.renvoize
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: Sponsored
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
This updates the default Elasticsearch mappings to include MARC 310$a - current publication frequency. Please note that this will only affect new installations. If mappings are reset to default on existing installations a full reindex is required.
Version(s) released in:
24.11.00
Circulation function:
Attachments: Bug 36725: Add Current publication frequency 310$a to Elasticsearch index mappings
Bug 36725: Add Current publication frequency 310$a to Elasticsearch index mappings
Bug 36725: Add Current publication frequency 310$a to Elasticsearch index mappings
Bug 36725: Add Current publication frequency 310$a to Elasticsearch index mappings

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!