---
I am not sure whether my results are correct. Eg. here some numbers
grep -c "SALECD>I" 1.8.5/oddb2xml__e/oddb_article.xml 1.8.7/oddb2xml__e/oddb_article.xml 1.8.5/oddb2xml__e/oddb_article.xml:52 1.8.7/oddb2xml__e/oddb_article.xml:84653 grep -c "SALECD>A" 1.8.5/oddb2xml__e/oddb_article.xml 1.8.7/oddb2xml__e/oddb_article.xml 1.8.5/oddb2xml__e/oddb_article.xml:160062 1.8.7/oddb2xml__e/oddb_article.xml:75879 grep -c "NINCD>13" 1.8.5/oddb2xml__e/oddb_article.xml 1.8.7/oddb2xml__e/oddb_article.xml 1.8.5/oddb2xml__e/oddb_article.xml:28992 1.8.7/oddb2xml__e/oddb_article.xml:28723 egrep -c '^113' 1.8.5/oddb2xml__e/downloads/zurrose_transfer.dat 1.8.7/oddb2xml__e/zurrose_transfer.dat 1.8.5/oddb2xml__e/downloads/zurrose_transfer.dat:57369 1.8.7/oddb2xml__e/zurrose_transfer.dat:58540 egrep -c '^112' 1.8.5/oddb2xml__e/downloads/zurrose_transfer.dat 1.8.7/oddb2xml__e/zurrose_transfer.dat 1.8.5/oddb2xml__e/downloads/zurrose_transfer.dat:79417 1.8.7/oddb2xml__e/zurrose_transfer.dat:79508 egrep -c '^111' 1.8.5/oddb2xml__e/downloads/zurrose_transfer.dat 1.8.7/oddb2xml__e/zurrose_transfer.dat 1.8.5/oddb2xml__e/downloads/zurrose_transfer.dat:1226 1.8.7/oddb2xml__e/zurrose_transfer.dat:845
Pushed commit SALESCD is now 'A' for NINCD='13' (Migel) to allow Zeno to test this variant.
Trying to fix the last error from the watir tests.
error in SBSM::Session#to_html: /de/gcc/print/rezept/ean/7680576730049/7680317061142/7680193950301/7680353520153/7680516821226/7680588680028/7680517560100/7680587340015/7680352630396/7680480880748 NoMethodError undefined method `name' for []:Array /var/www/oddb.org/src/model/package.rb:193:in `company_name' /usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/stub.rb:112:in `method_missing' /var/www/oddb.org/src/view/drugs/prescription.rb:415:in `name' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:68:in `create' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:286:in `compose_component' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:211:in `block in compose' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:205:in `each' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:205:in `compose' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:57:in `init' /var/www/oddb.org/src/view/drugs/prescription.rb:400:in `init' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/component.rb:139:in `initialize' /var/www/oddb.org/src/view/drugs/prescription.rb:533:in `new' /var/www/oddb.org/src/view/drugs/prescription.rb:533:in `block in document' /var/www/oddb.org/src/view/drugs/prescription.rb:532:in `each' /var/www/oddb.org/src/view/drugs/prescription.rb:532:in `document' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:143:in `create' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/divcomposite.rb:33:in `block in compose' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/divcomposite.rb:13:in `each' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/divcomposite.rb:13:in `compose' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:57:in `init' /var/www/oddb.org/src/view/drugs/prescription.rb:475:in `init' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/component.rb:139:in `initialize' /var/www/oddb.org/src/view/publictemplate.rb:63:in `new' /var/www/oddb.org/src/view/publictemplate.rb:63:in `content' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:68:in `create' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:286:in `compose_component' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:211:in `block in compose' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:205:in `each' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:205:in `compose' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:57:in `init' /var/www/oddb.org/src/view/publictemplate.rb:60:in `init' /var/www/oddb.org/src/view/printtemplate.rb:33:in `init' /var/www/oddb.org/src/view/drugs/prescription.rb:548:in `init' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/component.rb:139:in `initialize' /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.6/lib/sbsm/state.rb:252:in `new' /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.6/lib/sbsm/state.rb:252:in `view' /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.6/lib/sbsm/state.rb:186:in `to_html' /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.6/lib/sbsm/session.rb:450:in `to_html' /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.6/lib/sbsm/session.rb:173:in `block in drb_process' <internal:prelude>:10:in `synchronize' /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.6/lib/sbsm/session.rb:171:in `drb_process' /usr/local/lib/ruby/1.9.1/drb/drb.rb:1548:in `perform_without_block' /usr/local/lib/ruby/1.9.1/drb/drb.rb:1508:in `perform' /usr/local/lib/ruby/1.9.1/drb/drb.rb:1586:in `block (2 levels) in main_loop' /usr/local/lib/ruby/1.9.1/drb/drb.rb:1582:in `loop' /usr/local/lib/ruby/1.9.1/drb/drb.rb:1582:in `block in main_loop' ODDB::View::Drugs::PrescriptionPrintInnerComposite::COMPONENTS[[0, 1]] in create(name) ODDB::View::Drugs::PrescriptionPrintComposite::COMPONENTS[[0, 8]] in create(document) ODDB::View::Drugs::PrescriptionPrint::COMPONENTS[[0, 1]] in create(content) error in SBSM::Session#http_headers: /de/gcc/print/rezept/ean/7680576730049/7680317061142/7680193950301/7680353520153/7680516821226/7680588680028/7680517560100/7680587340015/7680352630396/7680480880748 NoMethodError undefined method `name' for []:Array /var/www/oddb.org/src/model/package.rb:193:in `company_name' /usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/stub.rb:112:in `method_missing' /var/www/oddb.org/src/view/drugs/prescription.rb:415:in `name' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:68:in `create' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:286:in `compose_component'
Fixed these problems. Corrected some watir tests.
Pushed these commits:
I want to eliminate all usage of persistent_user_input(:drugs)
as this information should alwys be extracted from the URL.
Watir tests are as good as before, but I remarked that the fachinfo_search (Erweiterte Suche) does not work. Added a first (failing) Watir test for it.
Will solve this problem next week. Saving current state as Attach:persistent_search_patch.txt