line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catmandu::Fix::orcid_works; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.14'; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
93257
|
use Catmandu::Sane; |
|
1
|
|
|
|
|
151504
|
|
|
1
|
|
|
|
|
7
|
|
6
|
1
|
|
|
1
|
|
270
|
use Moo; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
7
|
1
|
|
|
1
|
|
709
|
use WWW::ORCID; |
|
1
|
|
|
|
|
3482
|
|
|
1
|
|
|
|
|
27
|
|
8
|
1
|
|
|
1
|
|
363
|
use Catmandu::Fix::Has; |
|
1
|
|
|
|
|
761
|
|
|
1
|
|
|
|
|
6
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has path => (fix_arg => 1); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
with 'Catmandu::Fix::SimpleGetValue'; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub emit_value { |
15
|
0
|
|
|
0
|
0
|
|
my ($self, $var) = @_; |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
"${var} = WWW::ORCID::API::Pub->new->get_works(${var}) if is_string(${var}) && length(${var});"; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 NAME |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Catmandu::Fix::orcid_profile - find ORCID works for an identifier |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 SYNOPSIS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# Find an ORCID bio for an identifier |
27
|
|
|
|
|
|
|
# orcid: '0000-0001-8390-6171' |
28
|
|
|
|
|
|
|
orcid_works(orcid) |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 SEE ALSO |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
L<Catmandu::Fix>, |
33
|
|
|
|
|
|
|
L<WWW::ORCID> |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |