Releases: thclark/wagtail_references
Release list
Fixed incompatibility with django's postres jsonfield
Listings table updated
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
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.jsis 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.jsin template rendering - A react component that converts and displays the citation
- Removed the roadmap lines for things I just did! Yay!
Documentation update
Updated docs that were outdated by theh prior version.
Fixing slug generation
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
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
Merge pull request #3 from thclark/bibjson FIX bibjson correctly stored in the signal handler
Fix to serializers to include bibjson
Merge pull request #2 from thclark/bibjson FIX Added bibjson to serializer
Addition of bibjson column in db
Merge pull request #1 from thclark/bibjson Added Bibjson field
Initial release
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.