Skip to content

Releases: thclark/wagtail_references

Fixed incompatibility with django's postres jsonfield

Choose a tag to compare

@thclark thclark released this 05 Sep 07:30
da03fdf

Closes #15

Listings table updated

Choose a tag to compare

@thclark thclark released this 20 May 12:27
9f8b8ff

List of references in the index no longer stacks them horizontally (this was confusing) so each now appears on a new line.

Added usage examples and improved rendering

Choose a tag to compare

@thclark thclark released this 20 May 11:46
bae90de

Features:

Improved rendering of the references where they appear in a list. Rendering is now:

  • more robust since an entire single reference is rendered in one include block. If rendering a single one goes wrong, the rest don't fail.
  • prettier citation.js is used in the template to convert the bibtex to apa-style citations in HTML. So you get to see how they'll actually be rendered on the front end.

Docs:

Updated the readme to include usage examples:

  • How to use citation.js in template rendering
  • A react component that converts and displays the citation
  • Removed the roadmap lines for things I just did! Yay!

Documentation update

Choose a tag to compare

@thclark thclark released this 17 May 19:08
628b2dd

Updated docs that were outdated by theh prior version.

Fixing slug generation

Choose a tag to compare

@thclark thclark released this 17 May 18:53
cd03c76

Moved the bibtex parsing code out of a signal, and onto the model. Added model methods to generate slugs automatically and robustly, as well as synchronizing the citation key used in bibtex with the slug.

This refactor allows (and in future will allow even better) exception handling on form validation, so we can make the add/edit pages much more robust and user friendly (e.g. with relevant error messages explaining parsing errors) over time.

The add and edit forms have been adjusted, so that adding an entry does not require a slug (it is autogenerated from the content initially), but so that the autogenerated slug can be manually edited later.

A number of tests have been added, dramatically improving coverage from an appalling (30ish%) to a poor (56%).

Addition of modelcluster

Choose a tag to compare

@thclark thclark released this 17 May 10:16
40a2eba

This allows reference snippets to be created on the fly within a page or streamfield creation process, which is an extremely common use case... Let's face it, if you're editing a story in your CMS you want to be able to add references as you go, instead of leaving the view, creating the reference, then returning to add the new reference into your story.

The 'Orderable' base class was also added to the snippet. So if you were to use a list of references in another model, you'd be able to re-order them as you please.

Fixed bibjson parsing and added serialization test

Choose a tag to compare

@thclark thclark released this 16 Apr 17:09
d7beb6b
Merge pull request #3 from thclark/bibjson

FIX bibjson correctly stored in the signal handler

Fix to serializers to include bibjson

Choose a tag to compare

@thclark thclark released this 16 Apr 14:34
53408b5
Merge pull request #2 from thclark/bibjson

FIX Added bibjson to serializer

Addition of bibjson column in db

Choose a tag to compare

@thclark thclark released this 16 Apr 14:27
ea50be2
Merge pull request #1 from thclark/bibjson

Added Bibjson field

Initial release

Choose a tag to compare

@thclark thclark released this 02 Apr 10:38

Refactored out from other applications as a standalone Wagtail plugin.

There's still a lot to do, but this provides basic BibTex reference management in the CMS, and allows references to be serialised through to the front end for rendering in HTML.