Bugzilla – Attachment 189020 Details for
Bug 40192
Add additional fields to ERM titles
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40192: (bug 38446 follow-up) Add title to /erm/extended_attribute_types
Bug-40192-bug-38446-follow-up-Add-title-to-ermexte.patch (text/plain), 2.46 KB, created by
Jonathan Druart
on 2025-11-04 15:21:03 UTC
(
hide
)
Description:
Bug 40192: (bug 38446 follow-up) Add title to /erm/extended_attribute_types
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-11-04 15:21:03 UTC
Size:
2.46 KB
patch
obsolete
>From 4f467bbba25d876e4b22b5a4204f7c7c11cc2876 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 4 Nov 2025 16:18:21 +0100 >Subject: [PATCH] Bug 40192: (bug 38446 follow-up) Add title to > /erm/extended_attribute_types > >Sponsored-by: Karlsruhe Institute of Technology (KIT) >--- > Koha/REST/V1/ExtendedAttributeTypes.pm | 2 +- > api/v1/swagger/paths/erm_extended_attribute_types.yaml | 1 + > .../intranet-tmpl/prog/js/fetch/additional-fields-api-client.js | 2 +- > 3 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/Koha/REST/V1/ExtendedAttributeTypes.pm b/Koha/REST/V1/ExtendedAttributeTypes.pm >index 6505996408d..babadf8e3c1 100644 >--- a/Koha/REST/V1/ExtendedAttributeTypes.pm >+++ b/Koha/REST/V1/ExtendedAttributeTypes.pm >@@ -100,7 +100,7 @@ List the ERM-related additional fields, can be filtered using the resource_type > sub list_erm { > my ($self) = @_; > my $c = shift->openapi->valid_input or return; >- my @resource_types = qw(erm_licenses erm_agreements erm_packages); >+ my @resource_types = qw(erm_licenses erm_agreements erm_packages erm_titles); > > return try { > my $additional_fields_set = $self->_list(@resource_types); >diff --git a/api/v1/swagger/paths/erm_extended_attribute_types.yaml b/api/v1/swagger/paths/erm_extended_attribute_types.yaml >index 662252d1d73..0cd799e3422 100644 >--- a/api/v1/swagger/paths/erm_extended_attribute_types.yaml >+++ b/api/v1/swagger/paths/erm_extended_attribute_types.yaml >@@ -17,6 +17,7 @@ > - license > - agreement > - package >+ - title > - $ref: "../swagger.yaml#/parameters/match" > - $ref: "../swagger.yaml#/parameters/order_by" > - $ref: "../swagger.yaml#/parameters/page" >diff --git a/koha-tmpl/intranet-tmpl/prog/js/fetch/additional-fields-api-client.js b/koha-tmpl/intranet-tmpl/prog/js/fetch/additional-fields-api-client.js >index 8d359ec0e2b..fa93798cbb7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/fetch/additional-fields-api-client.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/fetch/additional-fields-api-client.js >@@ -39,7 +39,7 @@ export class AdditionalFieldsAPIClientWrapper { > > getModuleName(resource_type) { > const moduleMappings = { >- erm: ["agreement", "license", "package"], >+ erm: ["agreement", "license", "package", "title"], > }; > > for (const [module, resourceTypes] of Object.entries(moduleMappings)) { >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40192
:
188211
|
188371
|
188374
|
188378
|
188777
|
189019
| 189020