Martin Fenner has joined the list, and is trying to get Anotar to work
with a demo blog:
http://blogs.xartrials.org/2010/12/05/the-mycobacterium-tuberculosis-drugome-and-its-polypharmacological-implications-2/
When I try to post a comment I get this:
You are trying to reach a page that doesn't exist here. Maybe I've
moved out things or maybe you mistyped a link. Try searching:
Martin, I think the key is in these two lines in anotar-config.js (you
can edit the script via the control panel).
var action = jQ("#commentform").attr("action");
This tries to find where to post the comment to. Do you have comments
turned on - if not this is probably coming up blank. Is the form
action somewhere else?
If you do have comments on, try commenting out this line so we can
help diagnose the problem.
jQ("#respond").remove();
Peter
--
Peter Sefton
Manager, Software Research and Development Laboratory,
Australian Digital Futures Institute,
University of Southern Queensland
Toowoomba Queensland 4350 AUSTRALIA
Work: sef...@usq.edu.au
Private: p...@ptsefton.com
IM accounts:
Gmail: ptse...@gmail.com
Yahoo: peter_...@yahoo.com
MSN: p...@ptsefton.com
AIM: ptsefton
p: +61 (0)7 4631 1640
m: +61 (0)410 326 955
USQ Website: http://www.usq.edu.au
Personal Website: http://ptsefton.com
Thanks for looking into this. I have commented out jQ("#respond").remove();
will have to look closer on what is wrong.
Kind regards,
Martin
Am 13.12.10 07:02 schrieb "Peter Sefton" unter <ptse...@gmail.com>:
But note that when I go to this page:
http://blogs.xartrials.org/2010/12/13/documentation-for-blogging-beyond-the-pdf/
I don't see a comment box. Is it set to only allow comments from
logged in users?
On Tue, Dec 14, 2010 at 10:20 AM, Martin Fenner
--
var action ="/wp-comments-post.php"
Cheers,
Martin
Am 14.12.10 04:07 schrieb "Peter Sefton" unter <ptse...@gmail.com>:
On Tue, Dec 14, 2010 at 4:34 PM, Greg Pendlebury
With Cynthia's change and this: var action ="/wp-comments-post.php"
Anotar now successfully posts comments. The reason they were not
showing up before is the comment moderation - they were awaiting
moderation or in the spam trap.
The bit that is still not working is the code to put the annotations
back in line. At least one of the other plugins is interfering with
the way Anotar calculates paragraph IDs - Winerlinks - which adds
paragraph Anchors. Eventually Anotar should be able to do this using
its hashing algorithm which will be more reliable than simple
paragraph counting, but even with Winterlinks turned off we still have
problems. There are a _lot_ of plugins here though, so it might be
tough to work this one out!
At least now, if you approve comments they will be seen at the bottom
of the post and you can tell which paragraph they belong to. For now I
think it will be best to confine our testing to the paper, rather
than Martin's substantive blog posts. That is comment here:
Here is the JSON for a comment:
{"clientVersionUri":"http://www.purl.org/anotar/client/0.1","type":"http://www.w3.org/2000/10/annotationType#Comment","title":{"uri":null},"annotates":{"uri":"http://blogs.xartrials.org/2010/12/05/the-mycobacterium-tuberculosis-drugome-and-its-polypharmacological-implications-2/","rootUri":"http://blogs.xartrials.org/?p=111","locators":[{"originalContent":"The
authors have declared that no competing interests exist. This research
is funded by National Institutes...ublish, or preparation of the
manuscript.","type":"http://www.purl.org/anotar/locator/0.1","value":"h93348027p1"}]},"creator":{"literal":"ptsefton","uri":"http://www.purl.org/anotar/ns/user/0.1#Anonymous","email":{}},"dateCreated":{"literal":"2010-12-14T18:58:58+10:00","uri":null},"dateModified":{"literal":null,"uri":null},"content":{"mimeType":"text/plain","literal":"Test
comment with winterlinks turned
off","formData":{}},"isPrivate":false,"lang":"en","id":"17"}
And the paragraph.
<p anotar-hash="h93348027p1">The authors have declared that no
competing interests exist. This research is funded by National
Institutes of Health grant <a
href="http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=Retrieve&db=nucleotide&dopt=GenBank&list_uids=221388740"
target="pmc_ext">GM078596</a>. The funders had no role in study
design, data collection and analysis, decision to publish, or
preparation of the manuscript.</p>
The IDs match.
I will turn back on Winerlinks and look again tomorrow.
Thanks a lot for all this debugging work. This is really helpful, and it also shows that we have a long way to go before all this stuff can simply be installed. Having too many plugins that interfere with each other is probably one of the issues.
Cheers,
Martin
-----Ursprüngliche Nachricht-----
Von: ano...@googlegroups.com [mailto:ano...@googlegroups.com] Im Auftrag von Peter Sefton
Gesendet: Dienstag, 14. Dezember 2010 12:07
An: ano...@googlegroups.com
Betreff: Re: Debugging for Beyond The PDF