How to add monthly downloads to abstract
create zz_irstats2.pl in archive
- If you are embedding in abstract pages using a phrase set below to 1.
$c->{irstats2}->{abstract_embed} = 1;
then in abstract xml:
Monthly Downloads for the past 3 years
<script type="text/javascript">
document.observe( "dom:loaded", function() {
new EPJS_Stats_GoogleGraph( {
'context': { 'datatype': 'downloads', 'range': '3y', 'set_name': 'eprint', 'set_value': '<epc:print expr="eprintid"/>' },
'options': { 'graph_type': 'column', 'container_id': 'downloadsmonthlygraph', 'view': 'Google:Graph', 'show_average': '0', 'date_resolution': 'month' }
} );
});
</script>