Hi Tom:
Thanks for your reply! I hope we can work together to get a working
example of JOBAD-under-Planetary.
Here's one thing I can contribute:
http://metameso.org/dev is a new,
more-or-less "out-of-the-box", Planetary installation. I can send you
login details for the site and server separately, and this would make
it possible for you to help me with the JOBAD integration issues - if
you have time, and if we can't figure them out in this conversation.
So far, after looking at the code a little more, I think what's going
on is that the localcomments module requires us to define additional
fields "id" and "type" for the forum node_type. I did that and got
past the error I was seeing before. I'm sure there's a way for us to
do that "in the code", but there's another small-but-important issue I
want to get past first before we try to clean things up.
I'm now able to load an example article:
http://metameso.org/dev/examplearticle-1 but I'm not seeing any
JOBAD-related user interface elements show up, e.g. when I right-click
on the text of the article. Can you think of why?
Like I said, I'll send you login details for the site & server.
Joe
On Sun, Nov 24, 2013 at 6:51 PM, Tom Wiesing <
tkw0...@googlemail.com> wrote:
> Hi Joe,
>
> unfortunatly I have no idea where exactly the error is coming from as I
> wrote that code a long time ago. (Currently I do not even have a running
> Drupal / Planetary installation).
>
> From what I remember is that this function is supposed to look for existing
> local comments. It is searching for it with the help of a view. This is then
> passed on to the client side via drupal_add_js around line 15.
> Then the JavaScript parses the existing comments and tells JOBAD to display
> annotations in the right places.
> I can only guess that either the view is missing or I used a node type that
> is not installed on the planetary dev site.
>
>
> As for getting started with JOBAD: You can find the JOBAD documentation at
>
http://kwarc.github.io/jobad/stable/. If you want an introduction on JOBAD
> you can also read
http://kwarc.github.io/jobad/stable/doc/html/intro/. JOBAD
> itself works completly client side which is why Drupal in the localcomments
> module has to pass on data to the client.
>
>
> I hope that this helps,
> Tom