elibri_onix 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0f21a3237f099a53446172f82bd16667ffb2d3d432fee854c8a9eccc2debdbf
4
- data.tar.gz: bba743c033fc04cfd35b99a237741e54204a2efaa5b80dfe2aa1f410ff35573b
3
+ metadata.gz: 99406c369d3c65fe2ad3037221e8c8dd38e44d8a9edee062bdb80d2adbd39920
4
+ data.tar.gz: ef030e62bbfd548f167a71e43f0925cef6ba15b05698cd3dfd95d3c5bc9e187a
5
5
  SHA512:
6
- metadata.gz: '0950aeed6aa07b3555c30da38e85aa6457af0b150adbc7b46f2b65af2a4abb19a6f2ace65feb0ebfe6f687f285e37c3303bb4298695048b1e539058e7b4a396e'
7
- data.tar.gz: 2871ed5d76e63b29400f1aea400b339043b045759b4c10ca0fe9c4b72dda4a3bfa8a7e5da4a995dec9b3bc773100ba4f0c0df882d95b5a8adb9788e5e7cce741
6
+ metadata.gz: 03d6e8df6bc62f0e6d42bb89bff52d691f5447b323960e3816fd0fa0b7b5c74ddd61788ce431afad07d83d25156e3d1d1919076201d80a03bbeeb3a792e4d296
7
+ data.tar.gz: 8011972eeaf4b654e0467d5f9a4d94af89a1d9e34fa043bcae3d023f9441050136724edf02a84cd35df94e74f134e6af877a08a31bedbae8cbd21fe7ec5e27f7
@@ -47,7 +47,7 @@ module Elibri
47
47
  #użytkownikowi w sklepie jako nazwa wydawnictwa.
48
48
  attr_reader :imprint_name
49
49
 
50
- #Status produktu - jedna z wartości: announced, :preorder, :published, :out_of_print, :deleted
50
+ #Status produktu - jedna z wartości: announced, :preorder, :published, :out_of_print, :deleted, :indefinitely_postponed, cancelled
51
51
  attr_reader :current_state
52
52
 
53
53
  #Wiek czytelnika - od
@@ -530,7 +530,13 @@ module Elibri
530
530
  if @notification_type == "01"
531
531
  @current_state = :announced
532
532
  elsif @notification_type == "02"
533
- @current_state = :preorder
533
+ if @publishing_status == "01"
534
+ @current_state = :cancelled
535
+ elsif @publishing_status == "02"
536
+ @current_state = :preorder
537
+ elsif @publishing_status == "03"
538
+ @current_state = :indefinitely_postponed
539
+ end
534
540
  elsif @notification_type == "05"
535
541
  @current_state = :deleted
536
542
  else
@@ -2,7 +2,7 @@ module Elibri
2
2
  module ONIX
3
3
  z = $VERBOSE
4
4
  $VERBOSE = nil
5
- VERSION = "0.6.1"
5
+ VERSION = "0.6.2"
6
6
  Version = VERSION
7
7
  $VERBOSE = z
8
8
  end
@@ -30,4 +30,10 @@ describe Elibri::ONIX::Release_3_0::ONIXMessage do
30
30
  refute product.unlimited_licence
31
31
  end
32
32
 
33
+ it "should be able to recognise AI voices" do
34
+ product = load_fixture("audiobook_ai_cloned_voice.xml")
35
+ lector = product.contributors.find { |c| c.role_name == "read_by" }
36
+ assert_equal "Tomasz Kowalik", lector.person_name
37
+ assert_equal Elibri::ONIX::Dict::Release_3_0::UnnamedPersons::SYNTHESISED_VOICE_BASED_ON_REAL_VOICE, lector.unnamed_persons
38
+ end
33
39
  end
@@ -43,4 +43,26 @@ describe Elibri::ONIX::Release_3_0::ONIXMessage do
43
43
  assert !product.sales_restrictions?
44
44
  end
45
45
 
