Citations in Wordpress

192 views
Skip to first unread message

Carl Boettiger

unread,
Feb 15, 2011, 3:36:07 PM2/15/11
to wordpress-fo...@googlegroups.com
Dear list,

I am quite excited to see Martin's post yesterday on using CiTo through his updated Link-to-Link plugin.  I have just started trying this out, so far seems to be working quite well and seems to include the most common categories I will need.  I am curious how to access this information or make it visible/accessible to my readers.  Just skimmed through the Shotton paper again, not clear if there's a central location from which to discover/explore the network of citations, or how to make the reason for citation visible as in Shotton's Figure 5? 

It would be useful for the citation system to generate footnote-based citations rather thank links.  papercite had a reasonable way of doing this with its shortcodes, but I've experienced performance issues with it on large .bib files that have led me to disable that plugin. Kcite seems to do a very nice job of this part, but in general citing by my bibtex keys is a bit faster than having to look up the doi's manually.  For some reason kcite citation gives me a link to "Bibliography in JSON format" rather than the DOI link so a reader can access the original paper.  Is there a way to toggle this?

Thanks to Martin and others for creating this list.  A little (possibly uncessary) background: I use Wordpress for my research lab notebook in theoretical & computational ecology and evolution.  After experimenting with a few different platforms I've found it a particularly flexible and effective tool.  Overall I'm interested in further Wordpress development in several directions:

A) Basic needs
Citations -- Integrate to my workflow (Mendeley/bibtex and the above plugins?)
Figures -- Including links to version of code generating it (trying this by integration with github+flickr)
Equations -- LaTeX/mathjax seems to do this fine. 

B) Integrate lab notebook with scientific databases & link back from pubs/databases to notebook

C) Integrate/represent social context of research.


-Carl



On Fri, Feb 4, 2011 at 1:42 PM, Martin Fenner <fenner...@mh-hannover.de> wrote:
Dear all,

welcome to the Wordpress for Scientists Google Group. The goal of this group is to promote Wordpress as a tool for writing and distributing scholarly content. Wordpress is used by many science bloggers, and I'm sure we can improve Wordpress as a writing tool for them. Wordpress is also used for lab notebooks and scholarly papers, but several limitations (e.g. reference management) have so far limited a more widespread use for this purpose. This group can hopefully become a central discussion place for these ideas.

Ideas
What plugins, themes or other Wordpress tools should we develop? What are the most interesting projects and who is interested in helping with them?

Best Practices
  • What are recommended plugins for science blogging, writing scholarly papers, etc.?
  • Should plugin developers use a common tag (e.g. "science") when submitting their plugins to the Wordpress plugins directory?
  • Can we agree on standards for scholarly content in Wordpress, e.g. import/export formats? 
Development
The group should support developers interested in creating science-specific plugins. This could mean practical advice and/or help in testing. I'm particularly interested in making the different tools work better together. It would also be nice to coordinate the work so that we for example come up with one great paragraph-level commenting tool instead of five that work most of the time. And it would be helpful to know who is already working on a particular project or idea. 

I'm personally most interested in developing solid reference management tools for Wordpress, including integration with available reference managers. I'm fairly new to Wordpress, but have released four Wordpress plugins in the past few weeks (Contact Info Options, BibTex Importer, Link to Link, ePub Export). 

Kind regards,

Martin



--
Carl Boettiger
UC Davis
http://www.carlboettiger.info/

Martin Fenner

unread,
Feb 15, 2011, 11:26:04 PM2/15/11
to wordpress-fo...@googlegroups.com
Carl,

my goal is to make something like Shotton’s Figure 5 possible using Wordpress. I will work on a citation parser/bibliography formatting tool at the Peter Murray Rust hackfest March 12/13 in Cambridge. The kcite plugin obviously provides some of this functionality already. I’ve just updated my Link to Link plugin to version 1.1.1 with two changes:

  • Use the kcite shortcode (when selected in the plugin options)
  • Use the cito:disagreesWith format for CiTO relationships

