From 8c60068da5429127ec18f5266822463d36d56fec Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Sun, 5 Oct 2014 10:59:31 -0400 Subject: [PATCH] Fix copy and paste problem with previous commit. Signed-off-by: Jason Stephenson --- lib/NCIP/ILS/Evergreen.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/NCIP/ILS/Evergreen.pm b/lib/NCIP/ILS/Evergreen.pm index 8abd8b9..d0c7077 100644 --- a/lib/NCIP/ILS/Evergreen.pm +++ b/lib/NCIP/ILS/Evergreen.pm @@ -471,7 +471,7 @@ sub checkinitem { }; # Look for UserElements requested and add it to the response: - my $elements = $request->{$message_type}->{UserElementType}; + my $elements = $request->{$message}->{UserElementType}; if ($elements) { $elements = [$elements] unless (ref $elements eq 'ARRAY'); my $optionalfields = $self->handle_user_elements($circ_user, $elements); @@ -668,7 +668,7 @@ sub renewitem { $data->{DateDue} = $due->iso8601(); # Look for UserElements requested and add it to the response: - my $elements = $request->{$message_type}->{UserElementType}; + my $elements = $request->{$message}->{UserElementType}; if ($elements) { $elements = [$elements] unless (ref $elements eq 'ARRAY'); my $optionalfields = $self->handle_user_elements($user, $elements); @@ -835,7 +835,7 @@ sub checkoutitem { $data->{DateDue} = $due->iso8601(); # Look for UserElements requested and add it to the response: - my $elements = $request->{$message_type}->{UserElementType}; + my $elements = $request->{$message}->{UserElementType}; if ($elements) { $elements = [$elements] unless (ref $elements eq 'ARRAY'); my $optionalfields = $self->handle_user_elements($user, $elements); @@ -994,7 +994,7 @@ sub requestitem { RequestScopeType => ($hold->hold_type() eq 'V') ? "item" : "bibliographic item" }; # Look for UserElements requested and add it to the response: - my $elements = $request->{$message_type}->{UserElementType}; + my $elements = $request->{$message}->{UserElementType}; if ($elements) { $elements = [$elements] unless (ref $elements eq 'ARRAY'); my $optionalfields = $self->handle_user_elements($user, $elements); @@ -1157,7 +1157,7 @@ sub cancelrequestitem { ) }; # Look for UserElements requested and add it to the response: - my $elements = $request->{$message_type}->{UserElementType}; + my $elements = $request->{$message}->{UserElementType}; if ($elements) { $elements = [$elements] unless (ref $elements eq 'ARRAY'); my $optionalfields = $self->handle_user_elements($user, $elements); -- 2.11.0