blib/lib/Keystone/Resolver/plugins/ID/info/oclcnum.pm untested

filter: Statementstmt 0.0% 0 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
data
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # $Id: oclcnum.pm,v 1.1 2007-06-20 13:03:58 mike Exp $
2  
3 package Keystone::Resolver::plugins::ID::info::oclcnum;
4  
5 use strict;
6 use warnings;
7  
8  
9 sub data {
10 my $class = shift();
11 my($openurl, $oclcnum) = @_;
12  
13 # We probably don't want to resolve an OCLC identifier to a
14 # reference into OCLC. We could look the identifier up in an OCLC
15 # database if we could find a nice remote API, but we're only
16 # likely to find OCLC IDs in OpenURLs generated by OCLC
17 # applications, in which case the application presumably already
18 # has access to the OCLC data and has given us all of it that it
19 # thinks we need. So there seems to be nothing useful to do here.
20  
21 return (undef, undef, undef, "Resolution of OCLC IDs is unsupported", 1);
22 }
23  
24  
25 1;
26