From 505c7cfdc54b5c834e441991195bc7148bfcce71 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Sun, 7 Sep 2014 20:37:43 -0400 Subject: [PATCH] Fix syntax and variable errors in NCIP::ILS::Evergreen. Signed-off-by: Jason Stephenson --- lib/NCIP/ILS/Evergreen.pm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/NCIP/ILS/Evergreen.pm b/lib/NCIP/ILS/Evergreen.pm index fc9d75c..c9b0480 100644 --- a/lib/NCIP/ILS/Evergreen.pm +++ b/lib/NCIP/ILS/Evergreen.pm @@ -388,11 +388,11 @@ sub acceptitem { NCIP::Problem->new( { ProblemType => 'Duplicate Item', - ProblemDescription => "Item with barcode $barcode already exists.", + ProblemDescription => "Item with barcode $item_barcode already exists.", ProblemElement => $item_idfield, - ProblemValue => $barcode + ProblemValue => $item_barcode } - ); + ) ); return $response; } @@ -405,7 +405,7 @@ sub acceptitem { # need it in other handlers. Such a function would be a # candidate to go into our parent, NCIP::ILS. my $item_info = { - barcode => $barcode, + barcode => $item_barcode, call_number => $request->{$message}->{ItemOptionalFields}->{ItemDescription}->{CallNumber}, title => $request->{$message}->{ItemOptionalFields}->{BibliographicDescription}->{Author}, author => $request->{$message}->{ItemOptionalFields}->{BibliographicDescription}->{Title}, @@ -430,7 +430,7 @@ sub acceptitem { ProblemType => 'Temporary Processing Failure', ProblemDetail => 'Failed to create the item in the system', ProblemElement => $item_idfield, - ProblemValue => $barcode + ProblemValue => $item_barcode } ); return $response; @@ -459,15 +459,15 @@ sub acceptitem { $data->{RequestId} = NCIP::RequestId->new( { AgencyId => $request->{$message}->{RequestId}->{AgencyId}, - RequestIdentifierType => $request->{$message}->{RequestId}->{RequestIdentifierType}; - RequestIdentifierValue => $request->{$message}->{RequestId}->{RequestIdentifierValue}; + RequestIdentifierType => $request->{$message}->{RequestId}->{RequestIdentifierType}, + RequestIdentifierValue => $request->{$message}->{RequestId}->{RequestIdentifierValue} } ); $data->{ItemId} = NCIP::Item::Id->new( { AgencyId => $request->{$message}->{ItemId}->{AgencyId}, - ItemIdentifierType => $request->{$message}->{ItemId}->{ItemIdentifierType}; - ItemIdentifierValue => $request->{$message}->{ItemId}->{ItemIdentifierValue}; + ItemIdentifierType => $request->{$message}->{ItemId}->{ItemIdentifierType}, + ItemIdentifierValue => $request->{$message}->{ItemId}->{ItemIdentifierValue} } ); $response->data($data); -- 2.43.2