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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc5da835785b9727b148432a3faa73473a838b34
4
- data.tar.gz: dc5647128e0c75589ff18c545c8120f0a4cef5bc
3
+ metadata.gz: 890e53d5c02d7c7ea2df8bc59df5d796f2563da7
4
+ data.tar.gz: 201618a6f721f235a466695dc2c188c575746b74
5
5
  SHA512:
6
- metadata.gz: ae8896927ef6ca2b2a0bdc1cb79619599cfd89f5f4257234c679a79242741f2c9f20227546677e9f215a294c35de9d6bc1fa338b9829a79622e311087865f539
7
- data.tar.gz: a65bae86f1d81e4f51f6eaa20891905991704dfe3084cdb6b9c583d0b9d76a148c207aabe445997354b5ad0ebacff0b76864b0c925ce037d6a094f609c230bda
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 dwie rodzaje kategoryzacji:
665
- # = link_to "kategoryzacja elibri", doc_api_path("categories")
666
- # oraz kategoryzacja wydawnictwa. Proszę zwrócić uwagę na tag <SubjectSchemeName> – jeśli jego zawartość to "elibri.com.pl" – mamy do czynienia
667
- # z informacją o kategorii elibri, jeśli jest tam wpisana nazwa wydawnictwa - to jest tam kategoria wydawnicza.
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 &lt;SubjectSchemeIdentifier&gt; i &lt;SubjectSchemeName&gt;:
673
+ # <ul>
674
+ # <li>&lt;SubjectSchemeIdentifier&gt; o wartościach 93 - 99 - to są kategorie i kwantyfikatory Thema
675
+ # <li>&lt;SubjectSchemeIdentifier&gt; o wartości 24 oraz &lt;SubjectSchemeName&gt; o wartości elibri.com.pl - to są kategorie elibri
676
+ # <li>&lt;SubjectSchemeIdentifier&gt; o wartości 24 oraz &lt;SubjectSchemeName&gt; 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?(:thema_codes_for_onix)
685
- product.thema_codes_for_onix.each do |code|
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
@@ -1,3 +1,3 @@
1
1
  module ElibriOnixGenerator
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.8"
3
3
  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.7
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-09-24 00:00:00.000000000 Z
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.1
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