« blib/lib/Keystone/Resolver/plugins/ID/mailto.pm
↑ Summary
blib/lib/Keystone/Resolver/plugins/Service/Gale.pm »
| 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; |