Link to Link and kcite now work in combination to insert citations and create a bibliography. The kcite shortcode uses source=url when the link is not a DOI. And it includes the CiTO relationship when this is selected in the plugin options. Maybe these two modifications require an update of the kcite plugin ;).

> It would be useful for the citation system to generate footnote-based citations rather thank links. 

I think that CiTO relationships work better with links than with footnotes. A paper can be cited several times, and the CiTO relationship might not always be the same. And the CiTO relationship is embedded directly in the text.  

Cheers,

Martin


Am 15.02.11 15:36 schrieb "Carl Boettiger" unter <cboe...@gmail.com>:

Dear list,

I am quite excited to see Martin's post <http://blogs.plos.org/mfenner/2011/02/14/how-to-use-citation-typing-ontology-cito-in-your-blog-posts/>  yesterday on using CiTo through his updated Link-to-Link plugin.  I have just started trying this out, so far seems to be working quite well and seems to include the most common categories I will need.  I am curious how to access this information or make it visible/accessible to my readers.  Just skimmed through the Shotton paper <http://www.pubmedcentral.nih.gov/articlerender.fcgi?artid=2903725&tool=pmcentrez&rendertype=abstract>  again, not clear if there's a central location from which to discover/explore the network of citations, or how to make the reason for citation visible as in Shotton's Figure 5? 

It would be useful for the citation system to generate footnote-based citations rather thank links.  papercite had a reasonable way of doing this with its shortcodes, but I've experienced performance issues with it on large .bib files that have led me to disable that plugin. Kcite seems to do a very nice job of this part, but in general citing by my bibtex keys is a bit faster than having to look up the doi's manually.  For some reason kcite citation gives me a link to "Bibliography in JSON format" rather than the DOI link so a reader can access the original paper.  Is there a way to toggle this?

Thanks to Martin and others for creating this list.  A little (possibly uncessary) background: I use Wordpress for my research lab notebook in theoretical & computational ecology and evolution.  After experimenting with a few different platforms I've found it a particularly flexible and effective tool.  Overall I'm interested in further Wordpress development in several directions:

A) Basic needs
Citations -- Integrate to my workflow (Mendeley/bibtex and the above plugins?)
Figures -- Including links to version of code generating it (trying this by integration with github+flickr)
Equations -- LaTeX/mathjax seems to do this fine. 

B) Integrate lab notebook with scientific databases & link back from pubs/databases to notebook

C) Integrate/represent social context of research.


-Carl



On Fri, Feb 4, 2011 at 1:42 PM, Martin Fenner <fenner...@mh-hannover.de> wrote:

Carl Boettiger

unread,
Feb 15, 2011, 5:46:49 PM2/15/11
to wordpress-fo...@googlegroups.com
Hi Martin,

Thanks, this sounds excellent.  A few questions below on getting this to work. 

On Tue, Feb 15, 2011 at 8:26 PM, Martin Fenner <fenner...@mh-hannover.de> wrote:
Carl,

my goal is to make something like Shotton’s Figure 5 possible using Wordpress. I will work on a citation parser/bibliography formatting tool at the Peter Murray Rust hackfest March 12/13 in Cambridge. The kcite plugin obviously provides some of this functionality already. I’ve just updated my Link to Link plugin to version 1.1.1 with two changes:

  • Use the kcite shortcode (when selected in the plugin options)
  • Use the cito:disagreesWith format for CiTO relationships

Link to Link and kcite now work in combination to insert citations and create a bibliography. The kcite shortcode uses source=url when the link is not a DOI. And it includes the CiTO relationship when this is selected in the plugin options. Maybe these two modifications require an update of the kcite plugin ;).

