Fix an inversion of author and title in NCIP::ILS::Evergreen->acceptitem.
authorJason Stephenson <jason@sigio.com>
Fri, 5 Dec 2014 00:26:09 +0000 (19:26 -0500)
committerJason Stephenson <jason@sigio.com>
Fri, 5 Dec 2014 00:26:09 +0000 (19:26 -0500)
Signed-off-by: Jason Stephenson <jason@sigio.com>
lib/NCIP/ILS/Evergreen.pm

index 8c94011..d150303 100644 (file)
@@ -271,8 +271,8 @@ sub acceptitem {
         my $item_info = {
             barcode => $item_barcode,
             call_number => $request->{$message}->{ItemOptionalFields}->{ItemDescription}->{CallNumber},
         my $item_info = {
             barcode => $item_barcode,
             call_number => $request->{$message}->{ItemOptionalFields}->{ItemDescription}->{CallNumber},
-            title => $request->{$message}->{ItemOptionalFields}->{BibliographicDescription}->{Author},
-            author => $request->{$message}->{ItemOptionalFields}->{BibliographicDescription}->{Title},
+            title => $request->{$message}->{ItemOptionalFields}->{BibliographicDescription}->{Title},
+            author => $request->{$message}->{ItemOptionalFields}->{BibliographicDescription}->{Author},
             publisher => $request->{$message}->{ItemOptionalFields}->{BibliographicDescription}->{Publisher},
             publication_date => $request->{$message}->{ItemOptionalFields}->{BibliographicDescription}->{PublicationDate},
             medium => $request->{$message}->{ItemOptionalFields}->{BibliographicDescription}->{MediumType},
             publisher => $request->{$message}->{ItemOptionalFields}->{BibliographicDescription}->{Publisher},
             publication_date => $request->{$message}->{ItemOptionalFields}->{BibliographicDescription}->{PublicationDate},
             medium => $request->{$message}->{ItemOptionalFields}->{BibliographicDescription}->{MediumType},