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

(-)a/Koha/Illbackend.pm (-2 / +2 lines)
Lines 35-41 New illbackend Link Here
35
35
36
sub new {
36
sub new {
37
    my $class = shift;
37
    my $class = shift;
38
    my $self = {};
38
    my $self  = {};
39
    return bless $self, $class;
39
    return bless $self, $class;
40
}
40
}
41
41
Lines 117-123 sub embed { Link Here
117
117
118
    foreach my $embed_req ( split /\s*,\s*/, $embed_header ) {
118
    foreach my $embed_req ( split /\s*,\s*/, $embed_header ) {
119
        if ( $embed_req eq 'statuses+strings' ) {
119
        if ( $embed_req eq 'statuses+strings' ) {
120
            $return_embed->{statuses} = $self->existing_statuses( $backend_id );
120
            $return_embed->{statuses} = $self->existing_statuses($backend_id);
121
        }
121
        }
122
    }
122
    }
123
    return $return_embed;
123
    return $return_embed;
(-)a/Koha/Illrequest.pm (-11 / +14 lines)
Lines 1951-1971 sub strings_map { Link Here
1951
    }
1951
    }
1952
1952
1953
    my $status_string =
1953
    my $status_string =
1954
      ( $self->status && exists $status_graph_union->{ $self->status } && defined $status_graph_union->{ $self->status }->{name} )
1954
        (      $self->status
1955
      ? $status_graph_union->{ $self->status }->{name}
1955
            && exists $status_graph_union->{ $self->status }
1956
      : $self->status;
1956
            && defined $status_graph_union->{ $self->status }->{name} )
1957
        ? $status_graph_union->{ $self->status }->{name}
1958
        : $self->status;
1957
1959
1958
    my $status_code =
1960
    my $status_code =
1959
      ( $self->status && exists $status_graph_union->{ $self->status } && defined $status_graph_union->{ $self->status }->{id} )
1961
        (      $self->status
1960
      ? $status_graph_union->{ $self->status }->{id}
1962
            && exists $status_graph_union->{ $self->status }
1961
      : $self->status;
1963
            && defined $status_graph_union->{ $self->status }->{id} )
1964
        ? $status_graph_union->{ $self->status }->{id}
1965
        : $self->status;
1962
1966
1963
    my $strings = {
1967
    my $strings = {
1964
        status => {
1968
        status => {
1965
            backend => $self->backend, # the backend identifier
1969
            backend => $self->backend,    # the backend identifier
1966
            str     => $status_string, # the status description, taken from the status graph
1970
            str     => $status_string,    # the status description, taken from the status graph
1967
            code    => $status_code,   # the status id, taken from the status graph
1971
            code    => $status_code,      # the status id, taken from the status graph
1968
            type    => 'ill_status',   # fixed type
1972
            type    => 'ill_status',      # fixed type
1969
        }
1973
        }
1970
    };
1974
    };
1971
1975
1972
- 

Return to bug 34838