This sounds great but I think I need an example to get this working.  I try [cite source="url"]Huelsenbeck2011[/cite] where Huelsenbeck2011 is one of my bibtex codes, and that doesn't seem to work.  I'm trying the link2link plugin with short-code enabled, and selecting a paper using the link2link button on the visual editor gives me the shortcode [link2link id =""]Huelsenbeck2011[/link2link] with nothing in the id, and just adding the bibtex key manually to the id doesn't seem to do anything.  My apologies, probably missing something simple. 

> It would be useful for the citation system to generate footnote-based citations rather thank links. 

I think that CiTO relationships work better with links than with footnotes. A paper can be cited several times, and the CiTO relationship might not always be the same. And the CiTO relationship is embedded directly in the text.  
Certainly, I meant only the visual display would be a link to a footnote which had the full name (or configurable display) of the paper and the link, like kcite does.  I certainly agree that the actual citation should be links, not just text. 

Can link-to-link handle things that do not have DOIs?

Again thanks, and wow, that was a quick update!

Fenner...@mh-hannover.de

unread,
Feb 16, 2011, 3:33:56 AM2/16/11
to wordpress-fo...@googlegroups.com
Carl,

bibtex codes are currently not supported by the Link to Link plugin.
With the 1.1.1 version of the plugin you should first enable the
shortcode in the options and then select a reference. The plugin should
insert something like [cite source='doi']10.1098/rsbl.2010.1056[/cite].
The kcite plugin will use this code to format the bibliography, an
example post is here:
http://blogs.xartrials.org/mfenner/2011/02/16/testing-the-kcite-plugin/.

Link to Link handles everything that has a link, not just DOIs. It
doesn't handle references without a URL.

Kind regards,

Martin

Phillip Lord

unread,
Feb 16, 2011, 5:48:36 AM2/16/11
to wordpress-fo...@googlegroups.com

Carl Boettiger <cboe...@gmail.com> writes:
> It would be useful for the citation system to generate footnote-based
> citations rather thank links. papercite had a reasonable way of doing this
> with its shortcodes, but I've experienced performance issues with it on
> large .bib files that have led me to disable that plugin. Kcite seems to do
> a very nice job of this part, but in general citing by my bibtex keys is a
> bit faster than having to look up the doi's manually.

Yes, adding in DOIs is a pain. We are starting to work on proper tool
chains for doing this. My own tool chain is a little unusual
(Emacs/Bibtex/asciidoc), but was a relatively small amount of work to
make usuable.

http://www.russet.org.uk/blog/2011/02/tooled-up-bibliographies/

Now I can do regexp look-up through my bib files, and auto-insert the
cite shortcode. Obviously, we want to look at something more widespread
than my own tool chain.

We are also refactoring kcite at the moment; I want to make it easier to
add new forms of citation besides the two we support at the moment, that
is DOI and pubmed ID. Most importantly, we want to support URLs, so that
you can formally cite other kblogs; the last thing that I want is to
encourage people to use DOIs (which our kblog articles have), as DOIs
are, to my mind, relatively pointless.

If there is a demand, we can add a public API to kcite, making this
extensible.

> For some reason kcite citation gives me a link to "Bibliography in
> JSON format" rather than the DOI link so a reader can access the
> original paper. Is there a way to toggle this?

Hmmm. Well, no, there isn't a way to toggle it, because it sounds like a
bug. Can you send a message to knowledgeb...@knowledgeblog.org
for me? Preferably with a URL or equivalent so that we can see. The
"Bibliography in JSON format" is supposed to offer you a download of all
the references.


> Thanks to Martin and others for creating this list. A little (possibly
> uncessary) background: I use Wordpress for my research lab notebook in
> theoretical & computational ecology and evolution. After experimenting with
> a few different platforms I've found it a particularly flexible and
> effective tool. Overall I'm interested in further Wordpress development in
> several directions:
>
> A) Basic needs
> Citations -- Integrate to my workflow (Mendeley/bibtex and the above
> plugins?)


Mendeley has a public API so should be easy to extend to. Bibtex also I
think should work, although, for me, this already works client side.

