could not connect to www.swissreg.ch: #<Net::HTTPInternalServerError:0x007f8a7d69bb58>
---
In http://oddb-ci2.dyndns.org/de/gcc/show/reg/62949/seq/01/pack/001 (viagra) it shows
Packungsbestandteile 4 Tablette(n) Substanz Stärke Sildenafil 50 mg Galenische FormSchmelztabletten Quelle
whereas with Sinovial http://oddb-ci2.dyndns.org/de/gcc/show/reg/1229109224/seq/09/pack/224 shows
Packungsbestandteile Fertigspritze(n) à 2 ml Substanz Stärke Galenische Form Quelle
But when going into the administrative view http://oddb-ci2.dyndns.org/de/gcc/drug/reg/1229109224/seq/09/pack/224 the Fertigspritze is there (as it should).
Added lot of debug output in src/view/package.rb and src/view/admin/package.rb (and sequence as well) but still not finding a place where a part is shown or not.
As I have no good idea to look further saved my debug output to Attach:debug_show_reg.txt.
Added a puts in src/state/global to track calls to Rezept with ean. Adding a second medicament did not lead to display anything there. Debugging the JavaScript.
Fixed src/view/searchbar.rb to allow not only home_interactions but rezept to return multiple EAN13s. Then I see that the Validator got ean13 "7680495260320,7680626300017"
. Must fix it to allow several ean13s.
Debugging show that the url http://oddb-ci2.dyndns.org/de/gcc/ajax_add_drug/state_id/70127453791680 is used to add a medical, but somehow this event gets lost.
Remarked that the link "Interaktionen überprüfen" in Prescription does not work anymore as epha does no longer support search by atc-code!
Replacing the code of the searchbar.rb with the one before my changes for interactions. The situation is the following
Verified running spec/interactions_spec.rb that the interactions still work. Had to run the spec on my debian, as on gentoo I got the following error when running bundle install
Installing tmail (1.2.7.1) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby19 extconf.rb creating Makefile make compiling tmailscanner.c tmailscanner.c: In Funktion »mails_s_new«: tmailscanner.c:105:9: Warnung: Zuweisung erzeugt Zeiger von Ganzzahl ohne Typkonvertierung [standardmäßig aktiviert] tmailscanner.c: In Funktion »skip_japanese_string«: tmailscanner.c:208:2: Warnung: Übergabe des Arguments 1 von »rb_enc_get« erzeugt Ganzzahl von Zeiger ohne Typkonvertierung [standardmäßig aktiviert] /usr/include/ruby-1.9.1/ruby/encoding.h:92:14: Anmerkung: »VALUE« erwartet, aber Argument hat Typ »struct scanner *« linking shared-object tmailscanner.so tmailscanner.o: In function `mails_s_new': tmailscanner.c:(.text+0x308): undefined reference to `rb_get_kcode' collect2: ld gab 1 als Ende-Status zurück Makefile:214: recipe for target 'tmailscanner.so' failed make: *** [tmailscanner.so] Error 1 Gem files will remain installed in /var/www/oddb.org/vendor/bundle/ruby/1.9.1/gems/tmail-1.2.7.1 for inspection. Results logged to /var/www/oddb.org/vendor/bundle/ruby/1.9.1/gems/tmail-1.2.7.1/ext/tmailscanner/tmail/gem_make.out An error occurred while installing tmail (1.2.7.1), and Bundler cannot continue. Make sure that `gem install tmail -v '1.2.7.1'` succeeds before bundling. locate tmail.rb /usr/lib64/ruby/gems/1.8/gems/tmail-1.2.7.1/lib/tmail.rb /usr/lib64/ruby/gems/1.9.1/gems/tmail-1.2.7.1/lib/tmail.rb
Why does installing tmail 1.2.7.1 with bundle install fail, when installing it as normal gem worked fine?
Or can I install the missing gems like rspec, watir, watir-webdrivers via gentoo?
Pushed commits
Pulled changes to thinpower and restarted ch.oddb. Now we are able to add several medicals to a prescription.