Bug 39900

Summary: Add public REST endpoint for additional_contents
Product: Koha Reporter: Pedro Amorim <pedro.amorim>
Component: REST APIAssignee: Pedro Amorim <pedro.amorim>
Status: Signed Off --- QA Contact: Tomás Cohen Arazi (tcohen) <tomascohen>
Severity: enhancement    
Priority: P5 - low CC: blawlor, david, m.de.rooy, pedro.amorim, tomascohen
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 39900: Preparation: Refactor public_query_search_params for reusability
Bug 39900: Preparation: Move html customizations options to class for reusability
Bug 39900: REST API specs and class changes
Bug 39900: Add translated_contents embed
Bug 39900: Add tests
Bug 39900: Preparation: Refactor public_query_search_params for reusability
Bug 39900: Preparation: Move html customizations options to class for reusability
Bug 39900: REST API specs and class changes
Bug 39900: Add translated_contents embed
Bug 39900: Add tests

Description Pedro Amorim 2025-05-14 12:32:56 UTC

    
Comment 1 Pedro Amorim 2025-05-14 12:41:40 UTC Comment hidden (obsolete)
Comment 2 Pedro Amorim 2025-05-14 12:41:43 UTC Comment hidden (obsolete)
Comment 3 Pedro Amorim 2025-05-14 12:41:46 UTC Comment hidden (obsolete)
Comment 4 Pedro Amorim 2025-05-14 12:41:48 UTC Comment hidden (obsolete)
Comment 5 Pedro Amorim 2025-05-14 12:41:51 UTC Comment hidden (obsolete)
Comment 6 David Nind 2025-06-01 20:07:49 UTC
Created attachment 182887 [details] [review]
Bug 39900: Preparation: Refactor public_query_search_params for reusability

Ensure no regressions are introduced, run:
prove t/db_dependent/Koha/AdditionalContents.t

Signed-off-by: David Nind <david@davidnind.com>
Comment 7 David Nind 2025-06-01 20:07:52 UTC
Created attachment 182888 [details] [review]
Bug 39900: Preparation: Move html customizations options to class for reusability

Signed-off-by: David Nind <david@davidnind.com>
Comment 8 David Nind 2025-06-01 20:07:55 UTC
Created attachment 182889 [details] [review]
Bug 39900: REST API specs and class changes

Signed-off-by: David Nind <david@davidnind.com>
Comment 9 David Nind 2025-06-01 20:08:01 UTC
Created attachment 182890 [details] [review]
Bug 39900: Add translated_contents embed

Signed-off-by: David Nind <david@davidnind.com>
Comment 10 David Nind 2025-06-01 20:08:16 UTC
Created attachment 182891 [details] [review]
Bug 39900: Add tests

prove t/db_dependent/api/v1/additional_contents.t

Signed-off-by: David Nind <david@davidnind.com>
Comment 11 David Nind 2025-06-01 20:11:29 UTC
I tested by running the tests. If this is insufficient, please change the status back to needs signoff.

Testing notes (using KTD):
1. Apply the patches.
2. Rebuild everything (not sure that this step is required): yarn build
3. Ran the tests and these passed:
   - prove t/db_dependent/Koha/AdditionalContents.t
   - prove t/db_dependent/api/v1/additional_contents.t