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 41-47 export class AdditionalFieldsAPIClientWrapper { Link Here
41
41
42
    getModuleName(resource_type) {
42
    getModuleName(resource_type) {
43
        const moduleMappings = {
43
        const moduleMappings = {
44
            erm: ["agreement", "license", "package", "title"],
44
            erm: [
45
                "agreement",
46
                "agreement_period",
47
                "license",
48
                "package",
49
                "title",
50
            ],
45
            acquisition: ["vendor"],
51
            acquisition: ["vendor"],
46
        };
52
        };
47
53
48
- 

Return to bug 39438