An OpenURL Plugin for Wordpress
[Update: get latest version here.]
Here’s a quick-and-dirty plugin for Wordpress to create latent OpenURLs (following Openly’s proposed syntax) and insert them into a Wordpress posting. It adds a button to the quicktags menu on Wordpress’s post editing screen. The button works like the link button: clicking it brings up a popup window (slowly), containing a form with basic OpenURL fields for a journal article. When the form is filled and submitted, the OpenURL is created in the post. The plugin is based on the Edit Button Framework by Owen Winkler. For non-Wordpress users, it looks like this:
To install it, download the plugin and put it (it’s a single php file) in your wp-content/plugins directory. Go to the Plugins page of your Wordpress admin interface and activate the plugin. When you edit a post, the new OpenURL button should be there.
Here’s a test OpenURL generated by the plugin: [] As always, you’ll need your own means of activating the latent OpenURL, such as Openly’s browser plug in. Or just view source.
Where should a tool like this go next? Ideally, it wouldn’t force you to retype anything; perhaps you could paste in the url of a MarcXML or MODS record, and it would import the record and generate an OpenURL. If you’ve got a working OpenURL, you could paste it in and the plugin would strip off the base url for you.
Peter, this is amazing. Here's a screenshot of how it renders with WAG the Monkey. The simplicity of ratcheting down OpenURL 1.0 to 0.1 for SFX v. 2 compatibility is beginning to sway me towards the idea of only supporting 1.0 in latent OpenURLs (but the key is how easy they are to implement for the user-which you've addressed quite well here).
[...] The latent OpenURL idea has cystallized as COinS 1.0. The major change from earlier proposals is to hide the latent OpenURL in the title attribute of a span tag, rather than in the href of an anchor tag. Accordingly, I've updated the little Wordpress plug-in I wrote to insert OpenURLs in Wordpress postings. A sample link follows: [] (as before, you won't see anything between the square brackets unless you have an activator). The plugin inserts a comment in the span tag containing a link to the spec. Download the new version here. [...]
[...] Here's an update of the COinS Wordpress plugin. It fixes a couple of errors in the previous version (content of the class attribute as pointed out by Eric, and encoding of the ampersands in the context object), and renames some of its internals to incorporate COinS terminology. Note: the file has a new name, COinS_button.php instead of openurl_button.php. If you've installed the earlier version, you should delete it when you install the new version; otherwise you'll get both buttons. [...]
That's a great idea, and the plugin looks very promising. Good blog post. I am bookmarking your blog. What does the name mean though?
[...] This is a test of the COinS open URL plug-in for WordPress. [...]
[...] This is a test of the COinS open URL plug-in for WordPress. [...]
I'd really like to give this plugin a try. Can you bring it back, please?