gawati / gawati-portal-ui

Version 2 of the gawati portal
GNU Affero General Public License v3.0
0 stars 0 forks source link

Customized Viewers for Portal-ui #91

Open kohsah opened 6 years ago

kohsah commented 6 years ago

Currently the viewer for documents when you open a document defaults to PDF.

e.g. https://dev.gawati.org/_lang/en/doc/_iri/akn/mu/act/1970-09-18/gn_no52_of_1970/eng@/!main

We need to make this pluggable to support other formats -- see DocumentContentColumn where DocumentPDF is loaded. we need to make that DocumentPDF component selection dynamic based on what is the type specified for the Document.

As an example use:

PNG DOCX XML

as types , and provide custom viewers for them.

if the file type of the document in the system is PDF it will use DocumentPDF... otherwise it will use one of the available components DocumentPNG, DocumentDOCX and DocumentXML based on the attached type.

kohsah commented 6 years ago

See Issue #96