timbrody / perl-oai-lib Goto Github PK
View Code? Open in Web Editor NEWHTTP::OAI
License: Other
HTTP::OAI
License: Other
Platform: OpenBSD 53
Perl: v5.12.2
I'm trying to execute this script:
#!/usr/bin/env perl
use HTTP::OAI::Harvester;
my $url = 'http://search.ugent.be/meercat/x/oai';
my $x = HTTP::OAI::Harvester->new(baseURL => $url);
And get:
String found where operator expected at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 221, near "Carp::confess "Internal error - bad bytes but not in 0x80-0xff range???""
(Do you need to predeclare Carp::confess?)
String found where operator expected at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 241, near "Carp::confess "Requires verb parameter""
(Do you need to predeclare Carp::confess?)
syntax error at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 221, near "Carp::confess "Internal error - bad bytes but not in 0x80-0xff range???""
syntax error at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 241, near "Carp::confess "Requires verb parameter""
Global symbol "$self" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 243.
Global symbol "%args" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 246.
Global symbol "%args" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 246.
Global symbol "%args" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 247.
Global symbol "%args" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 247.
Global symbol "%args" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 249.
Global symbol "%args" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 251.
Global symbol "%args" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 251.
syntax error at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 255, near "}"
/usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm has too many errors.
Compilation failed in require at (eval 2) line 2.
...propagated at /usr/libdata/perl5/base.pm line 94.
BEGIN failed--compilation aborted at /usr/local/libdata/perl5/site_perl/HTTP/OAI/Harvester.pm line 3.
Compilation failed in require at test.pl line 3.
BEGIN failed--compilation aborted at test.pl line 3.
On
Platform: OSX 10.9.3
Perl: 5.18.2
I get using the same script this response:
an't locate object method "new" via package "HTTP::OAI::Identify" (perhaps you forgot to load "HTTP::OAI::Identify"?) at /Users/hochsten/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/HTTP/OAI/Harvester.pm line 21.
When running this specific test:
prove -v -l blib t/getrecord.t
The last test fails:
Can't call method "start_element" on an undefined value at /home/tamil/util/perl-oai-lib/lib/HTTP/OAI/Verb.pm line 53.
Are you working on a solution? Is there anything I can do?
No option 'set' at https://metacpan.org/source/TIMBRODY/HTTP-OAI-4.03/bin/oai_pmh.pl#L78
ListIdentifers using onRecord callback doesn't seem to work on OpenBSD5.3 perl 5.12:
#!/usr/bin/env perl
use HTTP::OAI::Harvester;
use Data::Dumper;
my $url = 'http://search.ugent.be/meercat/x/oai';
my $x = HTTP::OAI::Harvester->new(baseURL => $url, resume => 0);
$x->ListIdentifiers(metadataPrefix => oai_dc , onRecord => sub {
my $record = shift;
print Dumper($record);
});
Gives an empty response (ListRecords works).
Hi, is there a reason for ->xslt to get removed from the api? Before the changes we were able to do $response->xslt = 'path_to_xslt'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.