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

catch’s picture

Status: Postponed (maintainer needs more info) » Needs review

I think this needs to be CNR.

vivekkhurana’s picture

Status: Needs review » Active
StatusFileSize
new3.95 KB

attaching the module

avpaderno’s picture

Status: Active » Needs review
Issue tags: +Module review
dawehner’s picture

Status: Needs review » Needs work
Issue tags: -Module review

Checkout http://drupal.org/coding-standards

Why do you do

     $node->format = 2;

TODO:
check domDocument in your install file, in the hook_requirements hook. There are sure hosts where this is not enabled :(

avpaderno’s picture

Issue tags: +Module review
vivekkhurana’s picture

Status: Needs work » Needs review
StatusFileSize
new4.26 KB

Code updated as per the comments.

vivekkhurana’s picture

StatusFileSize
new4.35 KB

Updated code after running Coder.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

No it looks fine. Sure there are some minor stuff, but this could be done later.

vivekkhurana’s picture

StatusFileSize
new4.36 KB

Fixed minor stuff.

avpaderno’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -Module review

Automatically closed -- issue fixed for 2 weeks with no activity.

avpaderno’s picture

Component: Miscellaneous » new project application
Assigned: Unassigned » avpaderno
Issue summary: View changes
Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.