librelist archives

« back to archive

conkeror and zotero

conkeror and zotero

From:
Andreas Goesele
Date:
2014-02-14 @ 18:20
Hi,

I would like to use zotero together with conkeror.

The first best would be to have simply the zotero firefox extension
working under conkeror. But it's probably too complicated for me to
provide the necessary clue code and the documentation about clue code on
the conkeror web page is not very extensive (two TO-DOs ...) anyway.

It seems to be possible though to use zotero standalone together with
the bookmarklet provided under
https://www.zotero.org/downloadbookmarklet to provide at least part of
the features.

Does anybody have working code how to do that?

I tried it as a webjumb the following way:

define_webjump("z", "javascript:var

d=document,s=d.createElement('script');s.src='https://www.zotero.org/bookmarklet/loader.js';(d.body?d.body:d.documentElement).appendChild(s);void(0);");

But if I use it, I get on the page a small box "Looking for Zotero" and
that's it. (I have Zotero standalone running.)

Any suggestions?

Andreas

-- 
Omnis enim res, quae dando non deficit, dum habetur et non datur,
nondum habetur, quomodo habenda est.
                                      Augustinus, De doctrina christiana

Re: [conkeror] conkeror and zotero

From:
Raimon Grau
Date:
2014-02-14 @ 18:27
I'd create a function that evaluated the bookmarklet javascript, then make
an interactive command for it, and also a shortcut.

Should be 'easy'.

Maybe you can get some tips here http://conkeror.org/WritingCommands


On Fri, Feb 14, 2014 at 7:20 PM, Andreas Goesele <goesele@hfph.mwn.de>wrote:

> Hi,
>
> I would like to use zotero together with conkeror.
>
> The first best would be to have simply the zotero firefox extension
> working under conkeror. But it's probably too complicated for me to
> provide the necessary clue code and the documentation about clue code on
> the conkeror web page is not very extensive (two TO-DOs ...) anyway.
>
> It seems to be possible though to use zotero standalone together with
> the bookmarklet provided under
> https://www.zotero.org/downloadbookmarklet to provide at least part of
> the features.
>
> Does anybody have working code how to do that?
>
> I tried it as a webjumb the following way:
>
> define_webjump("z", "javascript:var
> d=document,s=d.createElement('script');s.src='
> 
https://www.zotero.org/bookmarklet/loader.js';(d.body?d.body:d.documentElement).appendChild(s);void(0)
> ;");
>
> But if I use it, I get on the page a small box "Looking for Zotero" and
> that's it. (I have Zotero standalone running.)
>
> Any suggestions?
>
> Andreas
>
> --
> Omnis enim res, quae dando non deficit, dum habetur et non datur,
> nondum habetur, quomodo habenda est.
>                                       Augustinus, De doctrina christiana
>



-- 
"Emacs saves you time when you work, and takes it back when you play with
it"
blog -> http://puntoblogspot.blogspot.com

Re: [conkeror] conkeror and zotero

From:
Andreas Goesele
Date:
2014-02-14 @ 18:40
Thanks.

I tried it that way:

interactive("zotero", "The foo bookmarklet as interactive function",
                function zotero(I) {

                  var document = I.buffer.document;
                  var window = I.window;

					var 
d=document,s=d.createElement('script');s.src='https://www.zotero.org/bookmarklet/loader.js';(d.body?d.body:d.documentElement).appendChild(s);void(0);


    });

But it doesn't: I here access to my hard drive, I don't get any error
message, but no entry is added to zotero. Any ideas?

Thanks again

Andreas

Raimon Grau <raimonster@gmail.com> writes:

> I'd create a function that evaluated the bookmarklet javascript, then make
> an interactive command for it, and also a shortcut.
>
> Should be 'easy'.
>
> Maybe you can get some tips here http://conkeror.org/WritingCommands
>
>
> On Fri, Feb 14, 2014 at 7:20 PM, Andreas Goesele <goesele@hfph.mwn.de>wrote:
>
>> Hi,
>>
>> I would like to use zotero together with conkeror.
>>
>> The first best would be to have simply the zotero firefox extension
>> working under conkeror. But it's probably too complicated for me to
>> provide the necessary clue code and the documentation about clue code on
>> the conkeror web page is not very extensive (two TO-DOs ...) anyway.
>>
>> It seems to be possible though to use zotero standalone together with
>> the bookmarklet provided under
>> https://www.zotero.org/downloadbookmarklet to provide at least part of
>> the features.
>>
>> Does anybody have working code how to do that?
>>
>> I tried it as a webjumb the following way:
>>
>> define_webjump("z", "javascript:var
>> d=document,s=d.createElement('script');s.src='
>> 
https://www.zotero.org/bookmarklet/loader.js';(d.body?d.body:d.documentElement).appendChild(s);void(0)
>> ;");
>>
>> But if I use it, I get on the page a small box "Looking for Zotero" and
>> that's it. (I have Zotero standalone running.)
>>
>> Any suggestions?
>>
>> Andreas
>>
>> --
>> Omnis enim res, quae dando non deficit, dum habetur et non datur,
>> nondum habetur, quomodo habenda est.
>>                                       Augustinus, De doctrina christiana
>>

-- 
Andreas Gösele                   Omnis enim res, quae dando non deficit,
Inst. f. Gesellschaftspolitik    dum habetur et non datur,
Kaulbachstr. 31a, 80539 München  nondum habetur, quomodo habenda est.
E-mail: goesele@hfph.mwn.de      (Augustinus)

Re: [conkeror] conkeror and zotero

From:
Andreas Goesele
Date:
2014-02-14 @ 18:45
To be more precise: With the following code for an interactive function
I get nothing on a normal web page. On a web page where zotero find
bibliographic data I again get the Error box: "Looking for Zote..."
(more I don't see).

"Andreas Goesele" <goesele@hfph.mwn.de> writes:

> interactive("zotero", "The foo bookmarklet as interactive function",
>                 function zotero(I) {
>
>                   var document = I.buffer.document;
>                   var window = I.window;
>
> 					var 
d=document,s=d.createElement('script');s.src='https://www.zotero.org/bookmarklet/loader.js';(d.body?d.body:d.documentElement).appendChild(s);void(0);

>
>     });
>
> But it doesn't: I here access to my hard drive, I don't get any error
> message, but no entry is added to zotero. Any ideas?
>
> Thanks again
>
> Andreas
>
> Raimon Grau <raimonster@gmail.com> writes:
>
>> I'd create a function that evaluated the bookmarklet javascript, then make
>> an interactive command for it, and also a shortcut.
>>
>> Should be 'easy'.
>>
>> Maybe you can get some tips here http://conkeror.org/WritingCommands
>>
>>
>> On Fri, Feb 14, 2014 at 7:20 PM, Andreas Goesele <goesele@hfph.mwn.de>wrote:
>>
>>> Hi,
>>>
>>> I would like to use zotero together with conkeror.
>>>
>>> The first best would be to have simply the zotero firefox extension
>>> working under conkeror. But it's probably too complicated for me to
>>> provide the necessary clue code and the documentation about clue code on
>>> the conkeror web page is not very extensive (two TO-DOs ...) anyway.
>>>
>>> It seems to be possible though to use zotero standalone together with
>>> the bookmarklet provided under
>>> https://www.zotero.org/downloadbookmarklet to provide at least part of
>>> the features.
>>>
>>> Does anybody have working code how to do that?
>>>
>>> I tried it as a webjumb the following way:
>>>
>>> define_webjump("z", "javascript:var
>>> d=document,s=d.createElement('script');s.src='
>>> 
https://www.zotero.org/bookmarklet/loader.js';(d.body?d.body:d.documentElement).appendChild(s);void(0)
>>> ;");
>>>
>>> But if I use it, I get on the page a small box "Looking for Zotero" and
>>> that's it. (I have Zotero standalone running.)
>>>
>>> Any suggestions?
>>>
>>> Andreas
>>>
>>> --
>>> Omnis enim res, quae dando non deficit, dum habetur et non datur,
>>> nondum habetur, quomodo habenda est.
>>>                                       Augustinus, De doctrina christiana
>>>

-- 
Andreas Gösele                   Omnis enim res, quae dando non deficit,
Inst. f. Gesellschaftspolitik    dum habetur et non datur,
Kaulbachstr. 31a, 80539 München  nondum habetur, quomodo habenda est.
E-mail: goesele@hfph.mwn.de      (Augustinus)

Re: [conkeror] conkeror and zotero

From:
Andreas Goesele
Date:
2014-02-14 @ 19:41
OK,sorry for bothering, but I found the solution:

The problems seems to be that the injection code tries to attach to any
window open with the name "zotero" in it. After I closed the Emacs
windows with my "zotero.js" the zopero function started
working. (Althoug only on pages where zotero finds bibliographic
content, and no pages etc. are attached.)

So it still would be great if somebody could get the zotero extension to
work on conkeror.

"Andreas Goesele" <goesele@hfph.mwn.de> writes:

> To be more precise: With the following code for an interactive function
> I get nothing on a normal web page. On a web page where zotero find
> bibliographic data I again get the Error box: "Looking for Zote..."
> (more I don't see).
>
> "Andreas Goesele" <goesele@hfph.mwn.de> writes:
>
>> interactive("zotero", "The foo bookmarklet as interactive function",
>>                 function zotero(I) {
>>
>>                   var document = I.buffer.document;
>>                   var window = I.window;
>>
>> 					var 
d=document,s=d.createElement('script');s.src='https://www.zotero.org/bookmarklet/loader.js';(d.body?d.body:d.documentElement).appendChild(s);void(0);

>>
>>     });
>>
>> But it doesn't: I here access to my hard drive, I don't get any error
>> message, but no entry is added to zotero. Any ideas?
>>
>> Thanks again
>>
>> Andreas
>>
>> Raimon Grau <raimonster@gmail.com> writes:
>>
>>> I'd create a function that evaluated the bookmarklet javascript, then make
>>> an interactive command for it, and also a shortcut.
>>>
>>> Should be 'easy'.
>>>
>>> Maybe you can get some tips here http://conkeror.org/WritingCommands
>>>
>>>
>>> On Fri, Feb 14, 2014 at 7:20 PM, Andreas Goesele <goesele@hfph.mwn.de>wrote:
>>>
>>>> Hi,
>>>>
>>>> I would like to use zotero together with conkeror.
>>>>
>>>> The first best would be to have simply the zotero firefox extension
>>>> working under conkeror. But it's probably too complicated for me to
>>>> provide the necessary clue code and the documentation about clue code on
>>>> the conkeror web page is not very extensive (two TO-DOs ...) anyway.
>>>>
>>>> It seems to be possible though to use zotero standalone together with
>>>> the bookmarklet provided under
>>>> https://www.zotero.org/downloadbookmarklet to provide at least part of
>>>> the features.
>>>>
>>>> Does anybody have working code how to do that?
>>>>
>>>> I tried it as a webjumb the following way:
>>>>
>>>> define_webjump("z", "javascript:var
>>>> d=document,s=d.createElement('script');s.src='
>>>> 
https://www.zotero.org/bookmarklet/loader.js';(d.body?d.body:d.documentElement).appendChild(s);void(0)
>>>> ;");
>>>>
>>>> But if I use it, I get on the page a small box "Looking for Zotero" and
>>>> that's it. (I have Zotero standalone running.)
>>>>
>>>> Any suggestions?
>>>>
>>>> Andreas
>>>>
>>>> --
>>>> Omnis enim res, quae dando non deficit, dum habetur et non datur,
>>>> nondum habetur, quomodo habenda est.
>>>>                                       Augustinus, De doctrina christiana
>>>>

-- 
Andreas Gösele                   Omnis enim res, quae dando non deficit,
Inst. f. Gesellschaftspolitik    dum habetur et non datur,
Kaulbachstr. 31a, 80539 München  nondum habetur, quomodo habenda est.
E-mail: goesele@hfph.mwn.de      (Augustinus)