handle protocol tcp as z39.50
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Utils.pm
index 7853d20..0b1f646 100644 (file)
@@ -260,7 +260,7 @@ sub _irspy_identifier2target {
        if !defined $id;
 
     my($protocol, $target) = ($id =~ /(.*?):(.*)/);
-    if (uc($protocol) eq "Z39.50") {
+    if (uc($protocol) eq "Z39.50" || uc($protocol) eq "TCP") {
        return "tcp:$target";
     } elsif (uc($protocol) eq "SRU") {
        return "sru=get,http:$target";