oddb2xml 1.5.6 → 1.5.7

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.
@@ -1,3 +1,7 @@
1
+ === 1.5.7 / 09.07.2013
2
+
3
+ * Update to include no seq entries into fi_product
4
+
1
5
  === 1.5.6 / 09.07.2013
2
6
 
3
7
  * Fix bug zurrose price format
@@ -764,8 +764,9 @@ module Oddb2xml
764
764
  info_index[info[:monid]] = i
765
765
  end
766
766
  end
767
- @products.select{|obj| obj[:seq] }.
768
- group_by{|obj| obj[:seq][:swissmedic_number5] }.each_pair do |monid, products|
767
+ @products.group_by{|obj|
768
+ obj[:no8].to_s[0..4] # swissmedic_number5
769
+ }.each_pair do |monid, products|
769
770
  if info_index[monid]
770
771
  xml.KP('DT' => '') {
771
772
  xml.MONID monid
@@ -324,7 +324,7 @@ module Oddb2xml
324
324
  if text = html.xpath("///div[@id='Section7750']/p").text
325
325
  # 1 ~ 3 swissmedic number
326
326
  if text =~ /(\d{5})[,\s]*(\d{5})?|(\d{5})[,\s]*(\d{5})?[,\s]*(\d{5})?/
327
- [$1, $2, $3].compact.each do |n|
327
+ [$1, $2, $3].compact.each do |n| # plural
328
328
  item[:monid] = n
329
329
  data[lang] << item
330
330
  end
@@ -1,3 +1,3 @@
1
1
  module Oddb2xml
2
- VERSION = "1.5.6"
2
+ VERSION = "1.5.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oddb2xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.6
4
+ version: 1.5.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: