elibri_onix_dict 0.0.68 → 0.0.71
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elibri_onix_dict/onix_3_0/serialized/EpubLicenseExpressionType.yml +8 -0
- data/lib/elibri_onix_dict/onix_3_0/serialized/NameIdentifier.yml +8 -0
- data/lib/elibri_onix_dict/onix_3_0/serialized/OtherTextType.yml +14 -0
- data/lib/elibri_onix_dict/onix_3_0/serialized/ProductFormCode.yml +1 -1
- data/lib/elibri_onix_dict/onix_3_0/serialized/ProductIDType.yml +6 -0
- data/lib/elibri_onix_dict/onix_3_0/serialized/SubjectSchemeIdentifier.yml +8 -0
- data/lib/elibri_onix_dict/onix_3_0/serialized/SupplierRole.yml +8 -0
- data/lib/elibri_onix_dict/onix_3_0/serialized/UnpricedItemType.yml +8 -0
- data/lib/elibri_onix_dict/onix_3_0/serialized/WebsiteRole.yml +16 -0
- data/lib/elibri_onix_dict/version.rb +1 -1
- data/test/elibri_onix_dict_release_3_0_test.rb +6 -2
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da1f4087d9d6bbaddab84bcca8a143702f8ac46499836cf35c3ee56c4dec19b6
|
4
|
+
data.tar.gz: d7eb6ebb0df22600ba32b26abb264d960365f39c9a305bf10736b471187ec7dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b80387388f70e013b69f1b2ea39da0694ccbb0c76152fb310baa452b83b88518535b20a608f6677b7edc57d2fb970cc7eee9283698e038730436688cfb715ec
|
7
|
+
data.tar.gz: 7550314f8c0ee296bbfbe60559df228f7df8b6ff1a04752c4f484e89641a50c84681d4872cd22670f0f997c3b573f542b63df99845b1d84cf60bfca7721ce692
|
@@ -43,3 +43,17 @@
|
|
43
43
|
en: short collection description
|
44
44
|
pl: krótki opis cyklu (max. 350 znaków)
|
45
45
|
|
46
|
+
- !ruby/object:Elibri::ONIX::Dict::Release_3_0::OtherTextType
|
47
|
+
onix_code: '20'
|
48
|
+
const_name: OPEN_ACCESS_STATEMENT
|
49
|
+
name:
|
50
|
+
en: open access statement
|
51
|
+
pl: deklaracja open access
|
52
|
+
|
53
|
+
- !ruby/object:Elibri::ONIX::Dict::Release_3_0::OtherTextType
|
54
|
+
onix_code: '32'
|
55
|
+
const_name: LIST_OF_CONTENTS
|
56
|
+
name:
|
57
|
+
en: list of contents
|
58
|
+
pl: zawartość pudełka
|
59
|
+
|
@@ -1,5 +1,13 @@
|
|
1
1
|
|
2
2
|
---
|
3
|
+
- !ruby/object:Elibri::ONIX::Dict::Release_3_0::SubjectSchemeIdentifier
|
4
|
+
onix_code: '20'
|
5
|
+
const_name: KEYWORDS
|
6
|
+
name:
|
7
|
+
en: keywords
|
8
|
+
pl: słowa kluczowe
|
9
|
+
|
10
|
+
|
3
11
|
- !ruby/object:Elibri::ONIX::Dict::Release_3_0::SubjectSchemeIdentifier
|
4
12
|
onix_code: '24'
|
5
13
|
const_name: PROPRIETARY
|
@@ -24,3 +24,11 @@
|
|
24
24
|
name:
|
25
25
|
en: Wholesaler
|
26
26
|
pl: hurtownia książek
|
27
|
+
|
28
|
+
- !ruby/object:Elibri::ONIX::Dict::Release_3_0::SupplierRole
|
29
|
+
onix_code: '11'
|
30
|
+
const_name: RETAIL_NON_EXL_DIST
|
31
|
+
name:
|
32
|
+
en: Non-exclusive distributor to end-customers
|
33
|
+
pl: Dystrybutor do klientów końcowych
|
34
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
---
|
3
|
+
- !ruby/object:Elibri::ONIX::Dict::Release_3_0::WebsiteRole
|
4
|
+
onix_code: '01'
|
5
|
+
const_name: PUBLISHER_WEBPAGE
|
6
|
+
name:
|
7
|
+
en: publisher's webpage
|
8
|
+
pl: strona www wydawnictwa
|
9
|
+
|
10
|
+
- !ruby/object:Elibri::ONIX::Dict::Release_3_0::WebsiteRole
|
11
|
+
onix_code: '29'
|
12
|
+
const_name: FULL_CONTENT_LINK
|
13
|
+
name:
|
14
|
+
en: full content link
|
15
|
+
pl: link do pełnej treści książki
|
16
|
+
|
@@ -6,8 +6,8 @@ require 'helper'
|
|
6
6
|
describe Elibri::ONIX::Dict::Release_3_0 do
|
7
7
|
|
8
8
|
it "should be able to build classes on the fly from .yml files" do
|
9
|
-
assert_equal
|
10
|
-
assert_equal
|
9
|
+
assert_equal 19, Elibri::ONIX::Dict::Release_3_0::ProductFormCode::ALL.size
|
10
|
+
assert_equal 17, Elibri::ONIX::Dict::Release_3_0::ProductFormCode.all_except('BA', 'EA').size
|
11
11
|
assert_equal 'BA', Elibri::ONIX::Dict::Release_3_0::ProductFormCode::BOOK
|
12
12
|
assert_equal '02', Elibri::ONIX::Dict::Release_3_0::EpubUsageStatus::LIMITED
|
13
13
|
assert_equal '01', Elibri::ONIX::Dict::Release_3_0::EpubUsageType::PREVIEW
|
@@ -25,6 +25,10 @@ describe Elibri::ONIX::Dict::Release_3_0 do
|
|
25
25
|
assert !form.digital
|
26
26
|
assert !form.digital?
|
27
27
|
|
28
|
+
form = Elibri::ONIX::Dict::Release_3_0::ProductFormCode.find_by_onix_code('OPEN_ACCESS')
|
29
|
+
|
30
|
+
assert !form.digital?
|
31
|
+
|
28
32
|
assert_raises NoMethodError do
|
29
33
|
form.physical
|
30
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elibri_onix_dict
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.71
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcin Urbanski
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- lib/elibri_onix_dict/onix_3_0/serialized/ContributorRole.yml
|
109
109
|
- lib/elibri_onix_dict/onix_3_0/serialized/DateFormat.yml
|
110
110
|
- lib/elibri_onix_dict/onix_3_0/serialized/EditionType.yml
|
111
|
+
- lib/elibri_onix_dict/onix_3_0/serialized/EpubLicenseExpressionType.yml
|
111
112
|
- lib/elibri_onix_dict/onix_3_0/serialized/EpubTechnicalProtection.yml
|
112
113
|
- lib/elibri_onix_dict/onix_3_0/serialized/EpubUsageStatus.yml
|
113
114
|
- lib/elibri_onix_dict/onix_3_0/serialized/EpubUsageType.yml
|
@@ -117,6 +118,7 @@ files:
|
|
117
118
|
- lib/elibri_onix_dict/onix_3_0/serialized/LanguageCode.yml
|
118
119
|
- lib/elibri_onix_dict/onix_3_0/serialized/LanguageRole.yml
|
119
120
|
- lib/elibri_onix_dict/onix_3_0/serialized/MeasureType.yml
|
121
|
+
- lib/elibri_onix_dict/onix_3_0/serialized/NameIdentifier.yml
|
120
122
|
- lib/elibri_onix_dict/onix_3_0/serialized/NotificationType.yml
|
121
123
|
- lib/elibri_onix_dict/onix_3_0/serialized/OtherTextType.yml
|
122
124
|
- lib/elibri_onix_dict/onix_3_0/serialized/PricePositionOnProduct.yml
|
@@ -147,6 +149,8 @@ files:
|
|
147
149
|
- lib/elibri_onix_dict/onix_3_0/serialized/TitleElementLevel.yml
|
148
150
|
- lib/elibri_onix_dict/onix_3_0/serialized/TitleType.yml
|
149
151
|
- lib/elibri_onix_dict/onix_3_0/serialized/UnnamedPersons.yml
|
152
|
+
- lib/elibri_onix_dict/onix_3_0/serialized/UnpricedItemType.yml
|
153
|
+
- lib/elibri_onix_dict/onix_3_0/serialized/WebsiteRole.yml
|
150
154
|
- lib/elibri_onix_dict/releases.rb
|
151
155
|
- lib/elibri_onix_dict/version.rb
|
152
156
|
- test/elibri_onix_dict_release_3_0_test.rb
|
@@ -172,8 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
176
|
- !ruby/object:Gem::Version
|
173
177
|
version: '0'
|
174
178
|
requirements: []
|
175
|
-
|
176
|
-
rubygems_version: 2.7.8
|
179
|
+
rubygems_version: 3.1.2
|
177
180
|
signing_key:
|
178
181
|
specification_version: 4
|
179
182
|
summary: EDItEUR ONIX format dictionary helpers used in eLibri publication system
|