elibri_onix_dict 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/.document +5 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +33 -0
  4. data/LICENSE.txt +20 -0
  5. data/README.rdoc +26 -0
  6. data/Rakefile +55 -0
  7. data/lib/elibri_onix_dict.rb +37 -0
  8. data/lib/elibri_onix_dict/onix_3_0/base.rb +43 -0
  9. data/lib/elibri_onix_dict/onix_3_0/serialized/AudienceRangePrecision.yml +15 -0
  10. data/lib/elibri_onix_dict/onix_3_0/serialized/AudienceRangeQualifier.yml +9 -0
  11. data/lib/elibri_onix_dict/onix_3_0/serialized/Availability.yml +15 -0
  12. data/lib/elibri_onix_dict/onix_3_0/serialized/ContributorRole.yml +92 -0
  13. data/lib/elibri_onix_dict/onix_3_0/serialized/DateFormat.yml +20 -0
  14. data/lib/elibri_onix_dict/onix_3_0/serialized/LanguageCode.yml +272 -0
  15. data/lib/elibri_onix_dict/onix_3_0/serialized/LanguageRole.yml +36 -0
  16. data/lib/elibri_onix_dict/onix_3_0/serialized/NotificationType.yml +20 -0
  17. data/lib/elibri_onix_dict/onix_3_0/serialized/OtherTextType.yml +30 -0
  18. data/lib/elibri_onix_dict/onix_3_0/serialized/PricePrintedOnProduct.yml +16 -0
  19. data/lib/elibri_onix_dict/onix_3_0/serialized/PriceTypeCode.yml +15 -0
  20. data/lib/elibri_onix_dict/onix_3_0/serialized/ProductAvailabilityType.yml +15 -0
  21. data/lib/elibri_onix_dict/onix_3_0/serialized/ProductFormCode.yml +78 -0
  22. data/lib/elibri_onix_dict/onix_3_0/serialized/ProductRelationType.yml +17 -0
  23. data/lib/elibri_onix_dict/onix_3_0/serialized/PublishingStatusCode.yml +43 -0
  24. data/lib/elibri_onix_dict/onix_3_0/serialized/ResourceContentType.yml +51 -0
  25. data/lib/elibri_onix_dict/onix_3_0/serialized/ResourceMode.yml +20 -0
  26. data/lib/elibri_onix_dict/onix_3_0/serialized/SalesRestrictionType.yml +9 -0
  27. data/lib/elibri_onix_dict/onix_3_0/serialized/SupplierRole.yml +26 -0
  28. data/lib/elibri_onix_dict/onix_3_0/serialized/TitleType.yml +20 -0
  29. data/lib/elibri_onix_dict/releases.rb +6 -0
  30. data/lib/elibri_onix_dict/version.rb +14 -0
  31. data/test/elibri_onix_dict_release_3_0_test.rb +20 -0
  32. data/test/elibri_onix_dict_test.rb +10 -0
  33. data/test/helper.rb +19 -0
  34. metadata +173 -0
