From 922eb09e39b1859674720a84d36f204d436acf41 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 7 Apr 2010 15:57:04 +0000 Subject: [PATCH] handle protocol tcp as z39.50 The three valid IRSpy protocols are Z39.50, SRU and SRW; the valid ZOOM protocols are tcp and http. But if tcp gets into an IRSpy record, then it's tolerated. --- lib/ZOOM/IRSpy/Utils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ZOOM/IRSpy/Utils.pm b/lib/ZOOM/IRSpy/Utils.pm index 7853d20..0b1f646 100644 --- a/lib/ZOOM/IRSpy/Utils.pm +++ b/lib/ZOOM/IRSpy/Utils.pm @@ -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"; -- 1.7.10.4