projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1630e7
)
handle protocol tcp as z39.50
author
Wolfram Schneider
<wosch@indexdata.dk>
Wed, 7 Apr 2010 15:57:04 +0000
(15:57 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Wed, 7 Apr 2010 15:57:04 +0000
(15:57 +0000)
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
patch
|
blob
|
history
diff --git
a/lib/ZOOM/IRSpy/Utils.pm
b/lib/ZOOM/IRSpy/Utils.pm
index
7853d20
..
0b1f646
100644
(file)
--- 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";