view · edit · sidebar · attach · print · history

20120322-patinfo2csv-dojo-update

<< | Index | >>


summary

  • patinfo2csv
    • generated patinfo.csv from patinfo.yaml and pharmacode.txt
    • added simple report output.
    • fixed column
    • added language option support
  • test new version dojo
    • updated hover style for compare_search(/de/mobile/compare_search) with css
    • upgrade to 1.7.2

commit

index


patinfo.csv

try full output

  • updated delimiter as ";"
  • updated error handling
  • added report output after converting.
$ bin/patinfo2csv ../patinfo.yaml ../patinfo.csv ../pharmacode.txt
converted: 263 rows
-----
There is no chapters of Patinfo of the following 188 codes
[0515514,0075133,0772777,0607831,4171419,0543396,0543404,4164626,0972329,3603124,3603130,3815547,0848836,2759829,0674916,1841204,3779515,4615253,0877536,0779756,0414368,3673426,1481846,3673432,1594852,3263272,0574534,1292625,1292631,2295399,2295407,0677659,1591210,3805307,0057980,0799523,0959398,0799546,0959406,2366627,2366656,2984667,2349793,0188512,2550377,3254617,3254646,4551493,4551501,3623150,3623167,2560884,2560890,2275385,4234278,4234290,0863497,0516206,0516181,0086243,0965217,2190795,0640917,0640923,1376049,0931336,0606010,0218911,0414500,3628319,3412832,0058910,0058985,2740959,2726149,0165847,0623474,1527761,1527778,4043489,2800472,3014882,3014899,3065721,3065738,0517269,0469694,2528372,2528366,2630260,2932682,0104343,3688126,1422074,1344813,0377182,0104722,0709514,0377199,2727143,2811464,3264308,2415768,2404144,2415863,2404262,2404316,2404351,2404799,2404842,2404888,2404925,2416242,1425865,3729463,0363085,4721937,1962913,1962907,3443519,4170495,4170555,1857671,1351167,4108711,2416288,4422005,0206753,1616387,2500735,0055679,1841210,0543893,4721966,4721943,4348272,0682790,4796349,4666842,4666813,3023042,2418732,2418838,2387894,2534993,0208456,0875425,4781945,0861073,1329676,4109389,2381443,2381437,2680921,1402261,0068386,0931342,4047777,0915277,0915260,0953214,1202504,4612740,4165057,4165040,0682809,2813196,0587399,0587376,1902207,3596625,3596631,1668846,4963830,4963787,4963818,0587637,0394157,2580450,2580409,3823788,3823794,0543887,4835345,4835339,2863159,2863142,0523413]

created as simple gem with bundler.

$ rake -T
rake build    # Build patinfo2csv-0.0.1.gem into the pkg directory
rake install  # Build and install patinfo2csv-0.0.1.gem into system gems
rake release  # Create tag v0.0.1 and build and push patinfo2csv-0.0.1.gem to Rubygems

update patinfo2csv

  • added subheading of chapter in text
  • fixed column (added blank cell, if text empty)
  • added language option support (default de)
new usage
$ bin/patinfo2csv --help
Usage: patinfo2csv <input patinfo.yaml> <output patinfo.csv> <input pharmacode.txt> [-l (de|fr)]
    -v, --version      Show version
    -l, --lang         Language option (de|fr) default de
    -h, --help         Print this help message

It may be better to update output file as option.

refs


test dojo new versions

We have problem that dojo.Combobox are not applied highlight style at Webkit browser on iOS.
I tested newer versions of dojo. (current version 1.3.0)

Check point
1.3.3
  • tooltip works fine.
  • highlight style not works.
1.4.3
  • tooltip works(but, first mouse hover doesn't works).
  • highlight style not works.
exception in animation handler for: onEnd
Error: No match found
(43 out of range 16)
1.6.1, 1.7.2
  • tooltip doesn't work (no error) tooltip works (request took 12 sec. in my machine).
  • highlight style by mousehover doesn't works
  • highlight style by tap-selection works fine.
ToolTip doesn't works waiting
works on 1.7.2

in dojo-1.7.2, it seems that loading of javascript take more sec than dojo 1.3.0.

updated hover style for this menu item of combobox with css.

...
#searchbar_popup .dijitMenuItemHower,
#searchbar_popup .dijitMenuItemSelected {
  background-color: $bg_bright;
  color: black;
}
...

refs

view · edit · sidebar · attach · print · history
Page last modified on March 23, 2012, at 08:14 AM