File: parse_reference.pl

package info (click to toggle)
libbiblio-citation-parser-perl 1.10%2Bdfsg-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 660 kB
  • sloc: perl: 3,793; sh: 51; makefile: 2
file content (15 lines) | stat: -rwxr-xr-x 535 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl -w
use SOAP::Lite;
use Data::Dumper;
my $query = "Jewell, M (2002) Making Examples for Reference Parsers. Journal of Example Writing 3:100-150.";
my $baseurl = "http://paracite.eprints.org/cgi-bin/openurl.cgi?";

my $result = SOAP::Lite
        -> service("http://paracite.eprints.org/paracite.wsdl")
        -> doReferenceParse($query, $baseurl);
my $metadata = $result->{metadata};
my $openurl = $result->{openURL};
print "Metadata for $query:\n";
print Dumper($metadata);
print "OpenURL:\n";
print Dumper($openurl);