From: Jason Stephenson Date: Mon, 22 Sep 2014 17:20:57 +0000 (-0400) Subject: Check for repeated BibliographId in NCIP::ILS->find_bibliographic_id. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b0f6015eb39ba48e5a1cea427666f568a814e524;p=NCIPServer.git Check for repeated BibliographId in NCIP::ILS->find_bibliographic_id. Signed-off-by: Jason Stephenson --- diff --git a/lib/NCIP/ILS.pm b/lib/NCIP/ILS.pm index 9caa595..bbc88a6 100644 --- a/lib/NCIP/ILS.pm +++ b/lib/NCIP/ILS.pm @@ -423,6 +423,9 @@ sub find_bibliographic_id { $idxml = $request->{$message}->{BibliographicId}; } if ($idxml) { + # BibliographicId is repeatable in some messages, but we only + # use the first one. + $idxml = $idxml->[0] if (ref($idxml) eq 'ARRAY'); if ($idxml->{BibliographicRecordId}) { my ($identifier, $agencyid, $code); $identifier = $idxml->{BibliographicRecordId}->{BibliographicRecordIdentifier};