Coder Social home page Coder Social logo

perl-oai-lib's People

Contributors

gregoa avatar manwar avatar nichtich avatar nics avatar phochste avatar stain avatar stephent-stratdat avatar timbrody avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

perl-oai-lib's Issues

Module HTTP::OAI::Harvester broken on OpenBSD

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.

Test t/getrecord.t fails

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?

Empty response on ListIdentifiers with callbacks

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).

xslt stylesheet support removed?

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.