1.7 Alpha - CSH Query - supported document types
Submitted by Guest on Wed, 26/06/2013 - 07:48
I would like to add information on supported document types to CSH. Something like:
When you import a file (eg by pressing the Report button on the Edit Investigation screen) the system may do other than just attaching the file.
Depending on the file type, it will do one of the following:
- simply import and attach the file (for .pdf, image [.jpg, .png, ???], .txt, .xls, and ??? files). When you click on these the file will be downloaded to the browser and will either be immediately displayed or the browser will suggest a suitable program (eg Excel for a .xls file)
- generate a pdf and attach that (for .odt, .doc, ??? files)
- fail to import and attach but give no error message (for .docx, .xlsx, and ??? files)
The last occurs when the type of file is not recognised (and this set includes the 'modern' Microsoft Office formats).
Q1: is the above broadly correct?
Q2: is the set of recognised files that given by the Apache Open Office page at http://wiki.openoffice.org/wiki/Documentation/OOo3_User_Guides/Getting_S...
Q3: what is the list of extensions for which Action 2 occurs (ie generate a pdf)
Regards, Tim G
Re: 1.7 Alpha - CSH Query - supported document types
Any file type can be loaded into OpenVPMS for the purposes of attaching a document.
The mime-type associated with it is important for how it is handled, although more from a browser perspective the OpenVPMS. OpenVPMS only really uses the mime type to:
When a document is clicked on, OpenVPMS includes its mime-type in the http response so that the browser can handle it appropriately.
-Tim A
Re: 1.7 Alpha - CSH Query - supported document types
Thanks Tim - I now understand and will document this behaviour. Regards, Tim