diff --git a/Repositories/otago_eprints/otago_eprints/cfg/ArchiveRenderConfig.pm b/Repositories/otago_eprints/otago_eprints/cfg/ArchiveRenderConfig.pm index 345f8ab..9c84b89 100755 --- a/Repositories/otago_eprints/otago_eprints/cfg/ArchiveRenderConfig.pm +++ b/Repositories/otago_eprints/otago_eprints/cfg/ArchiveRenderConfig.pm @@ -171,6 +171,23 @@ $p->appendChild( $eprint->render_value( "official_url" ) ); } + + # Link to download statistics. [NJS 2005-12-08] + # Note: highly dependent on the way that the UTas EPrintsStats package + # structures things! In particular, this will break completely if the + # URL format changes. + $p = $session->make_element( "p" ); + $page->appendChild( $p ); + $p->appendChild( $session->html_phrase( "abstract/stats_link:prefix" ) ); + + my $statslink = $session->make_element( "a", + href=>"/es/index.php?action=show_detail_eprint;id=" . $eprint->get_value( "eprintid" ) . ";year=0;month=0;range=4w" ); + $statslink->appendChild( $session->html_phrase( "abstract/stats_link:link_text" ) ); + + $p->appendChild( $statslink ); + $p->appendChild( $session->html_phrase( "abstract/stats_link:suffix" ) ); + + # Then the abstract if( $eprint->is_set( "abstract" ) ) {