View | Details | Raw Unified | Return to bug 39438
Collapse All | Expand All

(-)a/Koha/REST/V1/ExtendedAttributeTypes.pm (-1 / +1 lines)
Lines 101-107 List the ERM-related additional fields, can be filtered using the resource_type Link Here
101
sub list_erm {
101
sub list_erm {
102
    my ($self)         = @_;
102
    my ($self)         = @_;
103
    my $c              = shift->openapi->valid_input or return;
103
    my $c              = shift->openapi->valid_input or return;
104
    my @resource_types = qw(erm_licenses erm_agreements erm_packages erm_titles);
104
    my @resource_types = qw(erm_licenses erm_agreements erm_agreement_periods erm_titles erm_packages);
105
105
106
    return try {
106
    return try {
107
        my $additional_fields_set = $self->_list(@resource_types);
107
        my $additional_fields_set = $self->_list(@resource_types);
(-)a/api/v1/swagger/paths/erm_extended_attribute_types.yaml (+1 lines)
Lines 16-21 Link Here
16
        enum:
16
        enum:
17
          - license
17
          - license
18
          - agreement
18
          - agreement
19
          - agreement_period
19
          - package
20
          - package
20
          - title
21
          - title
21
      - $ref: "../swagger.yaml#/parameters/match"
22
      - $ref: "../swagger.yaml#/parameters/match"
(-)a/koha-tmpl/intranet-tmpl/prog/js/fetch/additional-fields-api-client.js (-2 / +7 lines)
Lines 39-45 export class AdditionalFieldsAPIClientWrapper { Link Here
39
39
40
    getModuleName(resource_type) {
40
    getModuleName(resource_type) {
41
        const moduleMappings = {
41
        const moduleMappings = {
42
            erm: ["agreement", "license", "package", "title"],
42
            erm: [
43
                "agreement",
44
                "agreement_period",
45
                "license",
46
                "package",
47
                "title",
48
            ],
43
        };
49
        };
44
50
45
        for (const [module, resourceTypes] of Object.entries(moduleMappings)) {
51
        for (const [module, resourceTypes] of Object.entries(moduleMappings)) {
46
- 

Return to bug 39438