could not connect to www.swissreg.ch: #<Net::HTTPInternalServerError:0x007f8a7d69bb58>
---
The field :prescription_comment is a textareas which has the CSS class wide, which is defined with width : 750px; height : 100px;
in doc/resources/gcc/oddb.css. These values are not overwritten by in the mobile *.css like doc/resources/mobile/oddb.css.
To proceeed I will add all current *.css files from thinpower to the oddb. First saving a backup calling cp -rp doc/resources ~/backup.resourcea
in /var/www/oddb.org
. Then removing the obsolete definitions by calling (as root)
rm -rf doc/resources/swissmedic \ doc/resources/gerimedi \ doc/resources/innova \ doc/resources/provita \ doc/resources/schoenenberger \ doc/resources/sympany
The following errors must be fixed:
oddb2xml -t md
fails (is orphan now a xlsx file?)
oddb2xml -a nonpharma -f dat
file with /home/zeno/.gem/ruby/1.9.1/gems/oddb2xml-1.7.8/lib/oddb2xml/builder.rb:1091:in `%': invalid value for Integer(): "0707387007355" (ArgumentError)
The orphan file is now an XLSX-file too and we needed some minor changes in lib/oddb2xml/extractor.rb and lib/oddb2xml/downloader.rb to adapt to it. Running oddb2xml -e
takes a long time again.
Pushed commits Orphan is now an xlsx file, too and Bump version to 1.7.9 and adapte Gemfile.lock
Thinking about on how we can improve the testing to avoid errors like nr 2 and 3 in our list. The following ideas came into my mind.
Pushed commit Avoid ArgumentError for sprintf
Made rspec pass again with commit Fix rspec
Added spec task to rake with commit Add spec task to rake
Looking around why we have duplicates I found the following stuff for Zyvoxid Filmtab in data/download:
data/download/oddb2xml_zurrose_transfer.dat:1122465312ZYVOXID Filmtabl 600 mg 10 Stk 096114108275100A080190076805555800542 ata/download/swissindex_Pharma_DE.xml- <ITEM DT="2013-06-22T00:00:00"> data/download/swissindex_Pharma_DE.xml- <GTIN>7680555580054</GTIN> data/download/swissindex_Pharma_DE.xml- <PHAR>2465312</PHAR> data/download/swissindex_Pharma_DE.xml- <STATUS>A</STATUS> data/download/swissindex_Pharma_DE.xml- <STDATE>2002-01-16T00:00:00</STDATE> data/download/swissindex_Pharma_DE.xml- <LANG>DE</LANG> data/download/swissindex_Pharma_DE.xml: <DSCR>ZYVOXID Filmtabl 600 mg</DSCR> data/download/swissindex_Pharma_DE.xml- <ADDSCR>10 Stk</ADDSCR> data/download/swissindex_Pharma_DE.xml- <ATC>J01XX08</ATC> data/download/swissindex_Pharma_DE.xml- <COMP> data/download/swissindex_Pharma_DE.xml- <NAME>Pfizer AG</NAME> data/download/swissindex_Pharma_DE.xml- <GLN>7601001010604</GLN> data/download/swissindex_Pharma_DE.xml- </COMP> data/download/swissindex_Pharma_DE.xml- </ITEM>
Therefore I asking myself why we get a duplicate with STATUS I?