elibri_onix_generator 0.4.7 → 0.4.8
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 +4 -4
- data/lib/elibri_onix_generator.rb +17 -6
- data/lib/elibri_onix_generator/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 890e53d5c02d7c7ea2df8bc59df5d796f2563da7
|
|
4
|
+
data.tar.gz: 201618a6f721f235a466695dc2c188c575746b74
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ec5a5e67df83d6b39736c228e5ee4fdbe9b04f8920277e6123adc472db8c6bf5908e2bcfe17d169de3f9d3446a0e42afbb626c269e380dc432309bb06f8a541
|
|
7
|
+
data.tar.gz: 970546da98ac1672e64d342c2bd853dc4fb9f5100b5564d0031601d9d859b16a8c7673d199f5a6e4580d4a4f770a9544699d3370c92764e2761dd63a80435038
|
|
@@ -661,10 +661,20 @@ module Elibri
|
|
|
661
661
|
|
|
662
662
|
# @hidden_tags RecordReference NotificationType ProductIdentifier ProductComposition ProductForm TitleDetail
|
|
663
663
|
# @title Kategorie
|
|
664
|
-
# W dostarczanych przez nas plikach ONIX mogą być zawarte
|
|
665
|
-
#
|
|
666
|
-
#
|
|
667
|
-
#
|
|
664
|
+
# W dostarczanych przez nas plikach ONIX mogą być zawarte trzy rodzaje kategoryzacji:
|
|
665
|
+
# <ul>
|
|
666
|
+
# <li><a href='https://www.elibri.com.pl/doc/api/categories'>kategoryzacja elbri (będzie wkrótce wygaszana)</a></li>
|
|
667
|
+
# <li>Thema - <a href='https://www.elibri.com.pl/thema'>browser kategorii</a>, <a href='https://www.elibri.com.pl/system/doc/thema-przyklady.pdf'>przykłady</a>,
|
|
668
|
+
# <a href='https://www.editeur.org/151/Thema/'>oficjalna strona Themy</a>
|
|
669
|
+
# <li>kategoryzacja wydawnicza</li>
|
|
670
|
+
# </li>
|
|
671
|
+
# </ul>
|
|
672
|
+
# Wszystkie trzy kategoryzacje mogą współistnieć, rozróżniane przez wartości w <SubjectSchemeIdentifier> i <SubjectSchemeName>:
|
|
673
|
+
# <ul>
|
|
674
|
+
# <li><SubjectSchemeIdentifier> o wartościach 93 - 99 - to są kategorie i kwantyfikatory Thema
|
|
675
|
+
# <li><SubjectSchemeIdentifier> o wartości 24 oraz <SubjectSchemeName> o wartości elibri.com.pl - to są kategorie elibri
|
|
676
|
+
# <li><SubjectSchemeIdentifier> o wartości 24 oraz <SubjectSchemeName> z nazwą wydawnictwa - to są kategorie wydawnicze.</li>
|
|
677
|
+
# </ul>
|
|
668
678
|
def export_subjects!(product)
|
|
669
679
|
|
|
670
680
|
# Kategorie wg. eLibri
|
|
@@ -681,8 +691,8 @@ module Elibri
|
|
|
681
691
|
end
|
|
682
692
|
end
|
|
683
693
|
|
|
684
|
-
if product.respond_to?(:
|
|
685
|
-
product.
|
|
694
|
+
if product.respond_to?(:thema_codes_for_onix_with_heading_text)
|
|
695
|
+
product.thema_codes_for_onix_with_heading_text.each do |code, text|
|
|
686
696
|
|
|
687
697
|
scheme_id = {
|
|
688
698
|
"1" => 94, #Thema place qualifier
|
|
@@ -697,6 +707,7 @@ module Elibri
|
|
|
697
707
|
tag(:SubjectSchemeIdentifier, scheme_id)
|
|
698
708
|
tag(:SubjectSchemeVersion, "1.3")
|
|
699
709
|
tag(:SubjectCode, code)
|
|
710
|
+
tag(:SubjectHeadingText, text)
|
|
700
711
|
end
|
|
701
712
|
end
|
|
702
713
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: elibri_onix_generator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marcin Urbański
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2018-
|
|
12
|
+
date: 2018-12-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: builder
|
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
75
75
|
version: '0'
|
|
76
76
|
requirements: []
|
|
77
77
|
rubyforge_project: elibri_onix_generator
|
|
78
|
-
rubygems_version: 2.5.
|
|
78
|
+
rubygems_version: 2.4.5.2
|
|
79
79
|
signing_key:
|
|
80
80
|
specification_version: 4
|
|
81
81
|
summary: XML Generator used by Elibri gems
|