(MT #3697) Fixed GetAuthorityRecords
[koha.git] / C4 / ILSDI / Services.pm
index 3433b21..be093f0 100644 (file)
@@ -250,7 +250,7 @@ sub GetAuthorityRecords {
     foreach my $authid ( split( / /, $cgi->param('id') ) ) {
 
         # Get the record as XML string, or error code
-        my $record = GetAuthorityXML( $_ ) || "<record><code>RecordNotFound</code></record>";
+        my $record = GetAuthorityXML($authid) || "<record><code>RecordNotFound</code></record>";
         $record =~ s/<\?xml(.*)\?>//go;
         $records .= $record;
     }