@@ -, +, @@ --- Koha/Illbackend.pm | 4 ++-- Koha/Illrequest.pm | 24 ++++++++++++++---------- 2 files changed, 16 insertions(+), 12 deletions(-) --- a/Koha/Illbackend.pm +++ a/Koha/Illbackend.pm @@ -35,7 +35,7 @@ New illbackend sub new { my $class = shift; - my $self = {}; + my $self = {}; return bless $self, $class; } @@ -117,7 +117,7 @@ sub embed { foreach my $embed_req ( split /\s*,\s*/, $embed_header ) { if ( $embed_req eq 'statuses+strings' ) { - $return_embed->{statuses} = $self->existing_statuses( $backend_id ); + $return_embed->{statuses} = $self->existing_statuses($backend_id); } } return $return_embed; --- a/Koha/Illrequest.pm +++ a/Koha/Illrequest.pm @@ -1951,21 +1951,25 @@ sub strings_map { } my $status_string = - ( $self->status && exists $status_graph_union->{ $self->status } && defined $status_graph_union->{ $self->status }->{name} ) - ? $status_graph_union->{ $self->status }->{name} - : $self->status; + ( $self->status + && exists $status_graph_union->{ $self->status } + && defined $status_graph_union->{ $self->status }->{name} ) + ? $status_graph_union->{ $self->status }->{name} + : $self->status; my $status_code = - ( $self->status && exists $status_graph_union->{ $self->status } && defined $status_graph_union->{ $self->status }->{id} ) - ? $status_graph_union->{ $self->status }->{id} - : $self->status; + ( $self->status + && exists $status_graph_union->{ $self->status } + && defined $status_graph_union->{ $self->status }->{id} ) + ? $status_graph_union->{ $self->status }->{id} + : $self->status; my $strings = { status => { - backend => $self->backend, # the backend identifier - str => $status_string, # the status description, taken from the status graph - code => $status_code, # the status id, taken from the status graph - type => 'ill_status', # fixed type + backend => $self->backend, # the backend identifier + str => $status_string, # the status description, taken from the status graph + code => $status_code, # the status id, taken from the status graph + type => 'ill_status', # fixed type } }; --