blib/lib/Keystone/Resolver/plugins/Service/Elsevier.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
uri
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # $Id: Elsevier.pm,v 1.2 2007-01-26 13:53:48 mike Exp $
2  
3 package Keystone::Resolver::plugins::Service::Elsevier;
4  
5 use strict;
6 use warnings;
7 use Keystone::ContentURL::Elsevier;
8  
9  
10 ### Should these parameters be held in the database?
11 my $_handle = new Keystone::ContentURL::Elsevier("KEYSTONE", 1,
12 ".0iVzmAd)cPGS)nHoL(lE1uw)4xEy9z+");
13  
14  
15 sub uri {
16 my $class = shift();
17 my($openurl) = @_;
18  
19 ### We might be able to extract this from an rft_id
20 my $pii = undef;
21  
22 my(@metadata) = map { $openurl->rft($_) } qw(issn volume issue
23 spage epage auinit1
24 aulast date);
25  
26 $metadata[5] ||= $openurl->rft("auinit");
27 return $_handle->url($pii, @metadata);
28 }
29  
30  
31 1;