view · edit · sidebar · attach · print · history

20120720-vaccines-error-google-bot-process

<< | Index | >>


Summary

  • Fixed error in vacciens list
  • Added new application process for google bot
  • Create Pharmakokinetic link

Commits

Index


Fix vaccines list error

  • /de/santesuisse/vaccines/range/a
NoMethodError
undefined method `sequence' for Albumin CSL 20%:ODDB::Sequence

NoMethodError
undefined method `sequence' for Intratect, Infusionslösung:ODDB::Sequence
in src/view/additional_information.rb
comps = model.compositions.empty? ? model.sequence.compositions : model.compositions
undefined method `sequence' for Intratect, Infusionslösung:ODDB::Sequence
/var/ch.oddb.org/src/view/additional_information.rb:113:in `compositions'
/path/to/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:68:in `create'
/path/to/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:286:in `compose_component'
/path/to/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:211:in `block in compose'
/path/to/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:205:in `each'

create process for Google crawler bot

Googl grawler has "Googlebot" or "Googlebot-Image" as User-agent.

Refs

status file
  • /resources/downloads/status_google_crawler
commit

Setuped daemontools in production server.
as /service/ch.oddb-google-crawler

Refs


Create Pharmakokinetic link

If atc code is longer than 6, Pharmakokinetik link is shown in search result.


Debug export_fachinfo_yaml

Jobs/export_fachinfo_yaml

There are no error.
Because exportd das class definitions of Text Objects for yaml format.

    class Table
      include ODDB::OddbYaml
      EXPORT_PROPERTIES = [ 
        '@rows'
      ]   
    end

Debug import_bsv_followers

There is no error.
Because main update target ist "Package." (Some sequences does not have composition variable, but this is not probelm in this Job.)


Create Receipt form

create printable receipt view.

in src/state/global.rb

        PRINT_STATES = {
          [ :fachinfo ]                           => State::Drugs::FachinfoPrint,
          [ :patinfo ]                            => State::Drugs::PatinfoPrint,
          [ :receipt ]                            => State::Drugs::ReceiptPrint,
        }
view · edit · sidebar · attach · print · history
Page last modified on July 20, 2012, at 12:26 PM