line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MARC::Convert::Wikidata::Item::AudioBook; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
115485
|
use base qw(MARC::Convert::Wikidata::Item); |
|
5
|
|
|
|
|
19
|
|
|
5
|
|
|
|
|
2598
|
|
4
|
5
|
|
|
5
|
|
38
|
use strict; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
102
|
|
5
|
5
|
|
|
5
|
|
26
|
use warnings; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
142
|
|
6
|
|
|
|
|
|
|
|
7
|
5
|
|
|
5
|
|
29
|
use Unicode::UTF8 qw(decode_utf8); |
|
5
|
|
|
|
|
23
|
|
|
5
|
|
|
|
|
223
|
|
8
|
5
|
|
|
5
|
|
2666
|
use Wikibase::Datatype::Item; |
|
5
|
|
|
|
|
7439
|
|
|
5
|
|
|
|
|
177
|
|
9
|
5
|
|
|
5
|
|
43
|
use Wikibase::Datatype::Snak; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
124
|
|
10
|
5
|
|
|
5
|
|
30
|
use Wikibase::Datatype::Statement; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
111
|
|
11
|
5
|
|
|
5
|
|
26
|
use Wikibase::Datatype::Value::Item; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
1665
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our $VERSION = 0.02; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub wikidata { |
16
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
my $wikidata = Wikibase::Datatype::Item->new( |
19
|
|
|
|
|
|
|
$self->wikidata_labels, |
20
|
|
|
|
|
|
|
$self->wikidata_descriptions, |
21
|
|
|
|
|
|
|
'statements' => [ |
22
|
|
|
|
|
|
|
# instance of: version, edition, or translation |
23
|
|
|
|
|
|
|
Wikibase::Datatype::Statement->new( |
24
|
|
|
|
|
|
|
'snak' => Wikibase::Datatype::Snak->new( |
25
|
|
|
|
|
|
|
'datatype' => 'wikibase-item', |
26
|
|
|
|
|
|
|
'datavalue' => Wikibase::Datatype::Value::Item->new( |
27
|
|
|
|
|
|
|
'value' => 'Q3331189', |
28
|
|
|
|
|
|
|
), |
29
|
|
|
|
|
|
|
'property' => 'P31', |
30
|
|
|
|
|
|
|
), |
31
|
|
|
|
|
|
|
), |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
$self->wikidata_authors, |
34
|
|
|
|
|
|
|
$self->wikidata_authors_of_introduction, |
35
|
|
|
|
|
|
|
$self->wikidata_ccnb, |
36
|
|
|
|
|
|
|
$self->wikidata_compilers, |
37
|
|
|
|
|
|
|
$self->wikidata_directors, |
38
|
|
|
|
|
|
|
$self->wikidata_dml, |
39
|
|
|
|
|
|
|
$self->wikidata_edition_number, |
40
|
|
|
|
|
|
|
$self->wikidata_editors, |
41
|
|
|
|
|
|
|
$self->wikidata_narrators, |
42
|
|
|
|
|
|
|
$self->wikidata_isbn_10, |
43
|
|
|
|
|
|
|
$self->wikidata_isbn_13, |
44
|
|
|
|
|
|
|
$self->wikidata_krameriuses, |
45
|
|
|
|
|
|
|
$self->wikidata_language, |
46
|
|
|
|
|
|
|
$self->wikidata_number_of_pages, |
47
|
|
|
|
|
|
|
$self->wikidata_oclc, |
48
|
|
|
|
|
|
|
$self->wikidata_place_of_publication, |
49
|
|
|
|
|
|
|
$self->wikidata_publication_date, |
50
|
|
|
|
|
|
|
$self->wikidata_publishers, |
51
|
|
|
|
|
|
|
$self->wikidata_series, |
52
|
|
|
|
|
|
|
$self->wikidata_subtitles, |
53
|
|
|
|
|
|
|
$self->wikidata_title, |
54
|
|
|
|
|
|
|
$self->wikidata_translators, |
55
|
|
|
|
|
|
|
], |
56
|
|
|
|
|
|
|
); |
57
|
|
|
|
|
|
|
|
58
|
0
|
|
|
|
|
|
return $wikidata; |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
sub _description { |
62
|
0
|
|
|
0
|
|
|
my ($self, $lang) = @_; |
63
|
|
|
|
|
|
|
|
64
|
0
|
|
|
|
|
|
my $ret; |
65
|
0
|
0
|
|
|
|
|
if ($lang eq 'cs') { |
|
|
0
|
|
|
|
|
|
66
|
0
|
|
|
|
|
|
$ret = decode_utf8('české vydání audioknihy'); |
67
|
0
|
0
|
|
|
|
|
if (defined $self->{'transform_object'}->publication_date) { |
68
|
0
|
|
|
|
|
|
$ret .= ' z roku '.$self->{'transform_object'}->publication_date; |
69
|
|
|
|
|
|
|
} |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
} elsif ($lang eq 'en') { |
72
|
0
|
0
|
|
|
|
|
if (defined $self->{'transform_object'}->publication_date) { |
73
|
0
|
|
|
|
|
|
$ret = $self->{'transform_object'}->publication_date.' '; |
74
|
|
|
|
|
|
|
} |
75
|
0
|
|
|
|
|
|
$ret .= 'Czech audiobook edition'; |
76
|
|
|
|
|
|
|
} |
77
|
|
|
|
|
|
|
|
78
|
0
|
|
|
|
|
|
return $ret; |
79
|
|
|
|
|
|
|
} |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
1; |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
__END__ |