A attentive user has the following questions about oddb2xml.
Looking for an explanation for these facts. Let's start with the NBR_RECORD. Here is is clear, that we always just outputted the length of all known articles, even when we skip a few of them, eg. because they are for veterinary useage. Also we are missing a test for them. Correcting this. This take some time, as we 10 files containing NBR_RECORD and must add unit test for all of them.
Pushed commits Fixed calculating NBR_RECORD and Bumped version to 2.3.0
Attacking the problem with the wrong price 305.83. Looks like that omitting the pharmacode from the BAG Preparations.xml is causing this effect. Wie have 383 missing GTINs in Preparations.xml. Adding a debug outout for each.
Changes look good. Found 9247 occurences of PEXF in oddb_article.xml compared to 64835 in oddb_article.xml produced with version 2.2.8 of the oddb2xml gem. Preparations.xml has 9584 ExFactoryPrice. But in Preparations.xml we have also 383 missing GTINs. Looking at 7680536620137 (3TC) we find in oddb_article.xml (produced with the options -e -I80
the following prices:
These look sensible for me.
Found that I got two items Epimineral Granulat and Epimineral Paste without GTIN, Pharmacode in oddb2xml_files_nonpharma.xls. This error should be corrected to. ZurRose contains the following lines
1125822801EPIMINERAL Paste 20 g 0043200060004000000000000000000000001 1125830700EPIMINERAL Wundgranulat 6 g 0043200060004000000000000000000000001
which means, that they have pharmacode of 830701 and 830700.
Changed code and tests to reject pharmacode 0. Pushed commits Bumped version to 2.3.1 to revert to spreadsheet 1.1.0 and Don't emit PEXF for drugs not listed with a GTIN in BAG Preparations.xml
Running test_options to see whether all is okay or not.
Working on removing the NON-Pharma.xls from oddb2xml_files. Pushed commit Deactivate (Pseudo-)Migel. Updated tests
Started test_options again.
When looking at the fachinfo on the iPhone various elements don't have the same size, e.g. "Stand. d Info" is too large and the company name "Helvepharm AG" is too small when looking at Propranolol/- retard Helvepharm
. Looking at the style sheets used via chromium (started with chromium --profile-directory=/tmp/zzz http://i.ch.oddb.org/de/mobile/fachinfo/reg/47551
).
The following differences were remarked between the td for Fachinformation zu Propranolol/- retard Helvepharm:
and Helvepharm AG
. The latter uses the css classes td right
where the former has td
. Don't know why the alignment changes the size.
Comparing the fields Überdos.
and Stand d. Info
. Has no differences (except the number of glyphs displayed) Attaching the 4 complete style description as seen by the chromium.