Sun 12 Mar 2006
A mathML aware Wordpress 2.0 plugin to easily interface with RSS feeds of the recent articles at the arXiv
Version 0.1 This AJAXish plugin is intended to help you easily keep track of interesting article at the arXiv. It is in use on this blog, just go back to the main page to see it.
Features:
- Dynamically fetches feed from the arXiv to speed up rendering time on the page
- Optionally displays appropriate mathML if the browser is mathML aware
- If a user can publish allows storing the article abstract, title, etc. as a post in a selectable category
- Caches the arXiv RSS feeds (to be nice to the good people at the arXiv)
- Lets you specify a list of archives that you can browse.
- Lets you specify preferred file type for view files (postscipt or pdf)
Installation:
Create a directory arXiv in your plugins directory and unzip the .zip file below. If you want to cache the RSS feeds (highly suggested), you need to create a sub-directory arXiv-cache of the subdirectory that you just created, and this directory needs to be writable by the web-server, e.g. chmod 777 arXiv-cache will do it on a Unix machine. Now just enable the plugin in the administation panel, and browse to the arXiv sub-menu of the options page to set the options.
Note: You can change the cache-directory by modifying the appropriate line (towards the bottom) of arXiv-fetch.php.
Installation (optional mathML):
There is occasionally some latex included in the feeds. You can enable viewing of this in mathML, so that it looks nice and pretty. To enable this, you need to first follow the installation instructions above. Next install and activate the plugins itextToMML and Entities. Finally enable mathML in the arXiv options page.
Note: Make sure that you use my version of itexToMML.
Files:
All of these files, as well as some navagation icons are packaged in arXiv.zip
Quirk: Just thought I would point out an intersting quirk I found in javascript and its behaviour with firefox/mozilla. I am manipulating the RSS feed from the arXiv, which is XML document. The author information for an article is contined in:
<dc:creator> Blah Blah Blah </dc:creator>
It seems that the getElementsTagName functions differently and to handle this I had to do:
author = article.getElementsByTagName('creator'); //atempt to get dc:creator in firefox
if (author[0] == null) { //didn't behave like firefox
author = article.getElementsByTagName('dc:creator')[0].firstChild.nodeValue; //hope it's behaving like explorer
} else {
author = author[0].firstChild.nodeValue; //firefox
}
and now author contains the desired string Blah Blah Blah. Here article is an element of the array resulting from a getElementByTagName(’item’)