46
+ it "should be able recognize cancelled state" do
47
+ product = load_fixture("onix_cancelled_product_example.xml")
48
+ assert_equal "02", product.notification_type
49
+ assert_equal "01", product.publishing_status
50
+ assert_equal :cancelled, product.current_state
51
+ end
52
+
53
+ it "should be able recognize deleted state" do
54
+ product = load_fixture("onix_deleted_product_example.xml")
55
+ assert_equal "05", product.notification_type
56
+ assert_equal "00", product.publishing_status
57
+ assert_equal :deleted, product.current_state
58
+ assert_equal "Błędnie założony rekord", product.deletion_text
59
+ end
60
+
61
+ it "should be able recognize indefinitely_postponed state" do
62
+ product = load_fixture("onix_indefinitely_postponed_product_example.xml")
63
+ assert_equal "02", product.notification_type
64
+ assert_equal "03", product.publishing_status
65
+ assert_equal :indefinitely_postponed, product.current_state
66
+ end
67
+
46
68
  end
@@ -0,0 +1,258 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ONIXMessage xmlns="http://ns.editeur.org/onix/3.0/reference" release="3.0">
3
+ <Header>
4
+ <Sender>
5
+ <SenderName>Elibri.com.pl</SenderName>
6
+ <ContactName>Tomasz Meka</ContactName>
7
+ <EmailAddress>kontakt@elibri.com.pl</EmailAddress>
8
+ </Sender>
9
+ <SentDateTime>20190815</SentDateTime>
10
+ </Header>
11
+ <Product>
12
+ <RecordReference>9a9248d4afcdb69d44ce</RecordReference>
13
+ <!--NotificationType: CONFIRMED_ON_PUBLICATION--><NotificationType>03</NotificationType>
14
+ <ProductIdentifier>
15
+ <!--ProductIDType: ISBN13--><ProductIDType>15</ProductIDType>
16
+ <IDValue>9788380625952</IDValue>
17
+ </ProductIdentifier>
18
+ <DescriptiveDetail>
19
+ <ProductComposition>00</ProductComposition>
20
+ <ProductForm>AJ</ProductForm>
21
+ <!--EpubTechnicalProtection: WATERMARK--><EpubTechnicalProtection>02</EpubTechnicalProtection>
22
+ <Collection>
23
+ <!--CollectionType: PUBLISHER_COLLECTION--><CollectionType>10</CollectionType>
24
+ <TitleDetail>
25
+ <!--TitleType: DISTINCTIVE_TITLE--><TitleType>01</TitleType>
26
+ <TitleElement>
27
+ <!--TitleElementLevel: COLLECTION--><TitleElementLevel>02</TitleElementLevel>
28
+ <TitleText>s-f</TitleText>
29
+ </TitleElement>
30
+ </TitleDetail>
31
+ </Collection>
32
+ <TitleDetail>
33
+ <!--TitleType: DISTINCTIVE_TITLE--><TitleType>01</TitleType>
34
+ <TitleElement>
35
+ <!--TitleElementLevel: PRODUCT--><TitleElementLevel>01</TitleElementLevel>
36
+ <TitleText>Kwiaty dla Algernona</TitleText>
37
+ </TitleElement>
38
+ </TitleDetail>
39
+ <TitleDetail>
40
+ <!--TitleType: ORIGINAL_TITLE--><TitleType>03</TitleType>
41
+ <TitleElement>
42
+ <!--TitleElementLevel: PRODUCT--><TitleElementLevel>01</TitleElementLevel>
43
+ <TitleText>Flowers for Algernon</TitleText>
44
+ </TitleElement>
45
+ </TitleDetail>
46
+ <TitleDetail>
47
+ <!--TitleType: DISTRIBUTORS_TITLE--><TitleType>10</TitleType>
48
+ <TitleElement>
49
+ <!--TitleElementLevel: PRODUCT--><TitleElementLevel>01</TitleElementLevel>
50
+ <TitleText>KWIATY DLA ALGERNONA</TitleText>
51
+ </TitleElement>
52
+ </TitleDetail>
53
+ <Contributor sourcename="contributorid:221076" datestamp="20190614T0946">
54
+ <SequenceNumber>1</SequenceNumber>
55
+ <!--ContributorRole: AUTHOR--><ContributorRole>A01</ContributorRole>
56
+ <PersonName>Daniel Keyes</PersonName>
57
+ <NamesBeforeKey>Daniel</NamesBeforeKey>
58
+ <KeyNames>Keyes</KeyNames>
59
+ <BiographicalNote>&lt;p&gt;
60
+ Daniel Keyes (1927-2014) – amerykański pisarz. Jego opowiadanie &lt;em&gt;Kwiaty dla Algernona&lt;/em&gt; otrzymało nagrodę Hugo w 1960 roku. Rozwinięte do formy powieści pod tym samym tytułem doczekało się z kolei nagrody Nebula w roku 1966, a dwa lata później zostało zekranizowane jako &lt;em&gt;Charly&lt;/em&gt;. Keyes opublikował także m.in. obsypaną nagrodami książkę non-fiction &lt;em&gt;Człowiek o 24 twarzach.&lt;/em&gt;&lt;/p&gt;
61
+
62
+ </BiographicalNote>
63
+ </Contributor>
64
+ <Contributor sourcename="contributorid:221077" datestamp="20190614T0946">
65
+ <SequenceNumber>2</SequenceNumber>
66
+ <!--ContributorRole: TRANSLATOR--><ContributorRole>B06</ContributorRole>
67
+ <FromLanguage>eng</FromLanguage>
68
+ <PersonName>Krzysztof Sokołowski</PersonName>
69
+ <NamesBeforeKey>Krzysztof</NamesBeforeKey>
70
+ <KeyNames>Sokołowski</KeyNames>
71
+ </Contributor>
72
+ <Contributor sourcename="contributorid:221078" datestamp="20190705T1500">
73
+ <SequenceNumber>3</SequenceNumber>
74
+ <!--ContributorRole: READ_BY-->
75
+ <ContributorRole>E07</ContributorRole>
76
+ <UnnamedPersons>08</UnnamedPersons> <!-- synthesised voice based on -->
77
+ <AlternativeName>
78
+ <NameType>04</NameType> <!-- real name -->
79
+ <PersonName>Tomasz Kowalik</PersonName>
80
+ </AlternativeName>
81
+ </Contributor>
82
+ <Language>
83
+ <!--LanguageRole: LANGUAGE_OF_TEXT--><LanguageRole>01</LanguageRole>
84
+ <!--LanguageCode: Polish--><LanguageCode>pol</LanguageCode>
85
+ </Language>
86
+ <Extent>
87
+ <!--ExtentType: FILE_SIZE--><ExtentType>22</ExtentType>
88
+ <ExtentValue>489.0</ExtentValue>
89
+ <!--ExtentUnit: MEGABYTES--><ExtentUnit>19</ExtentUnit>
90
+ </Extent>
91
+ <Extent>
92
+ <!--ExtentType: DURATION--><ExtentType>09</ExtentType>
93
+ <ExtentValue>524</ExtentValue>
94
+ <!--ExtentUnit: MINUTES--><ExtentUnit>05</ExtentUnit>
95
+ </Extent>
96
+ <Subject>
97
+ <MainSubject/>
98
+ <!--SubjectSchemeIdentifier: PROPRIETARY--><SubjectSchemeIdentifier>24</SubjectSchemeIdentifier>
99
+ <SubjectSchemeName>elibri.com.pl</SubjectSchemeName>
100
+ <SubjectSchemeVersion>1.0</SubjectSchemeVersion>
101
+ <SubjectCode>613</SubjectCode>
102
+ <SubjectHeadingText>Literatura piękna / Fantastyka / Science Fiction</SubjectHeadingText>
103
+ </Subject>
104
+ <Subject>
105
+ <!--SubjectSchemeIdentifier: THEMA--><SubjectSchemeIdentifier>93</SubjectSchemeIdentifier>
106
+ <SubjectSchemeVersion>1.3</SubjectSchemeVersion>
107
+ <SubjectCode>FL</SubjectCode>
108
+ <SubjectHeadingText>Proza fabularna / Fantastyka naukowa (science fiction)</SubjectHeadingText>
109
+ </Subject>
110
+ <Subject>
111
+ <!--SubjectSchemeIdentifier: THEMA--><SubjectSchemeIdentifier>93</SubjectSchemeIdentifier>
112
+ <SubjectSchemeVersion>1.3</SubjectSchemeVersion>
113
+ <SubjectCode>FLC</SubjectCode>
114
+ <SubjectHeadingText>Proza fabularna / Fantastyka naukowa (science fiction) / Klasyka fantastyki naukowej</SubjectHeadingText>
115
+ </Subject>
116
+ <Subject>
117
+ <!--SubjectSchemeIdentifier: PROPRIETARY--><SubjectSchemeIdentifier>24</SubjectSchemeIdentifier>
118
+ <SubjectSchemeName>Rebis</SubjectSchemeName>
119
+ <SubjectCode>614</SubjectCode>
120
+ <SubjectHeadingText>Science Fiction</SubjectHeadingText>
121
+ </Subject>
122
+ </DescriptiveDetail>
123
+ <CollateralDetail>
124
+ <TextContent sourcename="textid:122995" datestamp="20190614T0946">
125
+ <TextType>03</TextType>
126
+ <!--ContentAudience: UNRESTRICTED--><ContentAudience>00</ContentAudience>
127
+ <Text>
128
+ <![CDATA[<p>
129
+ <strong>Książka została sprzedana w ponad 5 milionach egzemplarzy, przetłumaczona na 27 języków, wydana w ponad 30 krajach.</strong></p>
130
+ <p>
131
+ Tekst wyróżniono najważniejszymi nagrodami w świecie science fiction: Hugo (opowiadanie) i Nebula (powieść). Ta ponadczasowa opowieść doczekała się kilkunastu adaptacji filmowych i teatralnych na całym świecie.</p>
132
+ <p>
133
+ Trzydziestodwuletni Charlie Gordon jest upośledzony umysłowo, ma iloraz inteligencji na poziomie 68 punktów. Uczy się czytać i pisać na zajęciach w Beekman College. Dwaj naukowcy z tej uczelni, doktor Nemur i doktor Strauss, prowadzą badania nad wzrostem inteligencji. Udało im się już za pomocą zabiegu chirurgicznego zwiększyć zdolności umysłowe myszy o imieniu Algernon i teraz chcą przeprowadzić taki sam eksperyment z człowiekiem.</p>
134
+ <p>
135
+ „Wielka literatura. Historia i główny bohater pozostają ze mną od kilkudziesięciu lat, od chwili, gdy przeczytałem książkę” - Conn Iggulden.</p>
136
+ <p>
137
+ „Arcydzieło poruszającej błyskotliwości (…) chwytające za serce i całkowicie, bezdyskusyjnie znakomite” - „The Guardian”</p>
138
+ <p>
139
+ „Przejmująco szczera. Skłoni cię do refleksji nad twoim życiem i złamie ci serce” - „The Guardian Online”</p>
140
+ <p>
141
+ „Uderzająco oryginalna” - „Publishers Weekly”</p>
142
+ <p>
143
+ „Przekonująca i poruszająca opowieść” - „New York Times”</p>
144
+ ]]>
145
+ </Text>
146
+ </TextContent>
147
+ <SupportingResource sourcename="resourceid:139506" datestamp="20190628T1219">
148
+ <!--ResourceContentType: FRONT_COVER--><ResourceContentType>01</ResourceContentType>
149
+ <!--ContentAudience: UNRESTRICTED--><ContentAudience>00</ContentAudience>
150
+ <!--ResourceMode: IMAGE--><ResourceMode>03</ResourceMode>
151
+ <ResourceVersion>
152
+ <!--ResourceForm: DOWNLOADABLE_FILE--><ResourceForm>02</ResourceForm>
153
+ <ResourceLink>http://www.elibri.com.pl/system/product_attachments/production/000/139/506/original/f0664143/kwiaty_dla_algernona_okladka_mp3.jpg</ResourceLink>
154
+ <ContentDate>
155
+ <!--ContentDateRole: LAST_UPDATED--><ContentDateRole>17</ContentDateRole>
156
+ <Date dateformat="00">20190628</Date>
157
+ </ContentDate>
158
+ </ResourceVersion>
159
+ </SupportingResource>
160
+ <SupportingResource>
161
+ <!--ResourceContentType: SAMPLE_CONTENT--><ResourceContentType>15</ResourceContentType>
162
+ <!--ContentAudience: UNRESTRICTED--><ContentAudience>00</ContentAudience>
163
+ <!--ResourceMode: AUDIO--><ResourceMode>02</ResourceMode>
164
+ <ResourceVersion>
165
+ <!--ResourceForm: DOWNLOADABLE_FILE--><ResourceForm>02</ResourceForm>
166
+ <ResourceVersionFeature>
167
+ <!--ResourceVersionFeatureType: FILE_FORMAT--><ResourceVersionFeatureType>01</ResourceVersionFeatureType>
168
+ <FeatureValue>A103</FeatureValue>
169
+ </ResourceVersionFeature>
170
+ <ResourceVersionFeature>
171
+ <!--ResourceVersionFeatureType: MD5_HASH_VALUE--><ResourceVersionFeatureType>06</ResourceVersionFeatureType>
172
+ <FeatureValue>0bf20c528f323dd2a6d91627ccddf52e</FeatureValue>
173
+ </ResourceVersionFeature>
174
+ <ResourceVersionFeature>
175
+ <!--ResourceVersionFeatureType: SIZE_IN_BYTES--><ResourceVersionFeatureType>07</ResourceVersionFeatureType>
176
+ <FeatureValue>2589928</FeatureValue>
177
+ </ResourceVersionFeature>
178
+ <ResourceLink>https://www.elibri.com.pl/excerpt/109048/0bf20c528f323dd2a6d91627ccddf52e/kwiaty-dla-algernona-fragment.mp3</ResourceLink>
179
+ <ContentDate>
180
+ <!--ContentDateRole: LAST_UPDATED--><ContentDateRole>17</ContentDateRole>
181
+ <Date dateformat="13">20190712T2158Z</Date>
182
+ </ContentDate>
183
+ </ResourceVersion>
184
+ </SupportingResource>
185
+ </CollateralDetail>
186
+ <PublishingDetail>
187
+ <Publisher>
188
+ <PublishingRole>01</PublishingRole>
189
+ <PublisherIdentifier>
190
+ <PublisherIDType>01</PublisherIDType>
191
+ <IDTypeName>ElibriPublisherCode</IDTypeName>
192
+ <IDValue>17</IDValue>
193
+ </PublisherIdentifier>
194
+ <PublisherName>Rebis</PublisherName>
195
+ </Publisher>
196
+ <CityOfPublication>Poznań</CityOfPublication>
197
+ <PublishingStatus>04</PublishingStatus>
198
+ <PublishingDate>
199
+ <!--PublishingDateRole: PUBLICATION_DATE--><PublishingDateRole>01</PublishingDateRole>
200
+ <Date dateformat="00">20190724</Date>
201
+ </PublishingDate>
202
+ <SalesRights>
203
+ <SalesRightsType>01</SalesRightsType>
204
+ <Territory>
205
+ <RegionsIncluded>WORLD</RegionsIncluded>
206
+ </Territory>
207
+ </SalesRights>
208
+ </PublishingDetail>
209
+ <RelatedMaterial>
210
+ <RelatedProduct>
211
+ <ProductRelationCode>24</ProductRelationCode>
212
+ <ProductIdentifier>
213
+ <!--ProductIDType: PROPRIETARY--><ProductIDType>01</ProductIDType>
214
+ <IDTypeName>elibri</IDTypeName>
215
+ <IDValue>9be82a96d04d2ace41c9</IDValue>
216
+ </ProductIdentifier>
217
+ </RelatedProduct>
218
+ <RelatedProduct>
219
+ <ProductRelationCode>24</ProductRelationCode>
220
+ <ProductIdentifier>
221
+ <!--ProductIDType: PROPRIETARY--><ProductIDType>01</ProductIDType>
222
+ <IDTypeName>elibri</IDTypeName>
223
+ <IDValue>dc7c5f11116598b68463</IDValue>
224
+ </ProductIdentifier>
225
+ </RelatedProduct>
226
+ <RelatedProduct>
227
+ <ProductRelationCode>24</ProductRelationCode>
228
+ <ProductIdentifier>
229
+ <!--ProductIDType: PROPRIETARY--><ProductIDType>01</ProductIDType>
230
+ <IDTypeName>elibri</IDTypeName>
231
+ <IDValue>cd969a1053fad586ae1f</IDValue>
232
+ </ProductIdentifier>
233
+ </RelatedProduct>
234
+ </RelatedMaterial>
235
+ <ProductSupply>
236
+ <SupplyDetail>
237
+ <Supplier>
238
+ <!--SupplierRole: PUB_TO_RET--><SupplierRole>01</SupplierRole>
239
+ <SupplierIdentifier>
240
+ <SupplierIDType>23</SupplierIDType>
241
+ <IDValue>PL7790000847</IDValue>
242
+ </SupplierIdentifier>
243
+ <SupplierName>Rebis</SupplierName>
244
+ </Supplier>
245
+ <ProductAvailability>20</ProductAvailability>
246
+ <Price>
247
+ <PriceType>02</PriceType>
248
+ <PriceAmount>34.9</PriceAmount>
249
+ <Tax>
250
+ <TaxType>01</TaxType>
251
+ <TaxRatePercent>23</TaxRatePercent>
252
+ </Tax>
253
+ <CurrencyCode>PLN</CurrencyCode>
254
+ </Price>
255
+ </SupplyDetail>
256
+ </ProductSupply>
257
+ </Product>
258
+ </ONIXMessage>
@@ -0,0 +1,69 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ONIXMessage release="3.0" xmlns="http://ns.editeur.org/onix/3.0/reference">
3
+ <Header>
4
+ <Sender>
5
+ <SenderName>Elibri sp. z o. o.</SenderName>
6
+ </Sender>
7
+ <SentDateTime>20240923</SentDateTime>
8
+ </Header>
9
+ <Product>
10
+ <RecordReference>fdb8fa072be774d97a97</RecordReference>
11
+ <NotificationType>02</NotificationType>
12
+ <ProductIdentifier>
13
+ <ProductIDType>15</ProductIDType>
14
+ <IDValue>9788324799992</IDValue>
15
+ </ProductIdentifier>
16
+ <DescriptiveDetail>
17
+ <ProductComposition>00</ProductComposition>
18
+ <ProductForm>BA</ProductForm>
19
+ <TitleDetail>
20
+ <TitleType>01</TitleType>
21
+ <TitleElement>
22
+ <TitleElementLevel>01</TitleElementLevel>
23
+ <TitleText language="pol">Nielegalni</TitleText>
24
+ </TitleElement>
25
+ </TitleDetail>
26
+ </DescriptiveDetail>
27
+ <PublishingDetail>
28
+ <Publisher>
29
+ <PublishingRole>01</PublishingRole>
30
+ <PublisherIdentifier>
31
+ <PublisherIDType>01</PublisherIDType>
32
+ <IDTypeName>ElibriPublisherCode</IDTypeName>
33
+ <IDValue>11</IDValue>
34
+ </PublisherIdentifier>
35
+ <PublisherName>GREG</PublisherName>
36
+ </Publisher>
37
+ <CityOfPublication>Warszawa</CityOfPublication>
38
+ <PublishingStatus>01</PublishingStatus>
39
+ <SalesRights>
40
+ <SalesRightsType>01</SalesRightsType>
41
+ <Territory>
42
+ <RegionsIncluded>WORLD</RegionsIncluded>
43
+ </Territory>
44
+ </SalesRights>
45
+ </PublishingDetail>
46
+ <ProductSupply>
47
+ <SupplyDetail>
48
+ <Supplier>
49
+ <SupplierRole>01</SupplierRole>
50
+ <SupplierIdentifier>
51
+ <SupplierIDType>23</SupplierIDType>
52
+ <IDValue>PL6782821670</IDValue>
53
+ </SupplierIdentifier>
54
+ <SupplierName>GREG</SupplierName>
55
+ </Supplier>
56
+ <ProductAvailability>99</ProductAvailability>
57
+ <Price>
58
+ <PriceType>02</PriceType>
59
+ <PriceAmount>12.99</PriceAmount>
60
+ <Tax>
61
+ <TaxType>01</TaxType>
62
+ <TaxRatePercent>5</TaxRatePercent>
63
+ </Tax>
64
+ <CurrencyCode>PLN</CurrencyCode>
65
+ </Price>
66
+ </SupplyDetail>
67
+ </ProductSupply>
68
+ </Product>
69
+ </ONIXMessage>
@@ -0,0 +1,70 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ONIXMessage release="3.0" xmlns="http://ns.editeur.org/onix/3.0/reference">
3
+ <Header>
4
+ <Sender>
5
+ <SenderName>Elibri sp. z o. o.</SenderName>
6
+ </Sender>
7
+ <SentDateTime>20240923</SentDateTime>
8
+ </Header>
9
+ <Product>
10
+ <RecordReference>fdb8fa072be774d97a97</RecordReference>
11
+ <NotificationType>05</NotificationType>
12
+ <DeletionText>Błędnie założony rekord</DeletionText>
13
+ <ProductIdentifier>
14
+ <ProductIDType>15</ProductIDType>
15
+ <IDValue>9788324799992</IDValue>
16
+ </ProductIdentifier>
17
+ <DescriptiveDetail>
18
+ <ProductComposition>00</ProductComposition>
19
+ <ProductForm>BA</ProductForm>
20
+ <TitleDetail>
21
+ <TitleType>01</TitleType>
22
+ <TitleElement>
23
+ <TitleElementLevel>01</TitleElementLevel>
24
+ <TitleText language="pol">Nielegalni</TitleText>
25
+ </TitleElement>
26
+ </TitleDetail>
27
+ </DescriptiveDetail>
28
+ <PublishingDetail>
29
+ <Publisher>
30
+ <PublishingRole>01</PublishingRole>
31
+ <PublisherIdentifier>
32
+ <PublisherIDType>01</PublisherIDType>
33
+ <IDTypeName>ElibriPublisherCode</IDTypeName>
34
+ <IDValue>11</IDValue>
35
+ </PublisherIdentifier>
36
+ <PublisherName>GREG</PublisherName>
37
+ </Publisher>
38
+ <CityOfPublication>Warszawa</CityOfPublication>
39
+ <PublishingStatus>00</PublishingStatus>
40
+ <SalesRights>
41
+ <SalesRightsType>01</SalesRightsType>
42
+ <Territory>
43
+ <RegionsIncluded>WORLD</RegionsIncluded>
44
+ </Territory>
45
+ </SalesRights>
46
+ </PublishingDetail>
47
+ <ProductSupply>
48
+ <SupplyDetail>
49
+ <Supplier>
50
+ <SupplierRole>01</SupplierRole>
51
+ <SupplierIdentifier>
52
+ <SupplierIDType>23</SupplierIDType>
53
+ <IDValue>PL6782821670</IDValue>
54
+ </SupplierIdentifier>
55
+ <SupplierName>GREG</SupplierName>
56
+ </Supplier>
57
+ <ProductAvailability>99</ProductAvailability>
58
+ <Price>
59
+ <PriceType>02</PriceType>
60
+ <PriceAmount>12.99</PriceAmount>
61
+ <Tax>
62
+ <TaxType>01</TaxType>
63
+ <TaxRatePercent>5</TaxRatePercent>
64
+ </Tax>
65
+ <CurrencyCode>PLN</CurrencyCode>
66
+ </Price>
67
+ </SupplyDetail>
68
+ </ProductSupply>
69
+ </Product>
70
+ </ONIXMessage>
@@ -0,0 +1,69 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ONIXMessage release="3.0" xmlns="http://ns.editeur.org/onix/3.0/reference">
3
+ <Header>
4
+ <Sender>
5
+ <SenderName>Elibri sp. z o. o.</SenderName>
6
+ </Sender>
7
+ <SentDateTime>20240923</SentDateTime>
8
+ </Header>
9
+ <Product>
10
+ <RecordReference>fdb8fa072be774d97a97</RecordReference>
11
+ <NotificationType>02</NotificationType>
12
+ <ProductIdentifier>
13
+ <ProductIDType>15</ProductIDType>
14
+ <IDValue>9788324799992</IDValue>
15
+ </ProductIdentifier>
16
+ <DescriptiveDetail>
17
+ <ProductComposition>00</ProductComposition>
18
+ <ProductForm>BA</ProductForm>
19
+ <TitleDetail>
20
+ <TitleType>01</TitleType>
21
+ <TitleElement>
22
+ <TitleElementLevel>01</TitleElementLevel>
23
+ <TitleText language="pol">Nielegalni</TitleText>
24
+ </TitleElement>
25
+ </TitleDetail>
26
+ </DescriptiveDetail>
27
+ <PublishingDetail>
28
+ <Publisher>
29
+ <PublishingRole>01</PublishingRole>
30
+ <PublisherIdentifier>
31
+ <PublisherIDType>01</PublisherIDType>
32
+ <IDTypeName>ElibriPublisherCode</IDTypeName>
33
+ <IDValue>11</IDValue>
34
+ </PublisherIdentifier>
35
+ <PublisherName>GREG</PublisherName>
36
+ </Publisher>
37
+ <CityOfPublication>Warszawa</CityOfPublication>
38
+ <PublishingStatus>03</PublishingStatus>
39
+ <SalesRights>
40
+ <SalesRightsType>01</SalesRightsType>
41
+ <Territory>
42
+ <RegionsIncluded>WORLD</RegionsIncluded>
43
+ </Territory>
44
+ </SalesRights>
45
+ </PublishingDetail>
46
+ <ProductSupply>
47
+ <SupplyDetail>
48
+ <Supplier>
49
+ <SupplierRole>01</SupplierRole>
50
+ <SupplierIdentifier>
51
+ <SupplierIDType>23</SupplierIDType>
52
+ <IDValue>PL6782821670</IDValue>
53
+ </SupplierIdentifier>
54
+ <SupplierName>GREG</SupplierName>
55
+ </Supplier>
56
+ <ProductAvailability>99</ProductAvailability>
57
+ <Price>
58
+ <PriceType>02</PriceType>
59
+ <PriceAmount>12.99</PriceAmount>
60
+ <Tax>
61
+ <TaxType>01</TaxType>
62
+ <TaxRatePercent>5</TaxRatePercent>
63
+ </Tax>
64
+ <CurrencyCode>PLN</CurrencyCode>
65
+ </Price>
66
+ </SupplyDetail>
67
+ </ProductSupply>
68
+ </Product>
69
+ </ONIXMessage>
metadata CHANGED
@@ -1,16 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_onix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Urbanski
8
8
  - Piotr Szmielew
