-$Id: README,v 1.2 2006-07-21 11:24:20 mike Exp $
+$Id: README,v 1.3 2006-09-20 13:19:52 mike Exp $
Net-Z3950-IRSpy
===============
--
Note to self: everyone else please ignore this.
-$ cd /usr/local/src/cvs/irspy && YAZ_LOG=irspy,irspy_test,irspy_debug,pod perl -I lib bin/irspy.pl -t "bagel.indexdata.dk/gils foo.bar.baz:12345/fish z3950.loc.gov:7090/Voyager" localhost:1313/IR-Explain---1
+$ cd /usr/local/src/cvs/irspy && YAZ_LOG=irspy,irspy_test,irspy_debug,pod perl -I lib bin/irspy.pl -t "bagel.indexdata.dk/gils foo.bar.baz:12345/fish z3950.loc.gov:7090/Voyager" localhost:3313/IR-Explain---1
#!/usr/bin/perl -w
-# $Id: irspy.pl,v 1.2 2006-07-19 11:52:24 mike Exp $
+# $Id: irspy.pl,v 1.3 2006-09-20 13:19:53 mike Exp $
#
# Run like this:
-# YAZ_LOG=irspy,irspy_test,irspy_debug perl -I ../lib irspy.pl -t "bagel.indexdata.dk/gils z3950.loc.gov:7090/Voyager" localhost:1313/IR-Explain---1
+# YAZ_LOG=irspy,irspy_test,irspy_debug perl -I ../lib irspy.pl -t "bagel.indexdata.dk/gils z3950.loc.gov:7090/Voyager" localhost:3313/IR-Explain---1
use strict;
use warnings;
-%# $Id: all.mc,v 1.2 2006-09-19 16:30:07 mike Exp $
+%# $Id: all.mc,v 1.3 2006-09-20 13:19:53 mike Exp $
<%perl>
print "IRSpy version $ZOOM::IRSpy::VERSION<br/>\n";
-my $spy = new ZOOM::IRSpy("localhost:1313/IR-Explain---1");
+my $spy = new ZOOM::IRSpy("localhost:3313/IR-Explain---1");
if (1) {
# Testing all targets would take much too long for testing
my @targets = qw(bagel.indexdata.dk/gils z3950.loc.gov:7090/Voyager);
-%# $Id: check.mc,v 1.1 2006-09-18 19:27:21 mike Exp $
+%# $Id: check.mc,v 1.2 2006-09-20 13:19:53 mike Exp $
<%perl>
my $id = $r->param("id");
if (!$id) {
print "No 'id' specified!\n";
} else {
print "<h2>'$id'</h2>\n";
- my $spy = new ZOOM::IRSpy("localhost:1313/IR-Explain---1");
+ my $spy = new ZOOM::IRSpy("localhost:3313/IR-Explain---1");
ZOOM::Log::mask_str("irspy,irspy_test"); # Do we need this?
ZOOM::Log::init_level(ZOOM::Log::module_level("irspy,irspy_test"));
ZOOM::Log::time_format("%F %T"); # ISO-8601 format
-%# $Id: found.mc,v 1.6 2006-09-20 11:25:42 mike Exp $
+%# $Id: found.mc,v 1.7 2006-09-20 13:19:53 mike Exp $
<%once>
use XML::LibXML;
use XML::LibXML::XPathContext;
### We can think about keeping the Connection object open to re-use
# for multiple requests, but that may not get us much. Same applies
# for the XML parser.
-my $conn = new ZOOM::Connection("localhost:1313/IR-Explain---1");
+my $conn = new ZOOM::Connection("localhost:3313/IR-Explain---1");
$conn->option(elementSetName => "zeerex");
my $parser = new XML::LibXML();
-%# $Id: raw.html,v 1.1 2006-09-19 11:11:33 mike Exp $
+%# $Id: raw.html,v 1.2 2006-09-20 13:19:53 mike Exp $
<%args>
$id
</%args>
use ZOOM;
</%once>
<%perl>
-my $conn = new ZOOM::Connection("localhost:1313/IR-Explain---1");
+my $conn = new ZOOM::Connection("localhost:3313/IR-Explain---1");
$conn->option(elementSetName => "zeerex");
my $query = qq[rec.id="$id"];
my $rs = $conn->search(new ZOOM::Query::CQL($query));
-%# $Id: run.html,v 1.1 2006-09-14 15:15:45 mike Exp $
+%# $Id: run.html,v 1.2 2006-09-20 13:19:53 mike Exp $
<%perl>
use lib "/usr/local/src/cvs/irspy/lib";
use ZOOM::IRSpy;
-my $dbname = "localhost:1313/IR-Explain---1";
+my $dbname = "localhost:3313/IR-Explain---1";
my @targets = qw(bagel.indexdata.dk/gils
z3950.loc.gov:7090/Voyager);
</%perl>
-$Id: README,v 1.11 2006-09-13 15:36:12 mike Exp $
+$Id: README,v 1.12 2006-09-20 13:19:54 mike Exp $
What's what in this directory:
dictionaries and suchlike.
form.html -- a simple HTML search form that submits SRU queries to a
- server running on local port 1313.
+ server running on local port 3313.
--
zebrasrv -f yazserver.xml
Then interrogate the database with SRU URLs such as:
- http://localhost:1313/IR-Explain---1?version=1.1&operation=searchRetrieve&maximumRecords=10&recordSchema=zeerex&query=net.protocol=sru
+ http://localhost:3313/IR-Explain---1?version=1.1&operation=searchRetrieve&maximumRecords=10&recordSchema=zeerex&query=net.protocol=sru
<?xml version="1.0" encoding="ISO-8859-1"?>
-<!-- $Id: form.html,v 1.1 2006-05-12 16:26:00 mike Exp $ -->
+<!-- $Id: form.html,v 1.2 2006-09-20 13:19:54 mike Exp $ -->
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
</head>
<body>
<h1>SRU form for the IRSpy database</h1>
- <form method="get" action="http://localhost:1313/IR-Explain---1">
+ <form method="get" action="http://localhost:3313/IR-Explain---1">
<table>
<tr>
<td align="right">
<?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id: yazserver.xml,v 1.2 2006-05-12 16:13:53 mike Exp $ -->
+<!-- $Id: yazserver.xml,v 1.3 2006-09-20 13:19:54 mike Exp $ -->
<yazgfs>
- <listen id="tcp1313">tcp:@:1313</listen>
- <server id="alvis" listenref="tcp1313">
+ <listen id="tcp3313">tcp:@:3313</listen>
+ <server id="alvis" listenref="tcp3313">
<directory>./</directory>
<config>zebra.cfg</config>
<cql2rpn>pqf.properties</cql2rpn>
<explain xmlns="http://explain.z3950.org/dtd/2.0/">
<serverInfo>
<host>localhost</host>
- <port>1313</port>
+ <port>3313</port>
<database>IR-Explain---1</database>
</serverInfo>
</explain>
<?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id: zeerex.xml,v 1.12 2006-09-07 10:29:38 mike Exp $ -->
+<!-- $Id: zeerex.xml,v 1.13 2006-09-20 13:19:54 mike Exp $ -->
<explain xmlns="http://explain.z3950.org/dtd/2.0/">
<serverInfo protocol="SRW/SRU/Z39.50" version="1.1" method="GET/POST">
<host>localhost</host>
- <port>1313</port>
+ <port>3313</port>
<database>Default</database>
</serverInfo>