How to add monthly downloads to abstract

From EPrints Documentation
Revision as of 13:28, 21 September 2026 by 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: <!--...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

create zz_irstats2.pl in archive

  1. 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>