Since becoming the first COinS-PMH (now unAPI)-compliant blog in the world, I’ve been meaning to flesh the plugin out a bit before releasing it; but I haven’t had time. So here’s the Wordpress Simple OAI plugin. To install it: unzip it into the wp-content/plugins directory (so you get a directory called oai there). Then, add this code snippet to post.php and single.php in your current theme, under the posting title:

<span    class="Z3988 pmh"    title="ctx_ver=Z39.88-2004   &amp;  rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc   &amp;   &amp;<?php echo the_ID(); ?>   &amp;  rft.title=<?php echo urlencode(the_title('', '', FALSE));?>">.</span>

I’ve broken the title attribute into several lines for readability, but you should be sure to combine it into a single line; and note that its ampersands should be presented as entities. Replace “” and “quaedam” with your own domain and blog names.

In the head of these two files, add this (modifying the url as appropriate):

<link rel="meta" type="application/xml" title="COinS-PMH" href="" />

Finally, insert this into your style.css:

.pmh {display: none;}

Now install Dan Chudnov’s GreaseMonkey script, if you haven’t already, and visit your blog. You should see something like this screenshot.