https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12620
--- Comment #8 from David Cook <dc...@prosentient.com.au> --- (In reply to Galen Charlton from comment #2) > Depending on the nature of the proxy involved, it may not be necessary to > use YAZProxy. In particular, the YAZ toolkit supports a special connection > syntax to direct Z39.50 and SRU traffic through a proxy. > > For example, suppose you have a Squid proxy running on localhost and > listening on port 210, and further suppose that the proxy is configured to > allow connecting to the target Z39.50 server(s). In that case, with > yaz-client you can do something like this: > > yaz-client connect:localhost:3128,tcp:lx2.loc.gov:210/LCDB > > and that will get you a proxied Z39.50 connection to the Library of Congress. It took a bit of digging but I found some information about that syntax that Galen mentioned: https://github.com/indexdata/yaz/blob/master/NEWS#L2365 So in that case you'd be doing "yaz-client connect:EDUPROXY:PROXYPORT,tcp:lx2.loc.gov:210/LCDB". Now ZOOM doesn't explicitly mention support for this syntax (https://metacpan.org/pod/distribution/Net-Z3950-ZOOM/lib/ZOOM.pod). Of course, neither does yaz-client (https://linux.die.net/man/1/yaz-client). As I said, the documentation leaves something to be desired. I'm waiting to hear back from Adam Dickmeiss about that. But looking at C4::Breeding::_create_connection... it looks like Koha would need a little patch to change how we pass in the connection string. Instead of '$obj->connect( $server->{host}, $server->{port} )', we'd want to use something like '$obj->connect($host)' where $host is constructed based on whether or not there is a proxy. (See https://metacpan.org/pod/distribution/Net-Z3950-ZOOM/lib/ZOOM.pod#new()) I could keep digging through source code but I think it'll just be easier to wait for Adam's response. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/