Where do you edit the text? In wordpress, or outside of it?

> Figures -- Including links to version of code generating it (trying this by
> integration with github+flickr)

We are really interested in this; at the moment, I think we are going to
be pushed to do anything more than a rough and read implementation
within the scope of our current grant.

> Equations -- LaTeX/mathjax seems to do this fine.

It does seem to do the job, doesn't it.


> B) Integrate lab notebook with scientific databases & link back from
> pubs/databases to notebook

We're also planning to look at this; it's is explicitly mentioned in our
JISC grant. Basically, I think this is easy, and can largely be done
with pingback/trackbacks. For those databases which don't support this (which is
almost all of them at the moment!), we use a pingback/trackback proxy.


> C) Integrate/represent social context of research.

Well, that one is a bit outside of something with a read software
solution.

Phil

Phillip Lord

unread,
Feb 16, 2011, 5:52:07 AM2/16/11
to wordpress-fo...@googlegroups.com
Martin Fenner <fenner...@mh-hannover.de> writes:

> * Use the kcite shortcode (when selected in the plugin options)
> * Use the cito:disagreesWith format for CiTO relationships


>
> Link to Link and kcite now work in combination to insert citations and
> create a bibliography. The kcite shortcode uses source=url when the link is
> not a DOI. And it includes the CiTO relationship when this is selected in
> the plugin options. Maybe these two modifications require an update of the
> kcite plugin ;).

Neither of which are rocket-science. The URL is in the works. CiTO I've
wanted to use for ages. I think it's easy enough to add.


>> It would be useful for the citation system to generate footnote-based
> citations rather thank links. 
>
> I think that CiTO relationships work better with links than with footnotes.
> A paper can be cited several times, and the CiTO relationship might not
> always be the same. And the CiTO relationship is embedded directly in the
> text.

This is true. I think it's a general issue for CiTO, though. There needs
to be a way to say "I am not talking about this internal anchor, but the
link at the end of it".

Phil

Carl Boettiger

unread,
Feb 16, 2011, 5:27:42 PM2/16/11
to wordpress-fo...@googlegroups.com

Hmm, for some reason it just inserts
[link2link id=""]CiTo[/link2link]
 rather than the kcite code when I try inserting a reference using the link to link plugin.  I believe I have everything updated correctly.  any ideas?



Kind regards,

Martin

Carl Boettiger

unread,
Feb 17, 2011, 2:13:37 AM2/17/11
to wordpress-fo...@googlegroups.com
I now get the link to link to insert the correct code, i.e.

[cite source='doi' rel=cito:cites]10.1186/2041-1480-1-S1-S6[/cite]

but the rel=cito:cites seems to break the kcite shortcode, so the shortcode is displayed raw rather than as a citation.  Works fine if I don't enable cito format.  Getting closer!  By the way, my apologies if I'm misusing this list for plug-in trouble-shooting. 

I've also described a bit of my experience in a post here: http://www.carlboettiger.info/archives/1021

Cheers,

Carl

Fenner...@mh-hannover.de

unread,
Feb 17, 2011, 2:54:41 AM2/17/11
to wordpress-fo...@googlegroups.com
Carl,
 
thanks for the feedback. One goal of this Google Group is to make the different Wordpress for Scientists plugins work together. BibTeX Importer -> Link to Link -> kcite is something that is working now, and it helps to get feedback if there are small issues.
 
Cheers,
 
Martin


Von: wordpress-fo...@googlegroups.com [mailto:wordpress-fo...@googlegroups.com] Im Auftrag von Carl Boettiger
Gesendet: Donnerstag, 17. Februar 2011 08:14
An: wordpress-fo...@googlegroups.com
Betreff: Re: Citations in Wordpress

Mark Hahnel

unread,
Feb 17, 2011, 5:57:52 AM2/17/11
to wordpress-fo...@googlegroups.com
Hi Phil,

