I'm using Biblio for handling the references for our genomics lab website and it's been crazy-handy. You're doing a great job!
I'm running across a small UX issue, and I'm hoping to solve it with some integration with the Linkit module. My issue is this:
I let my non-admin users cite Biblio nodes using the [bib] tag via TinyMCE/WYSIWYG. This means they need the citekey. I use the node ID as the citekey. Unfortunately, the citekey isn't shown on the default Biblio node page, so my users have to go to the node and hover over the edit tab to get the it. I tried creating a Page View with the content of the node page followed by the citekey, but the Content:Body for Biblio nodes is empty, so that's a no-go. Even if the citekey was on the page (preferably only for logged-in users at that), they'd still need to go back and forth between pages to input it, and I'm trying to make this process super-slick.
For a solution to all of these concerns, I've been looking at the Linkit module. This module provides a plugin for WYSIWYG that lets the user use an Autocomplete box to find the node he's looking for and insert a proper link with minimal effort (and without leaving the edit page). It also has an API for configuring this search to particular content. Unfortunately, currently it only produces links (it specifically inserts the a tag) and there's no plugin to get the citekey from a Biblio node (rather than just the nid of a node).
I'd like two things, basically:
(1) A Linkit plugin that allows you to use the Autocomplete box to search for Biblio nodes and get the citekey returned for use later in Linkit's processing pipeline.
(2) A fix for Linkit that inserts the bib tags (either with carats or brackets, extra credit for being able to configure this)
I know (2) is more of a task for someone on the Linkit team, but I feel like there's probably someone out there who uses Biblio who'd like to see this kind of functionality as well and by posting here I'm hoping we might get some more eyes on both (1) and (2). I've posted a similar request on Linkit's queue here: Add Biblio integration
Although I'd love to have this magically appear in the next release of Biblio and Linkit, I don't expect it to, so I'm considering doing some of the coding myself. Any pointers for where to start would be much appreciated :)
Comments
Comment #1
SandPond commentedThis is a problem that is immediately encounted the first time anyone goes to insert Biblio citations (citekeys) in articles. I agree that a separate Linkit button would be among the best of solutions. The popup for this might have a radio button to select either: (1) [bib]citekey[/bib] ; (2) a link created from the [firstname]space[year], or link composed of [title].
An alternate solution, might be a TinyMCE button which would allow the the user to enter the citekey, and then automatically place it between [bib] tags. Of course this idea is much less desirable because the main probem for users is "finding" the citekey value in the first place. Maybe the following code would be the starting place for such a button: http://www.tinymce.com/tryit/custom_toolbar_button.php
Thanks to anyone who might develop a simple, straighforward, and "standard" solution to this much needed feature enhancement. Either a direct upgrading of the Biblio module, or a sub/separate module might be candidates to address the problem.
P.S.: I have found TinyMCE documentation direly lacking. Examples seem simple enough, but assume a high level of prexisting knowledge.