(in branch medreg)
---
Searching for pharmacies does not work. Calling jobs/rebuild_indices company_index
. Once done searching works, but when displaying a pharmacy I get the error NoMethodError undefined method `collect' for ODDB::BA_type:Class
with the following call stack
error in SBSM::Session#to_html: /de/gcc/company/ean/7601001396043 NoMethodError undefined method `collect' for ODDB::BA_type:Class /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/select.rb:45:in `selection' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/select.rb:35:in `block in to_html' (eval):679:in `select' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/select.rb:34:in `to_html' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/grid.rb:102:in `block in component_html' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/grid.rb:100:in `each' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/grid.rb:100:in `component_html' /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/grid.rb:119:in `block in to_html' (eval):1290:in `td' <..>
The same view works when not logged in. Problem is that the admin selection for business_area does not work. Made some correction, now it does display the entry when logged in as admin, but the drop_down select list for business_area is empty.
Links inside the result for http://oddb-ci2.dyndns.org/de/gcc/search/zone/pharmacies/search_query/Glarus? point to http://oddb-ci2.dyndns.org/de/gcc/company/ean/7601001380028 instead of http://oddb-ci2.dyndns.org/de/gcc/pharmacy/ean/7601001380028. Pharmacy displays "Abteilung" which it should not. Link in pharmacy to vcard http://oddb-ci2.dyndns.org/de/gcc/vcard/pharmacy/7601001380028 does not work.
Disabled displaying vcard in list and pharmacy view as we do not provide phone/fax numbers. Corrected error in import_doctor because we cannot determine the year of the exam with the data from medregom. Things look okay now for me. See
Pushed commits:
Creating a watir test for pharmacies. Done with commit Added watir test for pharmacies
Rename medreg_companies -> medreg_pharmacies to better reflect it useage. Dropping and reinstalling the database to run the pharmacies import again. Also running test/suite.rb.
Pushed commit
Now merging medreg into master branch. Rerunning test. But must fix some tests under test/test_view. Also some spec tests don't run as they should. Having many problems with smoketest as often watir/oddb-ci2 is not ready after executing actions like goto, click.