view · edit · sidebar · attach · print · history

Index>

20150106-evidentia-look-and-feel

Summary

  • create eventia look and feel based on "atupri/atupri-web"
  • having a look at NixOS
  • medreg gem should generate csv files

Commits

Index

Keep in Mind for work to do in 2015
  • 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!
  • search for registration holder like mepha should work. bin/admin works for search_companies('Mepha')
  • info registration holder like mepha should should include fields like ydim-i. Mepha (No) and Novartis Ophthalmics AG (Yes, but fields are empty)
  • creat gem: task: input=file with ean-codes, standard output show ean-codes + atc-code. Source is Swissmedic Packungen.xlsx or XML.
  • Display 10 recalls not only those from this month
  • Import via data/medreg_companies.yaml

---

medreg skip (almost) empty lines

medreg gem should skip adress lines consisting of a single '.'. e.g. medregom displays for 7601000264015 and address. Fixed this problem with commit Skip almost empty address lines

medreg gem should generate csv files

When having several addresses, we should generate several lines with the same GTIN.

Just found out that they made changes on the medregom page to make our search impossible, eg. shortcuts like http://www.medregom.admin.ch/de/Suche/Detail/?gln=7601000186874&vorname=Luca&name=a+Marca do not work anymore. But it does not seem to affect our results.

Pushed commits:

Must now generate CSV files for the companies, too.

Pushed commits:

Started medreg import.

create eventia look and feel based on "atupri/atupri-web"

Must add an method for getting the google-analytics token to LookandfeelBase. Added test. Corrected URL of evidentia. Things look now better, but the google_analytics is not active when looking at http://evidentia.oddb-ci2.dyndns.org/. Fixed this problem. Waiting for the external css.

Pushed commits:

The relevant part of the apache config looks like this

 <VirtualHost *:80>        
  DocumentRoot /var/www/oddb.org/doc
  ServerName evidentia.oddb-ci2.dyndns.org                      
  DirectoryIndex index.rbx                                        
  RubyAddPath /var/www/oddb.org/src
  RubyRequire 'sbsm/trans_handler'
  SetHandler ruby-object                              
  RubyTransHandler SBSM::FlavoredTransHandler.instance
  ErrorLog "|/usr/sbin/cronolog -l /var/www/oddb.org/log/evidentia/error_log /var/www/oddb.org/log/evidentia/%Y/%m/%d/error_log"
  CustomLog "|/usr/sbin/cronolog -l /var/www/oddb.org/log/evidentia/access_log /var/www/oddb.org/log/evidentia/%Y/%m/%d/access_log" combined
  SetEnv DEFAULT_FLAVOR evidentia
  AddDefaultCharset UTF-8                     

  Alias /robots.txt /var/www/oddb.org/doc/robots.txt

  RewriteEngine On               
  RewriteRule ^/(..)/?$ /$1/ [PT]
  RewriteRule ^/(..)/(evidentia)(.*) /$1/evidentia$3 [PT]
  RewriteRule ^/(..)/([^/]*)/?(.*) http://$2.oddb.org/$1/$2/$3 [R,L]
</VirtualHost>  

-- having a look at NixOS

http://lwn.net had a pointer to an intersting blog about NixOS. I read it, saw that NixOS and ruby are not the best friends, as ruby has its own dependency hell, which cannot be solved easily with Nixos.

Tried to get the spreadsheet gem working. Tried

nix-env -i ruby-bundler
git clone https://github.com/zdavatz/spreadsheet.git
cd spreadsheet
bundle install
bundle exec rake install_gem # fails with
<..>
cd pkg/spreadsheet-1.0.0
rake aborted!
"[![Build Status](https://secure.travis-ci.org/zdavatz/spreadsheet.png)](http://travis-ci.org/zdavatz/spreadsheet)" is not a URI
/nix/store/nyv367y4dksxwz6w91pd56bpaw2vrqr1-rubygems-1.8.25/lib/rubygems/specification.rb:2099:in `validate'
/nix/store/nyv367y4dksxwz6w91pd56bpaw2vrqr1-rubygems-1.8.25/lib/rubygems/builder.rb:37:in `build'
/nix/store/nyv367y4dksxwz6w91pd56bpaw2vrqr1-rubygems-1.8.25/lib/rubygems/package_task.rb:116:in `block (3 levels) in define'
/nix/store/nyv367y4dksxwz6w91pd56bpaw2vrqr1-rubygems-1.8.25/lib/rubygems/package_task.rb:115:in `block (2 levels) in define'
/nix/store/nyv367y4dksxwz6w91pd56bpaw2vrqr1-rubygems-1.8.25/lib/rubygems/package_task.rb:114:in `block in define'
Tasks: TOP => install_gem => package => gem => pkg/spreadsheet-1.0.0.gem
(See full trace by running task with --trace)

Wondering why sometime package names have different names than usual. nix-env -i eclipse-sdk-4.4 works, but add eclipse-sdk-4.4 to /etc/nixos/configuration.nix fails.

view · edit · sidebar · attach · print · history
Page last modified on January 06, 2015, at 05:46 PM