elibri_onix_dict 0.0.64 → 0.0.71

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ec669ee9961f9360597244b7b5abbd733e9b2991e566e390ed72fc2cd0b5de1
4
- data.tar.gz: 7cb92c564b5127d7cdfdfb4e3876868b7943f5018a128e8feda05699cb42393d
3
+ metadata.gz: da1f4087d9d6bbaddab84bcca8a143702f8ac46499836cf35c3ee56c4dec19b6
4
+ data.tar.gz: d7eb6ebb0df22600ba32b26abb264d960365f39c9a305bf10736b471187ec7dd
5
5
  SHA512:
6
- metadata.gz: f0bf1bedb63539bead1503f792fce7993794aa0a063aece77052f8e2c78e6eb0ecf580166bc1178c223f1f39c03f8f92809bd408f25c5b64f9a7ff2181441667
7
- data.tar.gz: 42a999cfe7d36d2149385a6420d022c6c4340e69ac5c3e84a210281960a642ebf15b20b9ae62a49da154d6ea8bf3974558a52e0c11c3b2b344b1a35a42f79fba
6
+ metadata.gz: 2b80387388f70e013b69f1b2ea39da0694ccbb0c76152fb310baa452b83b88518535b20a608f6677b7edc57d2fb970cc7eee9283698e038730436688cfb715ec
7
+ data.tar.gz: 7550314f8c0ee296bbfbe60559df228f7df8b6ff1a04752c4f484e89641a50c84681d4872cd22670f0f997c3b573f542b63df99845b1d84cf60bfca7721ce692
@@ -0,0 +1,8 @@
1
+
2
+ ---
3
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::AudienceCodeType
4
+ onix_code: '01'
5
+ const_name: ONIX
6
+ name:
7
+ en: ONIX audience codes
8
+ pl: kody ONIX
@@ -0,0 +1,64 @@
1
+
2
+ ---
3
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::AudienceCodeValue
4
+ onix_code: '01'
5
+ const_name: GENERAL
6
+ name:
7
+ en: general
8
+ pl: książka jest skierowana do ogólnego odbiorcy
9
+
10
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::AudienceCodeValue
11
+ onix_code: '02'
12
+ const_name: CHILDREN
13
+ name:
14
+ en: children
15
+ pl: książka jest skierowana do dzieci
16
+
17
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::AudienceCodeValue
18
+ onix_code: '03'
19
+ const_name: YOUNG_ADULT
20
+ name:
21
+ en: young adult
22
+ pl: książka jest skierowana do młodzieży
23
+
24
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::AudienceCodeValue
25
+ onix_code: '04'
26
+ const_name: EDUCATION
27
+ name:
28
+ en: education
29
+ pl: książka edukacyjna (szkoły podstawowe i średnie)
30
+
31
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::AudienceCodeValue
32
+ onix_code: '05'
33
+ const_name: HIGHER_EDUCATION
34
+ name:
35
+ en: higher education
36
+ pl: podręcznik akademicki
37
+
38
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::AudienceCodeValue
39
+ onix_code: '06'
40
+ const_name: EXPERTS
41
+ name:
42
+ en: experts
43
+ pl: książka dla profesjonalistów
44
+
45
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::AudienceCodeValue
46
+ onix_code: '08'
47
+ const_name: ADULT_EDUCATION
48
+ name:
49
+ en: adult education
50
+ pl: edukacja dla dorosłych
51
+
52
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::AudienceCodeValue
53
+ onix_code: '09'
54
+ const_name: SECOND_LANGUAGE_TEACHING
55
+ name:
56
+ en: second language teaching
57
+ pl: nauka języka obcego
58
+
59
+
60
+
61
+
62
+
63
+
64
+
@@ -20,6 +20,13 @@
20
20
  en: scenarist
21
21
  pl: scenarzysta
22
22
 
23
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ContributorRole
24
+ onix_code: A06
25
+ const_name: COMPOSER
26
+ name:
27
+ en: composer
28
+ pl: kompozytor
29
+
23
30
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ContributorRole
24
31
  onix_code: A10
25
32
  const_name: ORIGINATOR
@@ -0,0 +1,8 @@
1
+
2
+ ---
3
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::EpubLicenseExpressionType
4
+ onix_code: '01'
5
+ const_name: HUMAN_READABLE
6
+ name:
7
+ en: human readable
8
+ pl: ogólnodostępny dokument
@@ -0,0 +1,8 @@
1
+
2
+ ---
3
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::NameIdentifier
4
+ onix_code: '21'
5
+ const_name: ORCID
6
+ name:
7
+ en: ORCID
8
+ pl: ORCID
@@ -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
+
@@ -133,6 +133,36 @@
133
133
  carrier: druk
134
134
  mandatory_isbn: false
135
135
 
136
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
137
+ onix_code: 'ZB'
138
+ const_name: FIGURE
139
+ name:
140
+ en: doll or figure
141
+ pl: figurka
142
+ digital: false
143
+ carrier: druk
144
+ mandatory_isbn: false
145
+
146
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
147
+ onix_code: 'ZC'
148
+ const_name: PLUSH_TOY
149
+ name:
150
+ en: plush toy
151
+ pl: zabawka - pluszak
152
+ digital: false
153
+ carrier: druk
154
+ mandatory_isbn: false
155
+
156
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
157
+ onix_code: 'ZD'
158
+ const_name: TOY
159
+ name:
160
+ en: toy
161
+ pl: zabawka (również edukacyjna)
162
+ digital: false
163
+ carrier: druk
164
+ mandatory_isbn: false
165
+
136
166
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
137
167
  onix_code: 'PODH'
