projects
/
working
/
NCIPServer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28214de
)
Check for repeated BibliographId in NCIP::ILS->find_bibliographic_id.
author
Jason Stephenson
<jason@sigio.com>
Mon, 22 Sep 2014 17:20:57 +0000
(13:20 -0400)
committer
Jason Stephenson
<jason@sigio.com>
Mon, 22 Sep 2014 17:20:57 +0000
(13:20 -0400)
Signed-off-by: Jason Stephenson <jason@sigio.com>
lib/NCIP/ILS.pm
patch
|
blob
|
history
diff --git
a/lib/NCIP/ILS.pm
b/lib/NCIP/ILS.pm
index
9caa595
..
bbc88a6
100644
(file)
--- 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};