Fix ProblemDescription for ProblemDetail in NCIP::ILS::Evergreen.
authorJason Stephenson <jason@sigio.com>
Wed, 10 Sep 2014 12:37:22 +0000 (08:37 -0400)
committerJason Stephenson <jason@sigio.com>
Wed, 10 Sep 2014 12:37:22 +0000 (08:37 -0400)
This fixes a mistake in acceptitem when returning a Duplicate Item
problem. The ProblemDetail didn't show up in the response because
the constructor erroneously set ProblemDescription instead of
ProblemDetail.

Signed-off-by: Jason Stephenson <jason@sigio.com>
lib/NCIP/ILS/Evergreen.pm

index 558890a..933045f 100644 (file)
@@ -388,7 +388,7 @@ sub acceptitem {
                 NCIP::Problem->new(
                     {
                         ProblemType => 'Duplicate Item',
-                        ProblemDescription => "Item with barcode $item_barcode already exists.",
+                        ProblemDetail => "Item with barcode $item_barcode already exists.",
                         ProblemElement => $item_idfield,
                         ProblemValue => $item_barcode
                     }