HTTP::OAI::Identify(3pm) User Contributed Perl Documentation HTTP::OAI::Identify(3pm)NAME
HTTP::OAI::Identify - Provide access to an OAI Identify response
SYNOPSIS
use HTTP::OAI::Identify;
my $i = new HTTP::OAI::Identify(
adminEmail=>'billg@microsoft.com',
baseURL=>'http://www.myarchives.org/oai',
repositoryName=>'www.myarchives.org'
);
for( $i->adminEmail ) {
print $_, "
";
}
METHODS
$i = new HTTP::OAI::Identify(-baseURL=>'http://arXiv.org/oai1'[, adminEmail=>$email, protocolVersion=>'2.0', repositoryName=>'myarchive'])
This constructor method returns a new instance of the OAI::Identify module.
$i->version
Return the original version of the OAI response, according to the given XML namespace.
$i->headers
Returns an HTTP::OAI::Headers object. Use $headers->header('headername') to retrive field values.
$burl = $i->baseURL([$burl])
$eds = $i->earliestDatestamp([$eds])
$gran = $i->granularity([$gran])
$version = $i->protocolVersion($version)
$name = $i->repositoryName($name)
Returns and optionally sets the relevent header. NOTE: protocolVersion will always be '2.0'. Use $i->version to find out the protocol
version used by the repository.
@addys = $i->adminEmail([$email])
@cmps = $i->compression([$cmp])
Returns and optionally adds to the multi-value headers.
@dl = $i->description([$d])
Returns the description list and optionally appends a new description $d. Returns an array ref of HTTP::OAI::Descriptions, or an empty
ref if there are no description.
$d = $i->next
Returns the next description or undef if no more description left.
$dom = $i->toDOM
Returns a XML::DOM object representing the Identify response.
perl v5.12.4 2011-06-23 HTTP::OAI::Identify(3pm)
Check Out this Related Man Page
HTTP::OAI::ListIdentifiers(3pm) User Contributed Perl Documentation HTTP::OAI::ListIdentifiers(3pm)NAME
HTTP::OAI::ListIdentifiers - Provide access to an OAI ListIdentifiers response
SYNOPSIS
my $r = $h->ListIdentifiers;
while(my $rec = $r->next) {
print "identifier => ", $rec->identifier, "
",
print "datestamp => ", $rec->datestamp, "
" if $rec->datestamp;
print "status => ", ($rec->status || 'undef'), "
";
}
die $r->message if $r->is_error;
METHODS
$li = new OAI::ListIdentifiers
This constructor method returns a new OAI::ListIdentifiers object.
$rec = $li->next
Returns either an HTTP::OAI::Header object, or undef, if there are no more records. Use $rec->is_error to test whether there was an
error getting the next record (otherwise things will break).
If -resume was set to false in the Harvest Agent, next may return a string (the resumptionToken).
@il = $li->identifier([$idobj])
Returns the identifier list and optionally adds an identifier or resumptionToken, $idobj. Returns an array ref of HTTP::OAI::Headers.
$dom = $li->toDOM
Returns a XML::DOM object representing the ListIdentifiers response.
$token = $li->resumptionToken([$token])
Returns and optionally sets the HTTP::OAI::ResumptionToken.
perl v5.12.4 2007-06-28 HTTP::OAI::ListIdentifiers(3pm)
Hi,
I haven't done this for awhile, and further, I've never done it in perl so I appreciate any help you can give me.
I have a file of lines, each with 5 data points that look like this:
AB,N,ALLIANCEBERNSTEIN HLDNG L.P,AB,N
ALD,N,ALLIED CAPITAL CORPORATION,ALD,N
AFC,N,ALLIED CAPITAL... (4 Replies)
Dear Members,
I have a file which contains ControlM characters in it.
I need a command by the means of which i should be able to identify if a file has controlM characters.
How can this be achieved.
Thanks
Sandeep (4 Replies)
SOS Guys...
Is there any way to determine the user attributes, mainly if that userid is set as never expire?
I do not have admin rights, and I'm working on AIX 5.3
I've tried :
lsuser -f <username>
but no luck on that (2 Replies)
Hi,
I tried to find out the users under the file /etc/shadow , where the value should be 90, which shouldn't be less or more than that.. if its more or less, it should give me the output as BAD.
{
print (GOOD);
}
Else
{
print (BAD);
} (10 Replies)
Hypertext Transfer Protocol -- HTTP/1.1 for Reference - HTTP Headers
10 Status Code Definitions
Each Status-Code is described below, including a description of which method(s) it can follow and any metainformation required in the response. (1 Reply)
Hello,
My script has a trailer record(TR).
Now I need to implement a logic, if TR is missed on the file it should generate me an email stating TR was not on the file..
Kindly help. (15 Replies)
I am on linux and I am supposed to receive 3 files. If any of the files are not received I need to identify the missing file and throw it out in a variable.
I have put in something like this
if ]
then echo "file $file1 was found"
else
echo "ERROR: file $file1 was not found!!!"... (8 Replies)