It would be great if this module could play nicely with the Open Calais module (or something similar) and provide automatic taxonomy + metadata for the iPaper node. Since there is already a download plain text option for uploaded files, if a plain text version were just automatically added to the html of the node but hidden from view by style/CSS, Open Calais could handle the rest...

Comments

rares’s picture

Status: Active » Fixed

There is an option on the module configuration page to add the plain text to the pages in tags. This equivalent to display:none in css, but is triggered only if people can't see the viewer because javascript is disabled.

Status: Fixed » Closed (fixed)

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

rares’s picture

Status: Closed (fixed) » Active

First, let me complete comment 1 by adding that it was supposed to say
There is an option on the module configuration page to add the plain text to the pages in <noscript> </noscript> tags.
I checked out OpenCalais to see what it does. It's a really cool module and I think I will end up using it on my websites.
Although the plain text is displayed on node pages and added to the $node->content array in ipaper_view(), it does not seem to be going showing up for OpenCalais when it gets the node. I will try to investigate this further and see how it can be solved, but the simple workaround in the meantime is to edit calais module.

at the beginning of function calais_process_node(&$node, $process_type, $threshold, $op = 'insert')
replace:

  $loaded_node = node_build_content($node);
  $body = strip_tags(drupal_render($loaded_node->content));

with

  $loaded_node = node_load($node->nid);
  $body = strip_tags($loaded_node->full_text);
rares’s picture

Title: Taxonomy + Meta Data » OpenCalais integration
Status: Active » Fixed

The latest -dev version (March 21) renders the full text in a format that is understood by OpenCalais. Also, there is a call to calais_nodeapi($node, 'insert') in ipaper_get_full_text, which means that the iPaper module will call the Calais module to get tags whenever the full text becomes available (typically on creation).
Let me know how this works on your setup if you get a chance.

rares’s picture

I should add that you need to set OpenCalais behavior for ipaper nodes to one of the following:
Apply all suggested terms on every update
or Apply all suggested terms on creation ONLY

you might also have to blacklist Javascript, Player and Technology terms, because they are easily detected by Calais from the
"Javascript and Flash Player is required" message that is included with the plain text.

Status: Fixed » Closed (fixed)

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