List Info

Thread: Basic guidelines and/or example




Basic guidelines and/or example
user name
2006-09-29 03:55:42
Mike,

Thanks for your reply about how to start working with
SimpleServer. I
will use the script you mentioned (logging-server.pl) as a
starting
point. However, first I have to learn Perl and objects...
Meanwhile I
have some more questions.

(1)
When I run script included in the distribution from command
line like:
perl logging-server.pl
Should it output anything?
I thought it should print "INIT: ", "Search:
", ...

(2)
Documentation for SimpleServer says that in order to support
SRU
"...from a SimpleServer-based application, it is
necessary to launch
the application with a YAZ Generic Frontend Server (GFS)
configuration
file, which can be specified using the command-line argument
-f
filename..."

Does it mean I have to start my application with that
argument? I
guess my application will be just a single file - script
called by a
web form.

Thanks,
Serhiy

_______________________________________________
Net-z3950 mailing list
Net-z3950lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/n
et-z3950
Basic guidelines and/or example
user name
2006-09-29 08:11:10
Serhiy Polyakov writes:
 > Mike,
 > 
 > Thanks for your reply about how to start working with
SimpleServer. I
 > will use the script you mentioned (logging-server.pl)
as a starting
 > point. However, first I have to learn Perl and
objects... Meanwhile I
 > have some more questions.
 > 
 > (1)
 > When I run script included in the distribution from
command line like:
 > perl logging-server.pl
 > Should it output anything?
 > I thought it should print "INIT: ",
"Search: ", ...

Yes -- when you connect to it using a Z39.50 client.  For
example:

	$ yaz-client :9999/x
	Connecting...OK.
	Sent initrequest.
	Connection accepted by v3 target.
	ID     : /81
	Name   : /GFS/YAZ
	Version: /1.98/2.1.30
	Options: search present triggerResourceCtrl namedResultSets
	Elapsed: 0.047921
	Z> find fish
	Sent searchRequest.
	Received SearchResponse.
	Search was a success.
	Number of hits: 1, setno 1
	records returned: 0
	Elapsed: 0.023646
	Z> 

Will cause the server to generate some output.

 > (2)
 > Documentation for SimpleServer says that in order to
support SRU
 > "...from a SimpleServer-based application, it is
necessary to launch
 > the application with a YAZ Generic Frontend Server
(GFS) configuration
 > file, which can be specified using the command-line
argument -f
 > filename..."
 > 
 > Does it mean I have to start my application with that
argument?

It means you have to start the server with that argument.
"Application" is fluffy term more beloved of
marketing people than
techies, and could mean almost anything in this context, so
let's not
use it.

 > I guess my application will be just a single file -
script called
 > by a web form.

More likely, your Z39.50 _client_ will be a script called by
a
web-form -- maybe using PHP/YAZ or ZOOM-Perl.  But
SimpleServer
provides the server half of the equation, not the client.

 _/|_	
____________________________________________________________
_______
/o ) /  Mike Taylor    <mikeindexdata.com>    http://www.miketaylor.or
g.uk
)_v__/  "Artists would like to ignore the business
side: to some extent
	 you can, and to another extent you can't" -- Alvin
Sylvain.


_______________________________________________
Net-z3950 mailing list
Net-z3950lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/n
et-z3950
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )