Closed (fixed)
Project:
iPaper
Version:
6.x-1.0-rc6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Feb 2009 at 20:49 UTC
Updated:
6 Apr 2009 at 04:00 UTC
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
Comment #1
rares commentedThere 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.
Comment #3
rares commentedFirst, 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:
with
Comment #4
rares commentedThe 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.
Comment #5
rares commentedI 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.