Exporting editions to ePaper solutions

Build 1501 on 14/Nov/2017  This topic last edited on: 28/Oct/2016, at 11:47

GN4 has an interface to the SoliDAM 'Callisto' product (http://www.solidgroup.nl/solidam/Callisto.html) that produces output for a variety of readers and on-line formats (Apple iPad & iPhone, Android smartphones, e-paper Web solutions, Kindle etc.).

Callisto expects one or more pages in PDF format together with the original texts in NewsML+NITF format and the page geometries in a custom XML format. Here is an example of GN3 output to Callisto (without the PDFs to save space):

callisto1

TXT files look like the one below, containing basic information about page, with id, size, and dimensions, and co-ordinates and dimensions of every page element, e.g. headlines, subheads, etc.

<page id='63667' number='1' name='1 - dinsdag 5 oktober 2010' pageH='1180675' pageW='822205' topM='275183' leftM='28450'>

<doc-id id-string='TR_ART0000000000000000000508197' class='head' x='586242' y='74724' w='121986' h='50200' />

<doc-id id-string='TR_ART0000000000000000000508197' class='subhead' x='586276' y='134080' w='120716' h='20080' />

<doc-id id-string='TR_ART0000000000000000000508198' class='kicker' x='28450' y='185398' w='136560' h='18066' />

<doc-id id-string='TR_ART0000000000000000000508198' class='head' x='28450' y='204473' w='133715' h='47742' />

<doc-id id-string='TR_ART0000000000000000000508198' class='subhead' x='28450' y='252093' w='133715' h='10040' />

 

Download Attachment: callisto.zip (359.84 KB)

The actual file name should be something like TR061010__101______1@callisto_id-20101005T225609.zip); and here are the SoliDAM guidelines on how to structure the files.

Download Attachment: callisto_guidelines.zip (115.72 KB)

The GN4 configuration contains a feed generating the NewsM-NITF files: executing

  ../do.ashx?cmd=feed&name=ArticleNewsML&ids=XXXX

returns the NewsML of all the articles contained in the page with id XXXX - ready to be included in the ZIP for Callisto. (It is possible to pass to the feed directly the id of an article or multiple articles as well). Please import Config\Global\GN4\feed_ArticleNewsML.xml and Config\Global\xsl_ArticleNewsML.xslt to load this feed definition.

Some aspect of the NewsML and NITF generated by this feed can be customized using various parameters - see the comments in xsl_ArticleNewsML.xslt for details.

The GN4 configuation contains also a feed generating the geometry files, executing

  ../do.ashx?cmd=feed&name=PageGeometry&ids=XXXX

returns the geometry XML for the page with id XXXX - ready to be included in the ZIP for Callisto. Please import Config\Global\GN4\feed_PageGeometry.xml and Config\Global\xsl_PageGeometry.xslt to load this feed definition.

There is no method to generate the complete ZIP of an edition or a set of pages at the moment being. To do it completely internally would require a worfklow activity producing a ZIP file - not yet available, and a way to generate and/or retrieve the PDF of the pages.

Finally, there is a publishing destination template 'articleNewsML' that creates NewsML+NITF files in the same format as above. These files can be sent to Callisto to create 'real time' updates of e-publications. Please import the data file Config\Data\GN4\pubTemplateArticleNewsML.xml and then create the publishing destination(s):

callisto2

with parameters:

callisto3

'destDir' is compulsory and specifies the server / disk / directory where to write the NewsML files. It can be an FTP destination. Appropriate credentials (if needed) should be associated with the user /groups doing the publishing.

'dataUrl' is used to compose URLs referring to the data (images, videos) used in the articles. These URL could be used by Callisto to retrieve the videos to display in the e-readers. In such a case it is necessary to specify the special 'Unsafe' application to allow access without a login to the data by Callisto. (This is an 'hack' - a better solution would be to generate static data files in a shared volume and provide to Callisto links to these files).

Other parameters (like titlePrefix) are optional - see comments in xsl_ArticleNewsML.xslt for details.

Click to toggle expandEdition export

See also

http://forum.teradp.com/topic.asp?whichpage=1&TOPIC_ID=680&#3738