Ga naar inhoud

Javascript objects

Synopsis

All data of Kabisa is static. This means we could simply create a set of fixed JSON data arrays.

However, this means that at program startup, the whole Javascript needs to be parsed and stored in memory. Instead, we will store the data in an IndexDB database. The database must be created and filled only once: When the program is created. IndexDB storage is infinite for all practical purposes.

A program will be made that converts the Interbase database to JSON structures that can be stored in the IndexDB database.

Areas:

The data is often split per language or area. The following codes are used for area:

  • af: Africa
  • as: Asia
  • am: Americas
  • gp: General practitioner (?)
  • tr : Travel clinic

If data is split up per area, then a JSON object with field names equal to these codes is used.

Languague:

The program is multi-lingual. The following language codes are used:

  • en: English
  • nl: Dutch
  • fr: French
  • it: Italian
  • de: German
  • es: Spanish
  • pt: Portugese
  • id: Indonesian

If data is split up per area, then a JSON object with field names equal to these codes is used.

Objects