pkp / ots

PKP XML Parsing Service
GNU General Public License v3.0
32 stars 19 forks source link

WYISWYG integration #46

Closed axfelix closed 8 years ago

axfelix commented 8 years ago

This is a big one, but we've been having a lot of conversations around it lately and wanted to make sure it was tracked somewhere visible.

Currently discussing potential modifications to Substance.io's Lens Writer to suit our purposes: https://github.com/substance/lens/issues/76

On the stack side, we'd want this to hook in immediately after the XML merge step but before anything more is done with the XML. Our API is already capable of requesting a job from the XML stage, so input to Lens Writer is technically already handled handled (or at least requires very little work that isn't in the context of the frontend -- might want to add an "edit XML?" link to the current completed-job landing page that creates a Lens instance). I don't think we need to add a flag that "pauses" the stack before WYSIWYG editing is complete; may as well let jobs run through to the end of HTML/PDF/ePub generation even if that output is not going to be perfect in the expectation of later cleanup, because I imagine it'll be valuable for most users to have the unsupervised output to evaluate anyway. As of right now, all I can see that we'd need to add to the backend is another option for the Pathfinder module so that the stack can "begin" from already-transformed XML and just generate the reader formats, the same way it can currently begin from either Word or PDF. Minimal work needed there: https://github.com/pkp/xmlps/blob/master/module/PathFinder/src/PathFinder/Model/Queue/Job/PathFinderJob.php

axfelix commented 8 years ago

FYI -- this is going forward; main thing we need in order to integrate with current stack is another option for Pathfinder so we can begin after the NLMXML step, assuming NLMXML was handed off to WYSIWYG editor and then returned to queue for processing after being cleaned up.

axfelix commented 8 years ago

Pathfinder can now begin from NLMXML after work done at PKP sprint!

axfelix commented 8 years ago

This needs to be looked into so we can document where to deploy current Subtance betas on production servers -- having a hard time getting the functionality added at the sprint working with the new beta on our new test server.

axfelix commented 8 years ago

Closing this as it's gotten messy, opening a new bug with more specific OJS3-focused issues.