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

(-)a/Koha/ILL/Request.pm (-11 / +14 lines)
Lines 2073-2093 sub strings_map { Link Here
2073
    }
2073
    }
2074
2074
2075
    my $status_string =
2075
    my $status_string =
2076
      ( $self->status && exists $status_graph_union->{ $self->status } && defined $status_graph_union->{ $self->status }->{name} )
2076
        (      $self->status
2077
      ? $status_graph_union->{ $self->status }->{name}
2077
            && exists $status_graph_union->{ $self->status }
2078
      : $self->status;
2078
            && defined $status_graph_union->{ $self->status }->{name} )
2079
        ? $status_graph_union->{ $self->status }->{name}
2080
        : $self->status;
2079
2081
2080
    my $status_code =
2082
    my $status_code =
2081
      ( $self->status && exists $status_graph_union->{ $self->status } && defined $status_graph_union->{ $self->status }->{id} )
2083
        (      $self->status
2082
      ? $status_graph_union->{ $self->status }->{id}
2084
            && exists $status_graph_union->{ $self->status }
2083
      : $self->status;
2085
            && defined $status_graph_union->{ $self->status }->{id} )
2086
        ? $status_graph_union->{ $self->status }->{id}
2087
        : $self->status;
2084
2088
2085
    my $strings = {
2089
    my $strings = {
2086
        status => {
2090
        status => {
2087
            backend => $self->backend, # the backend identifier
2091
            backend => $self->backend,    # the backend identifier
2088
            str     => $status_string, # the status description, taken from the status graph
2092
            str     => $status_string,    # the status description, taken from the status graph
2089
            code    => $status_code,   # the status id, taken from the status graph
2093
            code    => $status_code,      # the status id, taken from the status graph
2090
            type    => 'ill_status',   # fixed type
2094
            type    => 'ill_status',      # fixed type
2091
        }
2095
        }
2092
    };
2096
    };
2093
2097
2094
- 

Return to bug 34838