line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MARC::Convert::Wikidata::Item::Periodical; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
115373
|
use base qw(MARC::Convert::Wikidata::Item); |
|
5
|
|
|
|
|
26
|
|
|
5
|
|
|
|
|
1410
|
|
4
|
5
|
|
|
5
|
|
32
|
use strict; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
103
|
|
5
|
5
|
|
|
5
|
|
23
|
use warnings; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
149
|
|
6
|
|
|
|
|
|
|
|
7
|
5
|
|
|
5
|
|
26
|
use Unicode::UTF8 qw(decode_utf8); |
|
5
|
|
|
|
|
36
|
|
|
5
|
|
|
|
|
220
|
|
8
|
5
|
|
|
5
|
|
1062
|
use Wikibase::Datatype::Item; |
|
5
|
|
|
|
|
2845
|
|
|
5
|
|
|
|
|
161
|
|
9
|
5
|
|
|
5
|
|
62
|
use Wikibase::Datatype::Snak; |
|
5
|
|
|
|
|
24
|
|
|
5
|
|
|
|
|
117
|
|
10
|
5
|
|
|
5
|
|
61
|
use Wikibase::Datatype::Statement; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
121
|
|
11
|
5
|
|
|
5
|
|
25
|
use Wikibase::Datatype::Value::Item; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
1367
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our $VERSION = 0.01; |
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: book series |
23
|
|
|
|
|
|
|
Wikibase::Datatype::Statement->new( |
24
|
|
|
|
|
|
|
'snak' => Wikibase::Datatype::Snak->new( |
25
|
|
|
|
|
|
|
'datatype' => 'wikibase-item', |
26
|
|
|
|
|
|
|
'datavalue' => Wikibase::Datatype::Value::Item->new( |
27
|
|
|
|
|
|
|
'value' => 'Q1002697', |
28
|
|
|
|
|
|
|
), |
29
|
|
|
|
|
|
|
'property' => 'P31', |
30
|
|
|
|
|
|
|
), |
31
|
|
|
|
|
|
|
), |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
# TODO |
34
|
|
|
|
|
|
|
$self->wikidata_authors, |
35
|
|
|
|
|
|
|
$self->wikidata_authors_of_introduction, |
36
|
|
|
|
|
|
|
$self->wikidata_ccnb, |
37
|
|
|
|
|
|
|
$self->wikidata_compilers, |
38
|
|
|
|
|
|
|
$self->wikidata_dml, |
39
|
|
|
|
|
|
|
$self->wikidata_edition_number, |
40
|
|
|
|
|
|
|
$self->wikidata_editors, |
41
|
|
|
|
|
|
|
$self->wikidata_end_time, |
42
|
|
|
|
|
|
|
$self->wikidata_illustrators, |
43
|
|
|
|
|
|
|
$self->wikidata_issn, |
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_start_time, |
53
|
|
|
|
|
|
|
$self->wikidata_subtitles, |
54
|
|
|
|
|
|
|
$self->wikidata_title, |
55
|
|
|
|
|
|
|
$self->wikidata_translators, |
56
|
|
|
|
|
|
|
], |
57
|
|
|
|
|
|
|
); |
58
|
|
|
|
|
|
|
|
59
|
0
|
|
|
|
|
|
return $wikidata; |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
sub _description { |
63
|
0
|
|
|
0
|
|
|
my ($self, $lang) = @_; |
64
|
|
|
|
|
|
|
|
65
|
0
|
|
|
|
|
|
my $ret; |
66
|
0
|
0
|
|
|
|
|
if ($lang eq 'cs') { |
|
|
0
|
|
|
|
|
|
67
|
0
|
|
|
|
|
|
$ret = decode_utf8('české periodikum'); |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
} elsif ($lang eq 'en') { |
70
|
0
|
|
|
|
|
|
$ret = 'Czech periodical'; |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
|
73
|
0
|
|
|
|
|
|
return $ret; |
74
|
|
|
|
|
|
|
} |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
1; |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
__END__ |