(function (env) {
    "use strict";
    env.ddg_spice_arxiv = function(api_result){

        if (!api_result) {
            return Spice.failed('arxiv');
        }

        Spice.add({
            id: "arxiv",

            name: "Reference",
            data: api_result,
            meta: {
                sourceName: "arxiv.org",
                sourceUrl: api_result.feed.entry.link[0].href
            },
            normalize: function(item) {
                return {
                    title: item.feed.entry.title.text,
                    url: item.feed.entry.link[0].href,
                    subtitle: item.feed.entry.author.map( function(e) {
                        return e.name.text;
                    } ).join(', '),
                    description: item.feed.entry.summary.text
                };
            },
            templates: {
                group: 'info',
                options: {
                    moreAt: true
                }
            }
        });
    };
}(this));

@@ -499,34 +499,186 @@
 le: 
-item.feed.entry.title.text
+sprintf( %22%25s (%25s)%22,%0A                        item.feed.entry.title.text,%0A                        item.feed.entry.published.text.replace( /%5E(%5Cd%7B4%7D).*/, %22$1%22 )%0A                    )
 ,%0A  

Add published year to title