view · edit · sidebar · attach · print · history

20130125-change-oddb2xml-dat-behavior-and-outputs

<< | Index | >>


Summary

  • change behavior of oddb2xml dat.

Commits

Index


* oddb2xml-dat-output

swissmedic_category
 row << "%#{DAT_LEN[:CIKS]}s"  % if (pac && pac[:swissmedic_category] =~ /^[ABCDE]$/) #=> bagXML
                                            pac[:swissmedic_category]
                                          elsif (@packs[num])                         #=> Packungen.xls
                                            @packs[num][:swissmedic_category]
                                          else                                        #=> not found
                                            '0' 
                                          end.gsub(/(\+|\s)/, '')
commit
CBGG
row << "%#{DAT_LEN[:CBGG]}s"  % if ((pac && pac[:narcosis_flag] == 'Y') or           # BAGXml
                                              (@flags[de_pac[:ean]]))                # ywesee BM_update
                                            '3'
                                          else
                                            '0' 
                                          end
commit
CKZL
row << "%#{DAT_LEN[:CKZL]}s"  % (pac ? '1' : '3') # sl_entry or not
commit
CLAG
row << "%#{DAT_LEN[:CLAG]}s"  % if ((num && num.to_s =~ /(\d{5})(\d{3})/) and
                                     @fridges.include?($1.to_s))
                                  '1'
                                else
                                  '0'
                                end
commit

dat output

$ oddb2xml -f dat                         #=> oddb.dat
$ oddb2xml -f dat -a nonpharma            #=> oddb_with_migel.dat
$ oddb2xml -f dat -a nonpharma -c tar.gz  #=> oddb_dat.xx.xx.xx_xx.xx.tar.gz
commit
view · edit · sidebar · attach · print · history
Page last modified on January 25, 2013, at 09:00 AM