Bibtex support

Issue #5 closed
Former user created an issue

SimpleCite is a great plugin. Thanks for creating it - and thanks again for also having the source code available.

One very useful enhancement would be to allow BibTeX file support for the citation sources (eg using citeproc-java) rather than manual entry and formatting. Is that something you might consider adding, or is it too much of a change?

Thanks.

Comments (8)

  1. Andreas Purde repo owner

    Thank you very much for the valuable input. I'll evaluate the effort and in case it is manageable I will give it a try.

  2. Andreas Purde repo owner

    Some update: I tried to implement cite-proc java. However currently I'm running into an exception of citeproc I can't solve right now. We will see...

  3. Andreas Purde repo owner

    The problems are solved. The functionality will be implemented in the next version which I expect for end of July 2015.

  4. K

    Great. Thanks so much for implementing this. I am eager to try it out. I notice the comment about "rendering performance might be slower than you expected". Based on a quick review of your code it looks like you are not caching the generated citation. I've implemented caching using the Atlassian methods in some of my plugins and it is not too difficult. I think this would help significantly. I can help out if you like.

  5. Andreas Purde repo owner

    Dear K P, thank you for the input. You are absolutely right. I evaluated caching per conversion earlier but this did not help much according to my feeling. However I did not think about a global cache - so again thank you for the input. I implemented it within minutes and it works great for all users not rendering a specific cite the first time ;-) I'll role it out after some further testing. Do you have any recommendation regarding caching times? Days, weeks...?

  6. K

    Andreas,

    Excellent. I was originally thinking of on-demand caching using a unique key made up of bibtex_file:cite_key:cite_style (or some other unique aspect). Is your global cache scalable to large bibtex files?

    In my case the cache times are short (30mins) as I'm caching outputs from a database lookup or external API and so Confluence has no idea of any changes. In your case I think a longer cache time is fine (weeks seem OK) with invalidation if someone uploads a new bibtex file version or changes the citation.

    Thanks again for all your work, Kieran

  7. Log in to comment