Bug 40542: Add strings embed to holds-related endpoints

This patch makes holds endpoints be allowed to embed strings.

To test:
1. Use your favourite REST tool to hit /api/v1/holds
2. Add the `x-koha-embed: +strings` header.
=> FAIL: The API rejects because it is not equiped with the feature.
3. Apply this patches
4. Run:
   $ ktd --shell
  k$ yarn api:bundle
  k$ koha-plack --restart kohadev
5. Repeat 2
=> SUCCESS: It works!
6. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit e90bc50209)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Tomas Cohen Arazi 2025-07-29 11:17:42 -03:00 committed by Paul Derscheid
parent e991fc4057
commit f9db5716c9
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
3 changed files with 7 additions and 0 deletions

View File

@ -135,5 +135,10 @@ properties:
- object
- "null"
description: Pickup library
_strings:
type:
- object
- "null"
description: A list of stringified coded values
additionalProperties: false

View File

@ -101,6 +101,7 @@
items:
type: string
enum:
- +strings
- cancellation_requested
- biblio
- deleted_biblio

View File

@ -28,6 +28,7 @@
items:
type: string
enum:
- +strings
- cancellation_requested
- biblio
- deleted_biblio