diff --git a/Repositories/statistics/includes/inc.html.show_detail_eprint.es.php b/Repositories/statistics/includes/inc.html.show_detail_eprint.es.php index 5819773..17c0eff 100755 --- a/Repositories/statistics/includes/inc.html.show_detail_eprint.es.php +++ b/Repositories/statistics/includes/inc.html.show_detail_eprint.es.php @@ -11,10 +11,20 @@ // Create link to eprint. // NJS 2006-06-14: Added archive name as index. $title_link = '' . + $GLOBALS["config_vars"]["general"]["eprints_location"][$GLOBALS["config_vars"]["archivename"]] . + '/'; + // NJS 2007-07-24: Long URLs no longer appear to work in EPrints 3, + // so we need to check the version. + if ( $GLOBALS["config_vars"]["general"]["eprints_version"] > 2 ) + { + $title_link .= $_REQUEST["id"]; + } + else + { + $title_link .= 'archive/' . + sprintf("%08d", $_REQUEST["id"]); + } + $title_link .= '/" target="_blank">' . $title . '';