9
9
  - Tomasz Meka
10
- autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2024-11-22 00:00:00.000000000 Z
12
+ date: 2025-11-12 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: nokogiri
@@ -223,6 +222,7 @@ files:
223
222
  - test/elibri_texts_test.rb
224
223
  - test/elibri_titles_test.rb
225
224
  - test/fixtures/all_possible_tags.xml
225
+ - test/fixtures/audiobook_ai_cloned_voice.xml
226
226
  - test/fixtures/eisbn-pl-sample.xml
227
227
  - test/fixtures/lending_example.xml
228
228
  - test/fixtures/onix_announced_product_example.xml
@@ -230,14 +230,17 @@ files:
230
230
  - test/fixtures/onix_audiobook_example.xml
231
231
  - test/fixtures/onix_audiobook_extent_example.xml
232
232
  - test/fixtures/onix_board_game_example.xml
233
+ - test/fixtures/onix_cancelled_product_example.xml
233
234
  - test/fixtures/onix_cn_production_country_example.xml
234
235
  - test/fixtures/onix_collective_work_example.xml
235
236
  - test/fixtures/onix_contributors_example.xml
237
+ - test/fixtures/onix_deleted_product_example.xml
236
238
  - test/fixtures/onix_ebook_extent_example.xml
237
239
  - test/fixtures/onix_ebook_with_files_example.xml
238
240
  - test/fixtures/onix_edition_example.xml
239
241
  - test/fixtures/onix_epub_details_example.xml
240
242
  - test/fixtures/onix_exclusive_distributor_example.xml
243
+ - test/fixtures/onix_indefinitely_postponed_product_example.xml
241
244
  - test/fixtures/onix_languages_example.xml
242
245
  - test/fixtures/onix_measurement_example.xml
243
246
  - test/fixtures/onix_no_contributors_example.xml
@@ -266,7 +269,6 @@ homepage: http://github.com/elibri/elibri_onix
266
269
  licenses:
267
270
  - MIT
268
271
  metadata: {}
269
- post_install_message:
270
272
  rdoc_options: []
271
273
  require_paths:
272
274
  - lib
@@ -281,8 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
281
283
  - !ruby/object:Gem::Version
282
284
  version: '0'
283
285
  requirements: []
284
- rubygems_version: 3.5.3
285
- signing_key:
286
+ rubygems_version: 3.6.2
286
287
  specification_version: 4
287
288
  summary: EDItEUR ONIX format subset implementation used in Elibri publication system
288
289
  test_files: []