line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catmandu::Store::RKD; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.04'; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
241773
|
use Catmandu::Sane; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
12
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
362
|
use Moo; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
11
|
|
8
|
2
|
|
|
2
|
|
1139
|
use Catmandu::Store::RKD::Bag; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
with 'Catmandu::Store'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
1; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
__END__ |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 NAME |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=for html <a href="https://travis-ci.org/PACKED-vzw/Catmandu-Store-RKD"><img src="https://travis-ci.org/PACKED-vzw/Catmandu-Store-RKD.svg?branch=master"></a> |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
Catmandu::Store::RKD - Retrieve items from the RKD |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 SYNOPSIS |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
This module contains two submodules; a L<fix|Catmandu::Fix::rkd_name> to lookup a name in |
25
|
|
|
|
|
|
|
L<RKD|https://rkd.nl/nl/collecties/overige-databases/open-search-rkdartists>, and a L<store|Catmandu::Store::RKD> to |
26
|
|
|
|
|
|
|
lookup an artist id (I<kunstenaarsnummer>) in the RKD database. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 DESCRIPTION |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head2 L<Catmandu::Fix::rkd_name> |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
The fix takes a name (first name, last name or a combination) and performs a lookup to the RKD artists database. It |
33
|
|
|
|
|
|
|
returns an array of results. Every result is of the form: |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
{ |
36
|
|
|
|
|
|
|
'title' => 'Name of the person', |
37
|
|
|
|
|
|
|
'description' => 'Short description, as provided by RKD', |
38
|
|
|
|
|
|
|
'artist_link' => 'Link to the artist using the artist id', |
39
|
|
|
|
|
|
|
'guid' => 'Permalink to the record' |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
For some names, it can/will return multiple possibilities. You must determine yourself which one is the 'correct' one. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head2 L<Catmandu::Store::RKD> |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
The store takes an artist id (I<kunstenaarsnummer>) and performs a lookup to the RKD artists database. It |
47
|
|
|
|
|
|
|
returns an array containing either one or no results. Every result is of the form: |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
{ |
50
|
|
|
|
|
|
|
'title' => 'Name of the person', |
51
|
|
|
|
|
|
|
'description' => 'Short description, as provided by RKD', |
52
|
|
|
|
|
|
|
'artist_link' => 'Link to the artist using the artist id', |
53
|
|
|
|
|
|
|
'guid' => 'Permalink to the record' |
54
|
|
|
|
|
|
|
} |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 SEE ALSO |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
L<Catmandu> |
59
|
|
|
|
|
|
|
L<Catmandu::Fix::rkd_name> |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 AUTHORS |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Pieter De Praetere, C<< pieter at packed.be >> |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 CONTRIBUTORS |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Pieter De Praetere, C<< pieter at packed.be >> |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This package is copyright (c) 2016 by PACKED vzw. |
72
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=cut |