Bugzilla – Attachment 189023 Details for
Bug 39438
Add additional fields to agreements periods
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39438: (bug 38446 follow-up) Add agreement_period to /erm/extended_attribute_types
Bug-39438-bug-38446-follow-up-Add-agreementperiod-.patch (text/plain), 2.56 KB, created by
Jonathan Druart
on 2025-11-04 15:21:49 UTC
(
hide
)
Description:
Bug 39438: (bug 38446 follow-up) Add agreement_period to /erm/extended_attribute_types
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-11-04 15:21:49 UTC
Size:
2.56 KB
patch
obsolete
>From 1437990f583d2d9951f2ae2fff740caffe1fcf87 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 4 Nov 2025 16:19:30 +0100 >Subject: [PATCH] Bug 39438: (bug 38446 follow-up) Add agreement_period 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 + > .../prog/js/fetch/additional-fields-api-client.js | 8 +++++++- > 3 files changed, 9 insertions(+), 2 deletions(-) > >diff --git a/Koha/REST/V1/ExtendedAttributeTypes.pm b/Koha/REST/V1/ExtendedAttributeTypes.pm >index 61a6cac938f..b185ce2db65 100644 >--- a/Koha/REST/V1/ExtendedAttributeTypes.pm >+++ b/Koha/REST/V1/ExtendedAttributeTypes.pm >@@ -101,7 +101,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 erm_titles); >+ my @resource_types = qw(erm_licenses erm_agreements erm_agreement_periods erm_titles erm_packages); > > 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 0cd799e3422..7d8c47ccdf0 100644 >--- a/api/v1/swagger/paths/erm_extended_attribute_types.yaml >+++ b/api/v1/swagger/paths/erm_extended_attribute_types.yaml >@@ -16,6 +16,7 @@ > enum: > - license > - agreement >+ - agreement_period > - package > - title > - $ref: "../swagger.yaml#/parameters/match" >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 fa93798cbb7..6945c1b94c8 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,13 @@ export class AdditionalFieldsAPIClientWrapper { > > getModuleName(resource_type) { > const moduleMappings = { >- erm: ["agreement", "license", "package", "title"], >+ erm: [ >+ "agreement", >+ "agreement_period", >+ "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 39438
:
188307
|
188778
|
188779
|
189021
|
189022
| 189023