In the KTiny repository, apart from the client itself you'll find several server modules. We'd like, of course, them to be added to the official TinyERP server distribution, but even if that happens someday, their everyday development needs to be somewhere and we want the process to remain public.
In this chapter you'll find an in-depth explanation of each module. What offers to the user and how it's done for developers to improve it. However, before explaining each module, we will explain how to make it available to TinyERP for install.
Server modules can be found in the server-modules directory in the KTiny source distribution. There, each directory is a different module that can be independently installed, except otherwise stated in the specific module documentation. In this directory you can also find a shell script named create-symlinks.sh which can be used in Unix machines to make all the modules available to the TinyERP server.
Suppose you have your server at /usr/local/tinyerp, then use ./create-symlinks.sh /usr/local/tinyerp/bin/addons, restart the server and the modules should be available at Administration -> Modules Management -> Modules -> Uninstalled Modules
When installed, this module automatically extracts information from attached files and stores it in a new field in the database. Extracted information means that it can read text from PDF, ODF, DOC or TXT files (among others) and if the file is an image it is scanned using an Optical Character Recognition (OCR) program.
For the module to work properly you'll need to satisfy some dependencies on external programs (server side):
Strigi. The module uses xmlindexer which comes with strigi's distribution to extract the text of different files, such as text files, PDF, ODF, etc. Probably newer versions will recognize more file formats, so the newer the better. (http://strigi.sf.net)
Gamera. Optional: You will need this program if you want text extraction from images to work. Currently it's only used for threasholding the image but it'll be much more used in the future. Note that you will probably need to set PATH and PYTHONPATH appropiately before launching the server! (http://ldp.library.jhu.edu/projects/gamera/)
tesseract-ocr. Optional: You will need this program if you want text extraction from images to work. Currently version 1.44 is used but code for version 2 is already in SVN ready to be tested, and will become a requirement in the near future for a couple of reasons: It's faster and supports languages other than English. (http://code.google.com/p/tesseract-ocr/)