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)
Check Out this Related Man Page
SRU::Response::Record(3pm) User Contributed Perl Documentation SRU::Response::Record(3pm)NAME
SRU::Response::Record - A class for representing a result record in a searchRetrieve response.
SYNOPSIS
my $record = SRU::Response::Record->new();
$record->recordData( '<title>Huck Finn</title>' );
$response->addRecord( $record );
DESCRIPTION
SRU::Response::Record is used to bundle up the information about a particular metadata record in a SRU::Response::SearchRetrieve object.
Typically you'll construct a record object and add it to the SearchRetrieve response.
METHODS
new()
You must supply the recordSchema and recordData parameters. recordPacking, recordPosition, and extraRecordData may also be supplied.
my $record = SRU::Response::Record->new(
recordSchema => 'info:srw/schema/1/dc-v1.1',
recordData => '<title>Huckleberry Finn</title>'
);
recordSchema()
The URI identifier of the XML schema in which the record is encoded. Although the request may use the server's assigned short name, the
response must always be the full URI.
recordData()
The record itself, either as a string or embedded XML. If would like to pass an object in here you may do so as long as it imlements the
asXML() method.
recordPacking()
The packing used in recordData, as requested by the client or the default: "XML".
recordPosition()
The position of the record within the result set. If you don't pass this in recordPosition will be automaticlly calculated for you when add
or retrieve a record from a SRU::Response::SearchRetrieve object.
extraRecordData()
Any extra data associated with the record. See the section on extensions for more information.
asXML()
perl v5.12.4 2009-11-20 SRU::Response::Record(3pm)
Hi Everyone,
I need some information from all of you guys.
I generally work on a Solaris OS in my school and I had heard that I can download something called X-Term on a Windows system and still work on some of the graphical things on windows which generally work only on unix.
This is what I... (5 Replies)
hi floks !
i'd like to know how can i transmete a character or a string from my source code to a term and make it interpret or un by the shell wich is running in my term.
I'd like to create a Term from my code (and get its file descriptor) and then transmete each char typed on the keyboard to... (1 Reply)
Hi there,
First, some specs: my system is running Sun OS 5.9, my preferred shell is BASH, and I generally connect using either Tera Term Pro (on Windows) or Niftytelnet (on Mac). I log in from many different computers throughout the day and would like to have my favorite background / text color... (2 Replies)
Discussion started by: blueman343
2 Replies
4. Post Here to Contact Site Administrators and Moderators
Just a suggestion, but it might help to pare down the number of threads that have little "added value" if the Moderators were to delete these posts rather than simply "close" them. Case in point, this thread was started by someone who asked for a homework solution. The poster received a reply... (2 Replies)
Hi All,
I have an input_file below and i would like to use Perl to search for the term "aaa" and output the 3rd term in the same row as "aaa".For Example, i want to search for the term "ddd" and would want the code to ouput the 3rd term in the same row which is "fff". Can somebody help ?
... (28 Replies)
Hi All,
I have an input below.
I would want to print the 2nd to 5th term leaving the same number of spaces in between each term to be intact.
Here in the example, there are 4 spacings between term " ABC " and " 111 ", and i tried the below awk codes but they don;t work. Can anybody give me... (3 Replies)
Hi,
Under my parent diectory I have directory named "Response" in many of its subfolders. I am interested to see all files with extention .pro in Response Directory. I am giving following command -
find . -name "Response" -type d | xargs -i ls -lrt {}/*.pro
but it is not giving result.
... (3 Replies)
So I'm racking my brain on appropriate ways to solve a problem that once fixed, will solve every problem in my life. Its very easy (for you guys and gals) I'm sure, but I can't seem to wrap my mind around the right approach. I really want to use bash to do this, but I can't grasp how I'm going to... (14 Replies)
Hi all,
I try to use sed to find something specific in a file (test.h), find the same specific term in another file (test.xml) read an attribute of it, and replace the begining of the specific term in the test.h.
Well.... an example will be beter :)
test.h
typedef... (4 Replies)
Telnet into Solairs10 with Tera term. Go to sub /opt/VirtualBox and type
# VirtualBox
Failed to open the X11 display!
How do I open X11 display? (17 Replies)
Currently we are having solaris 11.1 SRU 11.1.21.4.1 installed on server. We need to upgrade it to solaris 11.2 SRU 11.2.9.5.0
Is it possible to upgrade to SRU 11.2.9.50 directly by downloading repo files or do I need to upgrade to 11.2 first and then upgrade to SRU 11.2.9.5.0? (1 Reply)
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)