CVS edit link for vivekkhurana
I want to write an odf file importer which will allow importing and exporting of .odt , .ods and .odp files into drupal node. Opendocument has published a toolkit to allow transforming odf files to html, here
http://opendocumentfellowship.com/projects/odftools . This project is released under dual license of GPL and APL.
I have created an importer for odt files which allows importing content from an odt file while creating the node. This module alters node form to add an extra control for selecting odf file to import. The content of the imported file is set as the body of the node. This module can be downloaded from
http://www.vivekkhurana.net/odfimport.tar.gz
The module uses a modified version of XSLT shipped with odftools project mentioned above. The modifications were done to make the output of xslt transformation, compatible with drupal.
Right now the importer can import content but no style from the odt file. Future versions will be able to do so. The roadmap for developing this module will be as following
- Import style information from odt file as inline style.
- Add support for open document spreadsheet and presentation formats
- Import meta information from odf file and map to suitable atrributes of node
- Import revision information from odf file and map to node_revision.
- Allow multipage odt file to be imported as individual book pages
- Plugin for integration with open office (may be as separate project).
I discussed about this module on #drupal @ freenode about two months ago and got a thumbs up to develop such a module. Hence applying for CVS access.
Comments
Comment #1
catchI think this needs to be CNR.
Comment #2
vivekkhurana commentedattaching the module
Comment #3
avpadernoComment #4
dawehnerCheckout http://drupal.org/coding-standards
Why do you do
TODO:
check domDocument in your install file, in the hook_requirements hook. There are sure hosts where this is not enabled :(
Comment #5
avpadernoComment #6
vivekkhurana commentedCode updated as per the comments.
Comment #7
vivekkhurana commentedUpdated code after running Coder.
Comment #8
dawehnerNo it looks fine. Sure there are some minor stuff, but this could be done later.
Comment #9
vivekkhurana commentedFixed minor stuff.
Comment #10
avpadernoComment #13
avpaderno