Trying to make bin/oddbd start again. I am missing quite a few gems, installing version as defined in the Gemfile.lock. But I am having problems with archive-tarsimple
sudo /usr/local/bin/gem193 install archive-tarsimple --version=1.1.1 ERROR: Could not find a valid gem 'archive-tarsimple' (= 1.1.1) in any repository # Installing a backup copy sudo /usr/local/bin/gem193 install /usr/local/lib64/ruby/gems/2.0.0/cache/archive-tarsimple-1.1.1.gem sudo /usr/local/bin/gem193 install /home/niklaus/git/ruby-dbi/pkg/dbi-0.4.5.gem /home/niklaus/git/ruby-dbi/pkg/dbd-pg-0.3.9.gem sudo /usr/local/bin/gem193 install ydim --version=1.0.0 sudo /usr/local/bin/gem193 install mime-types --version=2.6.2 sudo /usr/local/bin/gem193 install mail --version=2.2.7 sudo /usr/local/bin/gem193 install ydim --version=1.0.0 sudo /usr/local/bin/gem193 install i18n --version=0.6.9 sudo /usr/local/bin/gem193 install htmlgrid --version=1.0.6 sudo /usr/local/bin/gem193 install yus --version=1.0.0 sudo /usr/local/bin/gem193 install mechanize --version=2.7.3 sudo /usr/local/bin/gem193 install rubyXL --version=3.3.1 sudo /usr/local/bin/gem193 install spreadsheet --version=0.9.7 sudo /usr/local/bin/gem193 install racc --version=1.4.11 sudo /usr/local/bin/gem193 install savon --version=2.11.1 sudo /usr/local/bin/gem193 install ydocx --version=1.2.5 sudo /usr/local/bin/gem193 install htmlentities --version=4.3.1 sudo /usr/local/bin/gem193 install flickraw --version=0.9.8 sudo /usr/local/bin/gem193 install diffy --version=3.0.7 sudo /usr/local/bin/gem193 install swissmedic-diff --version=0.2.2 sudo /usr/local/bin/gem193 install oddb2tdat --version=1.1.2 sudo /usr/local/bin/gem193 install rmagick --version=2.13.4 sudo -u apache /usr/local/bin/ruby193 bin/oddbd <..> ouldn't load RMagick: .wmf conversion off [DEPRECATED] By requiring 'spreadsheet/excel' you are loading a Compatibility layer which provides a drop-in replacement for Spreadsheet::Excel versions <= 0.3.5.1. This code will be removed in Spreadsheet version 1.0.0 /var/www/oddb.org/src/view/drugs/resultlist.rb:24: warning: already initialized constant BACKGROUND_SUFFIX /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in `require': libruby19.so.1.9: cannot open shared object file: No such file or directory - /var/www/.gem/ruby/1.9.1/gems/rmagick-2.13.4/lib/RMagick2.so (LoadError) from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in `rescue in require' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:144:in `require' <..> # But I have ls -l /var/www/.gem/ruby/1.9.1/gems/rmagick-2.13.4/lib/RMagick2.so -rwxr-xr-x 1 apache apache 528996 24. Feb 19:13 /var/www/.gem/ruby/1.9.1/gems/rmagick-2.13.4/lib/RMagick2.so*
Moved /var/www/.gem -> /var/www/gem.unused.2016.05.25. Then oddbd started further. Still some gems missing
sudo /usr/local/bin/gem193 install sax-machine --version=1.3.2 sudo /usr/local/bin/gem193 install gruff --version=0.5.1 sudo /usr/local/bin/gem193 install paypal --version=2.0.0 sudo /usr/local/bin/gem193 install facets --version=1.8.54
Now bin/oddbd starts up. But in log/oddb/error_log I get [Wed May 25 09:35:07 2016] [error] mod_ruby: (eval):1:in `<main>': uninitialized constant ODDB (NameError)
. Changed in
/etc/apache2/vhosts.d/oddb.conf the erroneous RubyTransHandler ODDB::FlavoredTransHandler.instance
by RubyTransHandler SBSM::FlavoredTransHandler.instance
How should we add the logo for evidentia? We have a special logo for Zur Rose in src/view/drugs/resultlist.rb where we use LOGO_PATH = "http://#{SERVER_NAME}/resources/zurrose/"
. I think this will not work for evidentia, as their ressources are on their servers, and I don't know the correct path.
Created a separate /etc/apache2/vhosts.d/evidentia.conf
. See Attach:evidentia.conf.txt. Now I can see the Evidenita LNF when going to http://evidentia.oddb-ci2.dyndns.org/de/evidentia/search/zone/drugs/search_query/Brinavess/search_type/st_oddb#best_result
Using a hard coded path for the first two items I get:
The icons are too big and the following text is aligned at the bottom, whereas Evidentia wants it centered. Also missing is there new title "Klinische Informationen".
Creating a helper function for the first problems. Separated fiels for clinic information (left half) and additional information (right half). But how can I add the icons withouth having to write a function for each chapter heading? Had to add an additional class FiChapterChooserImage.
Things begin to look right. See
I assume that Evidentia will adjust their CSS to adjust the size of the Icons (css-class 'chapter-tabp) and changing "Klinische Informationen" to bold (css-class is "fi-title). Must rework my algorithm to change order form left to right, then down to down, then left to right. Looks good now.
Zeno did send me smaller 32x32 icons. Added them. Results looks nicer now.
Pushed commit Evidentia FI. Added icons/title. Changed sort order
Zeno remarked an error in the FI. The first line had disappeared. Fixed with Fixed Drucken in FI
TODO: