Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

http::oai::listrecords(3pm) [debian man page]

HTTP::OAI::ListRecords(3pm)				User Contributed Perl Documentation			       HTTP::OAI::ListRecords(3pm)

NAME
HTTP::OAI::ListRecords - Provide access to an OAI ListRecords response SYNOPSIS
my $r = $h->ListRecords( metadataPrefix=>'oai_dc', ); while( my $rec = $r->next ) { print "Identifier => ", $rec->identifier, " "; } die $r->message if $r->is_error; # Using callback method sub callback { my $rec = shift; print "Identifier => ", $rec->identifier, " "; }; my $r = $h->ListRecords( metadataPrefix=>'oai_dc', onRecord=>&callback ); die $r->message if $r->is_error; METHODS
$lr = new HTTP::OAI::ListRecords This constructor method returns a new HTTP::OAI::ListRecords object. $rec = $lr->next Returns either an HTTP::OAI::Record object, or undef, if no more record are available. Use $rec->is_error to test whether there was an error getting the next record. @recl = $lr->record([$rec]) Returns the record list and optionally adds a new record or resumptionToken, $rec. Returns an array ref of HTTP::OAI::Records, including an optional resumptionToken string. $token = $lr->resumptionToken([$token]) Returns and optionally sets the HTTP::OAI::ResumptionToken. $dom = $lr->toDOM Returns a XML::DOM object representing the ListRecords response. perl v5.12.4 2011-06-23 HTTP::OAI::ListRecords(3pm)

Check Out this Related Man Page

HTTP::OAI::UserAgent(3pm)				User Contributed Perl Documentation				 HTTP::OAI::UserAgent(3pm)

NAME
HTTP::OAI::UserAgent - Extension of the LWP::UserAgent for OAI HTTP requests DESCRIPTION
This module provides a simplified mechanism for making requests to an OAI repository, using the existing LWP::UserAgent module. SYNOPSIS
require HTTP::OAI::UserAgent; my $ua = new HTTP::OAI::UserAgent; my $response = $ua->request( baseURL=>'http://arXiv.org/oai1', verb=>'ListRecords', from=>'2001-08-01', until=>'2001-08-31' ); print $response->content; METHODS
$ua = new HTTP::OAI::UserAgent(proxy=>'www-cache',...) This constructor method returns a new instance of a HTTP::OAI::UserAgent module. All arguments are passed to the LWP::UserAgent constructor. $r = $ua->request($req) Requests the HTTP response defined by $req, which is a HTTP::Request object. $r = $ua->request(baseURL=>$baseref, verb=>$verb, %opts) Makes an HTTP request to the given OAI server (baseURL) with OAI arguments. Returns an HTTP::Response object. OAI-PMH related options: from => $from until => $until resumptionToken => $token metadataPrefix => $mdp set => $set $str = $ua->url(baseURL=>$baseref, verb=>$verb, ...) Takes the same arguments as request, but returns the URL that would be requested. $time_d = $ua->delay( $time_d ) Return and optionally set a time (in seconds) to wait between requests. $time_d may be a CODEREF. perl v5.12.4 2011-06-23 HTTP::OAI::UserAgent(3pm)
Man Page

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Please help me decipher this header - I'm desperate!

I've got a really weird situation here.... the same IP address keeps popping up in porn spam that I have rec'd in 2 different email accts. It looks to me like it's coming from UC Davis, and I suspect someone there, so I am hoping you all can verify the same thing before I call the person on this... (0 Replies)
Discussion started by: christinef
0 Replies

2. UNIX for Dummies Questions & Answers

replacing all 4 first upper char of every rec to lowercase ?

I have a file where some records have been updated the wrong way and need to fix it quickly since the amount can be alot. Every record where any of the first 4 characters are in upper case need to be changed to lowercase. Records can have '#' in position-1 for comments. These musn't be... (2 Replies)
Discussion started by: Browser_ice
2 Replies

3. UNIX for Dummies Questions & Answers

How to label a specific file

Hi, All, I have a file, it looks like: "TEST/DR1/FELC0/SI1386.rec" 0 1513 !ENTER 1513 1513 2994 q 1481 2994 4440 iy 1446 4440 5080 v 640 5080 6266 ih 1186 6266 7436 n 1170 7436 10360 eh 2924 10360 12338 !EXIT 1978 "TEST/DR1/FELC0/SI138.rec" 0 2120 !ENTER 2120 2120 2725 q 605... (6 Replies)
Discussion started by: Jenny.palmy
6 Replies

4. Shell Programming and Scripting

Perl Script issue. What am I doing wrong?

#!/usr/local/bin/perl open (MYFILE, 'logs_report'); while (<MYFILE>) { $rec=$_; chomp ($rec); @arr=split(/ /,$rec); print $rec,"\n" if ($arr!~/OK/); open (MYF, '>data.txt'); print $rec,"\n" if ($arr!~/OK/); close (MYF); (14 Replies)
Discussion started by: SkySmart
14 Replies

5. Shell Programming and Scripting

How to add a particular column alone in a file

Hi I have file which contains 5 coulmns i need to add the fifth column value and put it in the desired location in the same column. Here is the sample file.. ashop0004 SQL- 06/14/2009 06/14/2009 00:04:28 SUM ashop0004 SQL- 06/14/2009 06/14/2009 00:00:37 ... (22 Replies)
Discussion started by: cutechaps
22 Replies

6. UNIX for Dummies Questions & Answers

Perl Experts - Need your help

Hi All, I am using ingres in perl select count(*) rec from user_tables where table_name = 'abc'; I want to use the alias variable 'rec' and check the value if >0 insert values else create table. How can I do this without using hash variables in perl. Kindly help me in this regard. Much... (1 Reply)
Discussion started by: karthickrn
1 Replies

7. UNIX for Advanced & Expert Users

"while read ..." loop exiting after reading only one record

Greeting, The following script completes after reading only one record from the input file that contains many records. I commented out the "ssh" and get what I expect, an echo of all the records in the input.txt file. Is ssh killing the file handle? On the box "uname -a" gives "SunOS... (2 Replies)
Discussion started by: twk
2 Replies

8. Shell Programming and Scripting

Reducing file lines in awk

Hi, Here i have to check first record $3 $4 with second record $1 $2 respectively. If match found, then check first record $2 == second record $4 , if it equals , then reduce two records to single record like as desired output. Input_file 1 1 2 1 2 1 3 1 3 1 4 1 3 1 3 2 desired... (3 Replies)
Discussion started by: vasanth.vadalur
3 Replies

9. Shell Programming and Scripting

Print record count of a file using shell script

HI, I need to print the record count of a file using shell script. If the record count of a file excluding header and trailer record if greater than zero then print 'Record count of a file is xxxx records'. If the record count is zero print 'zero records' Thanks Mahendra (1 Reply)
Discussion started by: mmeda
1 Replies