Just a quick one. Any chance of getting Kcite functional with handle.net?

Thanks,

Mark

Phillip Lord

unread,
Feb 17, 2011, 6:43:25 AM2/17/11
to wordpress-fo...@googlegroups.com
Carl Boettiger <cboe...@gmail.com> writes:

> On Wed, Feb 16, 2011 at 2:27 PM, Carl Boettiger <cboe...@gmail.com> wrote:
>> Hmm, for some reason it just inserts
>> [link2link id=""]CiTo[/link2link]
>> rather than the kcite code when I try inserting a reference using the
> link to link plugin. I believe I have everything updated correctly. any
> ideas?
>
> I now get the link to link to insert the correct code, i.e.
>
> [cite source='doi' rel=cito:cites]10.1186/2041-1480-1-S1-S6[/cite]
>
> but the rel=cito:cites seems to break the kcite shortcode, so the shortcode
> is displayed raw rather than as a citation.

It will. Kcite does not have support for this form of citation yet. Even
if it did, it would probably be.

[cite source='doi' rel='cito:cites']10.1186/2041-1480-1-S1-S6[/cite]

I am working on this as we speak. The next version will not break with a
rel="cito" attribute, although it won't do anything with it. I'm happy
to add cito support to the version after that.

Phil

Phillip Lord

unread,
Feb 17, 2011, 9:25:29 AM2/17/11
to wordpress-fo...@googlegroups.com

Can't remember. Do handles return metadata or is that just the DOI? Do
you want it for preprints or some such?

Otherwise, "functional" is just going to mean sticking the handle at the
end in the list. More than happy to do this. I think, in general, though
the idea of having a pluggable identifier scheme interface is looking
more and more attractive.

Phil


Mark Hahnel <mha...@imperial.ac.uk> writes:

--
Phillip Lord, Phone: +44 (0) 191 222 7827
Lecturer in Bioinformatics, Email: philli...@newcastle.ac.uk
School of Computing Science, http://homepages.cs.ncl.ac.uk/phillip.lord
Room 914 Claremont Tower, skype: russet_apples
Newcastle University, msn: m...@russet.org.uk
NE1 7RU twitter: phillord

Martin Fenner

unread,
Feb 19, 2011, 3:14:12 AM2/19/11
to wordpress-fo...@googlegroups.com
I am wondering about the best strategy to insert references into a Wordpress post:
  1. directly from an online database, e.g. PubMed or CrossRef (the kcite plugin is doing this)
  2. directly from your reference manager of choice (this is how all reference managers work with traditional word processors such as Microsoft Word)
  3. from the Wordpress Links Manager (the link to link plugin is doing this).
With Link to Link I obviously made the decision for 3). What I don't like about 1) is that it bypasses your reference manager where you have already stored all the relevant information. What I don't like about 2) is that it makes it very difficult to work on a manuscript with several people that not use all the same reference manager. And every reference manager has to reinvent the wheel and provide a lot of common functionality (e.g. inserting into post, formatting a bibliography). 

