view · edit · sidebar · attach · print · history

20120406-update-dojo-tooltip-refdata-xml

<< | Index | >>


summary

  • updated ch.oddb.org, htmlgrid against dojo-1.7
    • removed deprecated onLoad definitions.
    • updated data-dojo-config (firebug support off)
    • updated tooltip (renamed DynamigTooltip class)
    • updated structire
    • removed old version support of htmlgrid (only >= 1.7.0)
  • tried dojo-build
  • update SwissindexPharmad and SwissindexPharmaPlugin

commit

index


update for Dojo 1.7

Updated and removed deprecated code for dojo-1.7.

tooltip

Updated sytax.
But ywesee original tooltip class does not work in dojo-1.7.2.
Because href support of dojo.Tooltip was moved to dojo.widget.DynamicTooltip. (from 1.4 ?)

Refs

fachinfo editor

Fachinfo Editor was template copy from old version dojo.
Then switched new dijit.Editor

just one line.

require(["dijit/Editor", "dojo/parser", "dojo/domReady!"]);

Refs


Dojo build

compressed and striped debug output.

javascript loading was become 3 and a half times faster (9~12 ms -> 2~3 ms)

build options
./build.sh action=release optimize=shrinksafe stripConsole=all

or

Attach:oddb.profile.js-20120406.txt

seps
  • download src version.
  • cd buildscripts.
  • run build.sh with above progile or build options.
  • use release/dojo build

Refs


swissindex_updater

swissindex.e-mediat.net is not responding.

$ ping -c 3 swissindex.e-mediat.net
ping: unknown host swissindex.e-mediat.net

Refs

Refdata API

I used URL of current swissindex_pharmad

It seems that this is old format WSDL (in PDF of Refdata)
https://swissindex.refdata.ch/Swissindex/Pharma/ws_Pharma_V101.asmx?WSDL

This server (swissindex.refdata.ch) is responding, but returned old(or invalid) wsdl document.

This is respond

https://index.ws.e-mediat.net/Swissindex/Pharma/ws_Pharma_V101.asmx?WSDL

downloaded items

Attach:savon-sample-20120406.rb.txt

response.to_hash by Savon
{
  :gtin   => "7680202580475",
  :phar   => "20209",
  :status => "A",
  :stdate => #<DateTime: 2002-05-23T00:00:00+00:00 ((2452418j,0s,0n),+0s,2299161j)>,
  :lang   => "DE", 
  :dscr   => "ERYTHROCIN i.v. Trockensub 1000 mg",
  :addscr => "Amp",
  :atc    => "J01FA01",
  :comp   => {  
    :name => "Pro Concepta Zug AG",
    :gln  => "7640111540007"
  },
  :@dt => "2011-10-18T00:00:00"
}
...

Refs

view · edit · sidebar · attach · print · history
Page last modified on April 10, 2012, at 03:31 PM