view · edit · sidebar · attach · print · history

< Niklaus.20160530-sandoz-xmlconv | Index | Niklaus.20160524-sandoz-bbmb >>

20160525-evidentia-icons

Summary

  • Add icons for evidentia LNF
  • Setup sandoz.bbmb.ch on oddb-ci2

Commits

Index

Keep in Mind for work to do
  • Fix dojo error http://www.sitepen.com/blog/2012/10/31/debugging-dojo-common-error-messages/#forgot-dom-ready
  • I removed on May-27 tests for ix_registrationss, fix_sequences, fix_compositions, fix_packages from test/test_plugin/swissmedic.rb,as he could not find any references for them in the src code. Did I erroneously remove stuff when cleaning up the swissmedic import earlier?
  • The whole test for older/newer Packages must be adapted to xlsx. One must compare the rows (e.g. by creating csv files) and do the same stuff in xlsx!
  • creat gem: task: input=file with ean-codes, standard output show ean-codes + atc-code. Source is Swissmedic Packungen.xlsx or XML.
  • Import via data/medreg_companies.yaml
  • Fix problem with radioactivatum 99m-technetio when parsing Wirkstoffe
  • Fix galenic_forms when parsing swissmedic.xlsx
  • Cleanup generic_type. Replace it everywhere by sl_generic_type and adapt code accordingly.
  • Get updated ATC-codes from EPha for oddb.org, too.
  • Use refdatabase for oddb.org, too.
  • Check whether we should revert the part which touche src/plugin/text_info.rb of commit 17af82ba4d76a5838683411b260de265531f9e74. We should improve test/stub/oddbapp.rb to work similar for update/pointer as the real oddbapp. In this case we would have a good Stub for plugins. May we need a different stub when working with plugins (which create/modify/destroy ODDB-Objects), when in most other cases a very simple stub is sufficient.
  • When a logged in admin user changes an atc_code of a product, the corresponding atc_class must update its sequences, too.
  • Order of entering search type and value should not matter. Both should show long URL with search
  • Remove parser for minifi (but keep the minifi)
  • BSV-Plugin does not send mail. Is it sending two mails at once?
  • remove obsolete pdf_patinfo in model, admin/views
  • Fix sbsm/htmlgrid when DEFAULT_FLAVOUR is nil

Add icons for evidentia LNF

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

Setup sandoz.bbmb.ch on oddb-ci2

TODO:

view · edit · sidebar · attach · print · history
Page last modified on May 25, 2016, at 07:31 PM