The problem with 3) is of course that it is still too complicated to import references into the Wordpress Links manager, as Carl has also pointed out in his post (http://www.carlboettiger.info/archives/1021). The best solution would automatically synchronize your CiteULike, Mendeley, JabRef or Endnote library (or a subset of it) with Wordpress. A Wordpress plugin for automatic syncing with delicious already exists (http://wordpress.org/extend/plugins/wp-deliciouslinks/), so I don't see why this shouldn't be possible with reference managers. And it is much less work for providers of reference management software to sync to the Wordpress Links Manager rather than also providing all the other required functionality. You can already sync CiteULike with delicious, but the three-way sync doesn't quite work because all links then go to CiteULike instead of using the DOI. 

When writing in Wordpress, it is sometimes easier to simply insert a link by copy/paste. The next version of Link to Link will allow this. Not very different from the regular Wordpress "Insert Link" function, but this will work with CiTO, kcite shortcode and whatever features for reference management we come up with in the future. 

What I also like about 3) is that Wordpress can do interesting stuff with the links in the Links Manager, e.g. provide a reading list of interesting references about a particular topic, or check whether any links are broken (http://wordpress.org/extend/plugins/broken-link-checker/). 

Simon Cockell

unread,
Feb 19, 2011, 5:39:01 AM2/19/11
to Wordpress for Scientists
With KCite, we took the view that enabling people to continue to use
their existing authoring tools was pretty much the most important
thing. We wanted to separate the generation of the reference list from
the choice of authoring environment. You can write a shortcode in any
document editor, and wordpress will interpret them all in the same
way. Shortcodes are also well-defined and structured, so it should be
a simple matter to generate them automatically (as Phil has
demonstrated with his emacs tool chain -
http://www.russet.org.uk/blog/2011/02/tooled-up-bibliographies/).
Reference management tools that already play nice with popular
authoring tools like MS Word should be able to support KCite in a
trice, whether they decide to do so is another matter entirely.
Regards
Simon

On Feb 19, 8:14 am, Martin Fenner <fenner.mar...@mh-hannover.de>
wrote:
> I am wondering about the best strategy to insert references into a Wordpress
> post:
>
>    1. directly from an online database, e.g. PubMed or CrossRef (the kcite
>    plugin is doing this)
>    2. directly from your reference manager of choice (this is how all
>    reference managers work with traditional word processors such as Microsoft
>    Word)
>    3. from the Wordpress Links Manager (the link to link plugin is doing

Phillip Lord

unread,
Feb 21, 2011, 11:39:06 AM2/21/11
to wordpress-fo...@googlegroups.com

As Simon says (erm...), we think that doing 1) is the correct approach,
but that it needs support from 2.

Most of our decisions with knowledgeblog have been around what the
authors want; by and large, this is "make my life easy, and don't make
me learn anything new". So, we support this.

Ironically, if that were all we cared about, we would, I think, largely
be done. Most of the tool chains already support HTML. Take for instance
the references on this article:

http://www.russet.org.uk/blog/2010/07/realism-and-science/

All looks good to me. All done with latex, bibtex and latextowordpress.
Who needs a plugin?

So, why kcite? Surely, it is solving a problem that is, basically,
solved. Well, in this case, I think, we are trying to support the reader
and consumer of the articles, not the author. As Simon points out, I
think we can do this so that the author doesn't notice; we just fiddle
with the tool chain to generate kcite shortcodes. But, what does the
reader get out of this. Well:

- We are using the online database, keyed on a public identifier,
whether it be URL, pubmed ID or DOI. Kcite makes it easier for the
authors to get this right, rather than wrong. Which is better for the
reader.
- We, the publisher, have the data in a computational form. It's not by
chance that this fits well with adding CITO form of semantics; it's
by design. We can alter the presentation in anyway we choose. Hard to
do if word/latex/google docs generates the bibliography directly.
- We, the publisher, can give the data in a computational form to the
reader. Or, rather, in most cases, the reader's client. Our hope is
that we can use something like citeproc.js, so that the reader can
choose the citation style that they want, on the fly, in the client.
It is with this plan in mind that kcite generates a bibliography in
JSON, in case any of you were wondering about that otherwise obscure
decision.

Finally, of course, if the consumer is not human, well, they probably
will be glad just to get the public identifiers without all the cruft
that humans need. I hope to add this as well (to knowledgeblog rather
than kcite).

The "do it in wordpress" approach is fine; indeed, there is also a
public identifier solution for this from cross ref.

http://www.crossref.org/CrossTech/2008/02/crossref_citation_plugin_for_w.html

But, for my money, giving wordpress access to the public IDs has too
many advantages to be ignored.

Phil


Simon Cockell <sjco...@gmail.com> writes:

--

Reply all
Reply to author
Forward
0 new messages