@@ -0,0 +1,36 @@
1
+
2
+ ---
3
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::LanguageRole
4
+ onix_code: '01'
5
+ const_name: LANGUAGE_OF_TEXT
6
+ name:
7
+ en: language of text
8
+ pl: język tekstu
9
+
10
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::LanguageRole
11
+ onix_code: '02'
12
+ const_name: LANGUAGE_OF_ORIGINAL
13
+ name:
14
+ en: language of original
15
+ pl: język oryginału
16
+
17
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::LanguageRole
18
+ onix_code: '03'
19
+ const_name: LANGUAGE_OF_ABSTRACTS
20
+ name:
21
+ en: language of abstracts
22
+ pl: język streszczenia
23
+
24
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::LanguageRole
25
+ onix_code: '08'
26
+ const_name: LANGUAGE_OF_AUDIO_TRACK
27
+ name:
28
+ en: language of audio track (CD/DVD)
29
+ pl: język ścieżki audio (CD/DVD)
30
+
31
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::LanguageRole
32
+ onix_code: '09'
33
+ const_name: LANGUAGE_OF_SUBTITLES
34
+ name:
35
+ en: language of subtitles(CD/DVD)
36
+ pl: język napisów (CD/DVD)
@@ -0,0 +1,20 @@
1
+
2
+ ---
3
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::NotificationType
4
+ onix_code: '01'
5
+ const_name: EARLY_NOTIFICATION
6
+ name:
7
+ en: early notification
8
+ pl: wczesne powiadomienie
9
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::NotificationType
10
+ onix_code: '03'
11
+ const_name: CONFIRMED_ON_PUBLICATION
12
+ name:
13
+ en: notification confirmed on publication
14
+ pl: powiadomienie o publikacji
15
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::NotificationType
16
+ onix_code: '05'
17
+ const_name: DELETE
18
+ name:
19
+ en: delete
20
+ pl: usunięcie rekordu
@@ -0,0 +1,30 @@
1
+ #lista 153
2
+
3
+ ---
4
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::OtherTextType
5
+ onix_code: '03'
6
+ const_name: MAIN_DESCRIPTION
7
+ name:
8
+ en: description
9
+ pl: opis produktu
10
+
11
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::OtherTextType
12
+ onix_code: '04'
13
+ const_name: TABLE_OF_CONTENTS
14
+ name:
15
+ en: table of contents
16
+ pl: spis treści
17
+
18
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::OtherTextType
19
+ onix_code: '07'
20
+ const_name: REVIEW
21
+ name:
22
+ en: review text
23
+ pl: recenzja
24
+
25
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::OtherTextType
26
+ onix_code: '14'
27
+ const_name: EXCERPT
28
+ name:
29
+ en: excerpt
30
+ pl: fragment książki
@@ -0,0 +1,16 @@
1
+
2
+
3
+ ---
4
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::PricePrintedOnProduct
5
+ onix_code: '01'
6
+ const_name: 'NO'
7
+ name:
8
+ en: no
9
+ pl: nie
10
+
11
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::PricePrintedOnProduct
12
+ onix_code: '02'
13
+ const_name: 'YES'
14
+ name:
15
+ en: yes
16
+ pl: tak
@@ -0,0 +1,15 @@
1
+
2
+ ---
3
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::PriceTypeCode
4
+ onix_code: '02'
5
+ const_name: RRP_WITH_TAX
6
+ name:
7
+ en: RRP including tax
8
+ pl: sugerowana cena detaliczna brutto
9
+
10
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::PriceTypeCode
11
+ onix_code: '01'
12
+ const_name: RRP_WITHOUT_TAX
13
+ name:
14
+ en: RRP excluding tax
15
+ pl: sugerowana cena detaliczna netto
@@ -0,0 +1,15 @@
1
+
2
+
3
+ ---
4
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductAvailabilityType
5
+ onix_code: '21'
6
+ const_name: IN_STOCK
7
+ name:
8
+ en: in stock
9
+ pl: na stanie
10
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductAvailabilityType
11
+ onix_code: '40'
12
+ const_name: NOT_AVAILABLE
13
+ name:
14
+ en: not available
15
+ pl: niedostępne
@@ -0,0 +1,78 @@
1
+
2
+ ---
3
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
4
+ onix_code: 'BA'
5
+ const_name: BOOK
6
+ name:
7
+ en: book
8
+ pl: książka
9
+
10
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
11
+ onix_code: 'EA'
12
+ const_name: EBOOK
13
+ name:
14
+ en: e-book
15
+ pl: e-book
16
+
17
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
18
+ onix_code: 'AA'
19
+ const_name: AUDIO_RECORDING
20
+ name:
21
+ en: audio recording
22
+ pl: nagranie audio
23
+
24
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
25
+ onix_code: 'AB'
26
+ const_name: AUDIO_CASSETTE
27
+ name:
28
+ en: audio cassette
29
+ pl: kaseta magnetofonowa
30
+
31
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
32
+ onix_code: 'AC'
33
+ const_name: AUDIO_CD
34
+ name:
35
+ en: CD-audio
36
+ pl: audio CD
37
+
38
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
39
+ onix_code: 'AI'
40
+ const_name: AUDIO_DVD
41
+ name:
42
+ en: DVD-audio
43
+ pl: audio DVD
44
+
45
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
46
+ onix_code: 'CA'
47
+ const_name: SHEET_MAP
48
+ name:
49
+ en: sheet map
50
+ pl: mapa
51
+
52
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
53
+ onix_code: 'CB'
54
+ const_name: SHEET_MAP_FOLDED
55
+ name:
56
+ en: sheet map / folded
57
+ pl: mapa składana
58
+
59
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
60
+ onix_code: 'CC'
61
+ const_name: SHEET_MAP_FLAT
62
+ name:
63
+ en: sheet map / flat
64
+ pl: mapa płaska
65
+
66
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
67
+ onix_code: 'CD'
68
+ const_name: SHEET_MAP_ROLLED
69
+ name:
70
+ en: sheet map / rolled
71
+ pl: mapa w rolce
72
+
73
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
74
+ onix_code: 'CZ'
75
+ const_name: OTHER_CARTOGRAPHIC
76
+ name:
77
+ en: other cartographic
78
+ pl: inny format kartograficzny
@@ -0,0 +1,17 @@
1
+
2
+
3
+ ---
4
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductRelationType
5
+ onix_code: '23'
6
+ const_name: SIMILAR_PRODUCTS
7
+ name:
8
+ en: products are similar
9
+ pl: produkty są podobne (mogą zainteresować klienta)
10
+
11
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductRelationType
12
+ onix_code: '24'
13
+ const_name: FACSIMILES
14
+ name:
15
+ en: products are facsimiles
16
+ pl: produkty to faksymile (kopia lub dodruk)
17
+
@@ -0,0 +1,43 @@
1
+
2
+ ---
3
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::PublishingStatusCode
4
+ onix_code: '00'
5
+ const_name: UNSPECIFIED
6
+ name:
7
+ en: unspecified
8
+ pl: nieokreślony
9
+
10
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::PublishingStatusCode
11
+ onix_code: '01'
12
+ const_name: CANCELLED
13
+ name:
14
+ en: cancelled
15
+ pl: anulowany
16
+
17
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::PublishingStatusCode
18
+ onix_code: '02'
19
+ const_name: FORTHCOMING
20
+ name:
21
+ en: forthcoming
22
+ pl: nadchodzący
23
+
24
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::PublishingStatusCode
25
+ onix_code: '04'
26
+ const_name: ACTIVE
27
+ name:
28
+ en: active
29
+ pl: w sprzedaży
30
+
31
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::PublishingStatusCode
32
+ onix_code: '07'
33
+ const_name: OUT_OF_PRINT
34
+ name:
35
+ en: out of print
36
+ pl: nakład wyczerpany
37
+
38
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::PublishingStatusCode
39
+ onix_code: '08'
40
+ const_name: UNAVAILABLE
41
+ name:
42
+ en: inactive
43
+ pl: niedostępny
@@ -0,0 +1,51 @@
1
+ #lista 158
2
+ ---
3
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ResourceContentType
4
+ onix_code: '01'
5
+ const_name: FRONT_COVER
6
+ name:
7
+ en: front cover
8
+ pl: okładka (przód)
9
+
10
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ResourceContentType
11
+ onix_code: '02'
12
+ const_name: BACK_COVER
13
+ name:
14
+ en: back cover
15
+ pl: okładka (tył)
16
+
17
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ResourceContentType
18
+ onix_code: '11'
19
+ const_name: AUTHOR_INTERVIEW
20
+ name:
21
+ en: author interview
22
+ pl: wywiad z autorem
23
+
24
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ResourceContentType
25
+ onix_code: '13'
26
+ const_name: AUTHOR_READING
27
+ name:
28
+ en: author reading
29
+ pl: fragment książki czytany przez autora
30
+
31
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ResourceContentType
32
+ onix_code: '15'
33
+ const_name: SAMPLE_CONTENT
34
+ name:
35
+ en: sample content
36
+ pl: fragment książki lub audiobook-a
37
+
38
+
39
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ResourceContentType
40
+ onix_code: '17'
41
+ const_name: REVIEW
42
+ name:
43
+ en: review
44
+ pl: recenzja
45
+
46
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ResourceContentType
47
+ onix_code: '24'
48
+ const_name: PRESS_RELEASE
49
+ name:
50
+ en: press release
51
+ pl: mediapack
@@ -0,0 +1,20 @@
1
+
2
+ ---
3
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ResourceMode
4
+ onix_code: '02'
5
+ const_name: AUDIO
6
+ name:
7
+ en: audio
8
+ pl: audio
9
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ResourceMode
10
+ onix_code: '03'
11
+ const_name: IMAGE
12
+ name:
13
+ en: image
14
+ pl: obrazek
15
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ResourceMode
16
+ onix_code: '04'
17
+ const_name: TEXT
18
+ name:
19
+ en: text
20
+ pl: tekst
@@ -0,0 +1,9 @@
1
+
2
+
3
+ ---
4
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::SalesRestrictionType
5
+ onix_code: '04'
6
+ const_name: RETAILER_EXCLUSIVE
7
+ name:
8
+ en: retailer exclusive
9
+ pl: sprzedaż z wyłącznością dla detalisty
@@ -0,0 +1,26 @@
1
+
2
+ ---
3
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::SupplierRole
4
+ onix_code: '01'
5
+ const_name: PUB_TO_RET
6
+ name:
7
+ en: publisher to retailers
8
+ pl: sprzedaż wydawnictwa do detalu
9
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::SupplierRole
10
+ onix_code: '02'
11
+ const_name: PUB_EXL_DIST
12
+ name:
13
+ en: "publisher's exclusive distributor to retailers"
14
+ pl: wyłączny dystrybutor wydawnictwa
15
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::SupplierRole
16
+ onix_code: '03'
17
+ const_name: PUB_NON_EXL_DIST
18
+ name:
19
+ en: "publisher's non-exclusive distributor to retailers"
20
+ pl: dystrybutor wydawnictwa bez prawa wyłączności
21
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::SupplierRole
22
+ onix_code: '04'
23
+ const_name: WHOLESALER
24
+ name:
25
+ en: Wholesaler
26
+ pl: hurtownia książek
@@ -0,0 +1,20 @@
1
+
2
+ ---
3
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::TitleType
4
+ onix_code: '01'
5
+ const_name: DISTINCTIVE_TITLE
6
+ name:
7
+ en: distinctive title
8
+ pl: tytuł
9
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::TitleType
10
+ onix_code: '03'
11
+ const_name: ORIGINAL_TITLE
12
+ name:
13
+ en: title in original language
14
+ pl: tytuł w języku oryginału
15
+ - !ruby/object:Elibri::ONIX::Dict::Release_3_0::TitleType
16
+ onix_code: '10'
17
+ const_name: DISTRIBUTORS_TITLE
18
+ name:
19
+ en: "distributor's title"
20
+ pl: tytuł wydawcy
@@ -0,0 +1,6 @@
1
+
2
+
3
+ %w{base}.each do |file_name|
4
+ require File.join(File.dirname(__FILE__), "onix_3_0", file_name)
5
+ end
6
+
@@ -0,0 +1,14 @@
1
+
2
+ module Elibri
3
+ module ONIX
4
+ module Dict
5
+ module Version
6
+ MAJOR = 0
7
+ MINOR = 0
8
+ PATCH = 1
9
+
10
+ STRING = [MAJOR, MINOR, PATCH].compact.join('.')
11
+ end
12
+ end
13
+ end
14
+ end