Difference between revisions of "How to add monthly downloads to abstract"
LukeWallin (talk | contribs) (Created page with "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: <!--...") |
LukeWallin (talk | contribs) |
||
| Line 1: | Line 1: | ||
| + | [[Category:Howto]] | ||
| + | |||
create zz_irstats2.pl in archive | create zz_irstats2.pl in archive | ||
Latest revision as of 13:30, 21 September 2026
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>