Adding COinS for BlogCFC
A few months ago, I was up at George Mason's Center for History and New Media talking to them about how they were approaching their online projects. One of the things they introduced me to was Zotero, a Firefox extension to "collect, manage, and cite your research sources." While it was mostly developed to help researchers manage citations online, I started using it to start organize blog entries, adding my own notes, tags, and relating them to other blog entries.
Unfortunately, I've been adding these pages manually. And, with about two lines of code, you can add meta-data to not only open your entries in BlogCFC up to Zotero, but other harvesters.
First, a quick note about COinS.
COinS is an acronymn for ContextObjects in Spans), it's basically a micro-format for embedding bibliographic information in HTML for the NISO OpenURL Standard Z39.88-2004. What makes this really nice is that you no longer have to hunt down how to cite information for your specific format (Chicago, APA, etc.), the information is embedded in the HTML and software then properly formats the citations for you.
A blog entry is a reasonably straight-forward citation. You want the URL, title of the entry, the author, and date. So, to add to BlogCFC, open the index.cfm page and where the loop for the categories is located (around line 82), simply add a new String of the categories:
<!--- added line --->
<cfset cats = cats & "&rft.subject=" & #categories[currentRow][catid]# />
<cfoutput><a href="#application.blog.makeCategoryLink(catid)#">#categories[currentRow][catid]#</a><cfif catid is not lastid>,</cfif></cfoutput>
</cfloop>
Now, you just need to add the span. I added mine directly under the close of the above loop.
<span class="Z3988" title=""ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&rfr_id=info%3Asid%2Focoins.info%3Agenerator&rft.title=#replace(title, " ", "+", "ALL")##cats#&rft.creator=#application.blog.getProperty("owneremail")#&rft.date=#dateFormat(posted, "yyyy-mm-dd")#&rft.type=blogPost&rft.format=text&rft.identifier=#application.blog.makeLink(id)#&rft.source=#application.blog.getProperty("blogDescription")#&rft.language=English"></span>
</cfoutput>
You'll notice there's nothing in the span, so it doesn't actually display on the screen, but is there for OpenURL aware programs like Zotero. If you refresh your cache, you'll then see a button in the address bar (assuming Zotero is installed) that will then add the blog entry to your collection.
Not using BlogCFC? There's a few WordPress plugins too, though I've not seen anything for Blogger yet.
