Catalyst::Controller::SRU(3pm) User Contributed Perl Documentation Catalyst::Controller::SRU(3pm)NAME
Catalyst::Controller::SRU - Dispatch SRU methods with Catalyst
SYNOPSIS
package MyApp::Controller::SRU;
# use it as a base controller
use base qw( Catalyst::Controller::SRU );
# explain, scan and searchretrieve methods
sub explain {
my ( $self, $c,
$sru_request, # ISA SRU::Request::Explain
$sru_response, # ISA SRU::Response::Explain
) = @_;
}
sub scan {
my ( $self, $c,
$sru_request, # ISA SRU::Request::Scan
$sru_response, # ISA SRU::Response::Scan
$cql, # ISA CQL::Parser root node
) = @_;
}
sub searchRetrieve {
my ( $self, $c,
$sru_request, # ISA SRU::Request::SearchRetrieve
$sru_response, # ISA SRU::Response::SearchRetrieve
$cql, # ISA CQL::Parser root node
) = @_;
}
DESCRIPTION
This module allows your controller class to dispatch SRU actions ("explain", "scan", and "searchRetrieve") from its own class.
METHODS
index : Private
This method will create an SRU request, response and possibly a CQL object based on the type of SRU request it finds. It will then pass the
data over to your customized method.
SEE ALSO
o Catalyst
AUTHOR
Brian Cassidy <bricas@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2005-2009 by Brian Cassidy
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.4 2009-12-02 Catalyst::Controller::SRU(3pm)
Check Out this Related Man Page
SRU::Response::Term(3pm) User Contributed Perl Documentation SRU::Response::Term(3pm)NAME
SRU::Response::Term - A class for representing terms in a Scan response
SYNOPSIS DESCRIPTION
A SRU::Response::Term object bundles up information about a single term contained in a SRU::Response::Scan object. A scan object can
contain multiple term objects.
METHODS
new()
THe constructor which you must at least pass the value parameter:
my $term = SRU::Response::Term->new( term => "Foo Fighter" );
In addition you can pass the numberOfRecords, displayTerm, whereInList, and extraTermData parameters, or set them separately with their
accessors.
value()
The term exactly as it appears in the index. This term should be able to be sent in a query as is to retrieve the records it derives from.
numberOfRecords()
The number of records which would be matched if the index in the request's scanClause was searched with the term in the 'value' field.
displayTerm()
A string to display to the end user in place of the term itself. For example this might add back in stopwords which do not appear in the
index, or diacritics which have been normalised.
whereInList()
A flag to indicate the position of the term within the complete term list. It must be one of the following values: 'first' (the first
term), 'last' (the last term), 'only' (the only term) or 'inner' (any other term).
extraTermData()
Additional profile specific information. More details are available in the extensions section.
asXML()
perl v5.12.4 2009-11-20 SRU::Response::Term(3pm)
this is the mksys b script....
can anyone explain .. what # and 1 in if condition
this is the first line of the script... it is not from middle of the script....
if
then
echo "Not enough parameters, need a client name for mksysb"
Usage="Usage: $0 <client name>"
... (2 Replies)
Thanks to this forum I have managed to work out a solution to my problem and actually understand most of it, but one thing is confusing me and I am sure someone here can explain.
I need to insert a piece of txt into a file. This txt is
awk '{ sub(/$/,"\r"); print }' $JCL_WBB50103_EFTOUT >... (2 Replies)
Dear friends,
We are learning UNIX system programming as part of our course. I came across this simple program, which the teacher didn't explain well enough. could you please explain this program fully
#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
int main()
{
int pid;... (2 Replies)
Please explain why this works. Am unable to find another definition for the '%', which would explain this behaviour:
spaceLeft=`df -h /myPartition | tail -1`
# output looks like: /dev/sda5 10G 1.2G 12G 29% /
set -- $space
#this deletes the trailing '%' sign, which is... (6 Replies)
Hi,
I'm new to this and very much interested to learn unix.
Can any one explain me the symbols y we use this is scripting(~ and $).
It would be great if some one explain with the eg.
Thanks
Naveen A (2 Replies)
Hi
During a host review session I was told to check if the engineers have been updating Solaris 11 OS regularly by verifying the SRU version of the system.
However i was having no luck in finding the latest SRU version number in oracle website for hours. I wonder did anyone here know where i... (4 Replies)