1.7 Alpha - CSH Query - supported document types

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:

  1. 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)
  2. generate a pdf and attach that (for .odt, .doc, ??? files)
  3. 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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

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:

  • determine if the file is an OpenOffice or Word document. If so, a button will be added to download the document as a PDF
  • display an appropriate icon

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

Syndicate content