138
168
  const_name: POD_HARDCOVER
@@ -152,3 +182,13 @@
152
182
  digital: false
153
183
  carrier: druk
154
184
  mandatory_isbn: true
185
+
186
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
187
+ onix_code: 'OPEN_ACCESS'
188
+ const_name: OPEN_ACCESS
189
+ name:
190
+ en: e-book open access
191
+ pl: e-book open access
192
+ digital: false
193
+ carrier: plik
194
+ mandatory_isbn: true
@@ -20,4 +20,10 @@
20
20
  en: ISBN-13
21
21
  pl: ISBN-13
22
22
 
23
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductIDType
24
+ onix_code: '06'
25
+ const_name: DOI
26
+ name:
27
+ en: DOI
28
+ pl: DOI
23
29
 
@@ -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,8 @@
1
+
2
+ ---
3
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::UnpricedItemType
4
+ onix_code: '01'
5
+ const_name: FREE_OF_CHARGE
6
+ name:
7
+ en: free of charge
8
+ pl: bezpłatnie
@@ -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
+
@@ -1,7 +1,7 @@
1
1
  module Elibri
2
2
  module ONIX
3
3
  module Dict
4
- VERSION = "0.0.64"
4
+ VERSION = "0.0.71"
5
5
  Version = VERSION
6
6
  end
7
7
  end
@@ -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 15, Elibri::ONIX::Dict::Release_3_0::ProductFormCode::ALL.size
10
- assert_equal 13, Elibri::ONIX::Dict::Release_3_0::ProductFormCode.all_except('BA', 'EA').size
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.64
4
+ version: 0.0.71
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Urbanski
@@ -96,6 +96,8 @@ files:
96
96
  - lib/elibri_onix_dict/cover_type.rb
97
97
  - lib/elibri_onix_dict/cover_types.yml
98
98
  - lib/elibri_onix_dict/onix_3_0/base.rb
99
+ - lib/elibri_onix_dict/onix_3_0/serialized/AudienceCodeType.yml
100
+ - lib/elibri_onix_dict/onix_3_0/serialized/AudienceCodeValue.yml
99
101
  - lib/elibri_onix_dict/onix_3_0/serialized/AudienceRangePrecision.yml
100
102
  - lib/elibri_onix_dict/onix_3_0/serialized/AudienceRangeQualifier.yml
101
103
  - lib/elibri_onix_dict/onix_3_0/serialized/Availability.yml
@@ -106,6 +108,7 @@ files:
106
108
  - lib/elibri_onix_dict/onix_3_0/serialized/ContributorRole.yml
107
109
  - lib/elibri_onix_dict/onix_3_0/serialized/DateFormat.yml
108
110
  - lib/elibri_onix_dict/onix_3_0/serialized/EditionType.yml
111
+ - lib/elibri_onix_dict/onix_3_0/serialized/EpubLicenseExpressionType.yml
109
112
  - lib/elibri_onix_dict/onix_3_0/serialized/EpubTechnicalProtection.yml
110
113
  - lib/elibri_onix_dict/onix_3_0/serialized/EpubUsageStatus.yml
111
114
  - lib/elibri_onix_dict/onix_3_0/serialized/EpubUsageType.yml
@@ -115,6 +118,7 @@ files:
115
118
  - lib/elibri_onix_dict/onix_3_0/serialized/LanguageCode.yml
116
119
  - lib/elibri_onix_dict/onix_3_0/serialized/LanguageRole.yml
117
120
  - lib/elibri_onix_dict/onix_3_0/serialized/MeasureType.yml
121
+ - lib/elibri_onix_dict/onix_3_0/serialized/NameIdentifier.yml
118
122
  - lib/elibri_onix_dict/onix_3_0/serialized/NotificationType.yml
119
123
  - lib/elibri_onix_dict/onix_3_0/serialized/OtherTextType.yml
120
124
  - lib/elibri_onix_dict/onix_3_0/serialized/PricePositionOnProduct.yml
@@ -145,6 +149,8 @@ files:
145
149
  - lib/elibri_onix_dict/onix_3_0/serialized/TitleElementLevel.yml
146
150
  - lib/elibri_onix_dict/onix_3_0/serialized/TitleType.yml
147
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
148
154
  - lib/elibri_onix_dict/releases.rb
149
155
  - lib/elibri_onix_dict/version.rb
150
156
  - test/elibri_onix_dict_release_3_0_test.rb
@@ -170,8 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
176
  - !ruby/object:Gem::Version
171
177
  version: '0'
172
178
  requirements: []
173
- rubyforge_project:
174
- rubygems_version: 2.7.9
179
+ rubygems_version: 3.1.2
175
180
  signing_key:
176
181
  specification_version: 4
177
182
  summary: EDItEUR ONIX format dictionary helpers used in eLibri publication system