GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
Digital_Repository
Browse code
- Corrected GeoLite name.
master
1 parent
72cefa6
commit
768b8986e8926ba76ad50f2df619477832153d6b
nstanger
authored
on 12 Dec 2005
Patch
Showing
2 changed files
Repositories/otago_eprints/otago_eprints/cfg/static/en/information.xpage
Repositories/statistics/includes/inc.html.cumulative_usage_country.es.php
Ignore Space
Show notes
View
Repositories/otago_eprints/otago_eprints/cfg/static/en/information.xpage
<?xml version="1.0" standalone="no" ?> <!DOCTYPE page SYSTEM "entities-en.dtd" > <ep:page xmlns="http://www.w3.org/1999/xhtml" xmlns:ep="http://eprints.org/ep2/page"> <ep:title>About the Repository</ep:title> <ep:body> <p>This repository is running on GNU EPrints open repository software, a freely distributable repository system available from <a href="http://software.eprints.org/">software.eprints.org</a>. Other institutions are invited (and encouraged) to set up their own open repositories for author <a href="http://www.eprints.org/self-faq/">self-archiving</a>, using the freely-distributable <a href="http://software.eprints.org/">GNU EPrints software</a> used at this site.</p> <h2>Contact Information</h2> <p>Any correspondence concerning this specific repository should be sent to <a href="mailto:&adminemail;">&adminemail;</a>.</p> <h2>Acknowledgements</h2> <h3>Pilot Project Team</h3> <table> <tr> <td align="right"><strong>Project Leader:</strong></td> <td>Dr Nigel Stanger, Department of Information Science</td> </tr> <tr> <td align="right"><strong>Project Sponsor:</strong></td> <td>Dr Graham McGregor, School of Business</td> </tr> <tr> <td align="right"><strong>Technical Manager:</strong></td> <td>Brent Jones, School of Business</td> </tr> <tr> <td align="right"><strong>Library Liaison:</strong></td> <td>Nicola McDowell, Library</td> </tr> <tr> <td align="right"><strong>Research Assistants:</strong></td> <td>Monica Ballantine</td> </tr> <tr> <td align="right"></td> <td>Jeremy Johnston</td> </tr> </table> <h3>Standing Committee</h3> <ul> <li>Sue Pharo, Library</li> <li>Mike Harte, ITS</li> <li>Professor Michael Hall, Department of Tourism</li> <li>Dr Graham McGregor, School of Business</li> </ul> <h3>Other Contributors</h3> <p>Special thanks go to Professor George Benwell (Information Science) for providing the initial impetus for the project; and to Arthur Sale (University of Tasmania) and Eve Young (The University of Melbourne) for their help with setting up the repository.</p> <p>Thank you also to the many people who have taken the time to comment on and assist with the project in various ways.</p> <h2>About this Software</h2> <p>This site is running GNU EPrints / revision: &version;</p> <p>GNU EPrints is free software developed by the University of Southampton, England.</p> <p>For more information see <a href="http://eprints.org/">eprints.org</a> and <a href="http://software.eprints.org/">software.eprints.org</a></p> <h2>Technologies Employed and Supported</h2> <p><strong>Powered by:</strong> <a href="http://www.mysql.com/">MySQL</a>, <a href="http://www.apache.org/">Apache Webserver</a>, <a href="http://www.perl.org/">Perl</a>, <a href="http://perl.apache.org/">mod_perl</a>, <a href="http://www.w3c.org/XML/">XML</a>, <a href="http://www.w3c.org/DOM/">DOM</a>, <a href="http://paracite.eprints.org/">ParaCite</a>, <a href="http://software.eprints.org/">GNU EPrints</a>. </p> <p><strong>Supports:</strong> <a href="http://www.openarchives.org/">Open Archives Initiative Protocol for Metadata Harvesting</a>, <a href="vlit.html">VLit Transclusions</a>, <a href="http://www.w3.org/MarkUp/">Valid XHTML</a>, <a href="http://jigsaw.w3.org/css-validator/">Valid CSS</a>. </p> <p><strong>Part of:</strong> <a href="http://www.gnu.org/">The GNU Project</a>. </p> <table width="100%" bgcolor="#ffffff" border="0" cellpadding="8" cellspacing="0"> <tr> <td width="33%" align="center"> <a href="http://www.mysql.com/"><img src="&base_url;/images/poweredbymysql-167.png" border="0" alt="Powered by MySQL" align="middle" /></a> </td> <td width="33%" align="center"> <a href="http://www.openarchives.org/"><img src="&base_url;/images/OA100.png" border="0" alt="The Open Archives Initiative" align="middle" /></a> </td> <td width="33%" align="center"> <a href="http://www.gnu.org/"><img src="&base_url;/images/gnu-head-sm.jpg" border="0" alt="Part of the GNU Project" align="middle" width="129" height="122" /></a> </td> </tr> <tr> <td width="33%" align="center"> <a href="http://tardis.eprints.org/"><img src="&base_url;/images/tardis-logo.png" border="0" alt="Tardis Project" align="middle" /></a> </td> <td width="33%" align="center"> <a href="http://software.eprints.org/"><img src="&base_url;/images/eprintslogo.gif" border="0" alt="GNU EPrints" align="middle" /></a> </td> <td width="33%" align="center"> <a href="vlit.html"><img src="&base_url;/images/XanaduVLit.png" border="0" alt="Powered by Vlit" align="middle" /></a> </td> </tr> </table> <h2>Software Credits</h2> <p><a href="http://www.ecs.soton.ac.uk/info/people/cjg">Christopher Gutteridge</a> - Designer and coder of <em>EPrints version 2</em>.</p> <p>Mike Jewell - Pre-release testing. The initial versions of scripts for creating and installing an <em>EPrints v2</em> package. Some coding assistance.</p> <p>Harry Mason - Testing. Document to text conversion wrappers. Document icons.</p> <p>Robert Tansley - Creator of <em>EPrints 1</em> on which <em>EPrints 2</em> is based.</p> <p>Al Riddoch <<a href="mailto:ajr@ecs.soton.ac.uk">ajr@ecs.soton.ac.uk</a>> - Assistance in writing the "configure" script for the installer.</p> <p><a href="http://www.ecs.soton.ac.uk/info/people/jmnh">Jessie Hey</a> and Pauline Simpson (as part of the <a href="http://tardis.eprints.org">TARDIS Project</a>) - Feature suggestions and contributions to the default configuration of version 2.3.</p> <p>Gui Power - Adapting the <a href="&base_url;/help/">online help</a> for version 2.</p> <p>The orginal statstics generation code was written at the University of Melbourne, then modified and substantially rewritten by Christian McGee and Arthur Sale at the University of Tasmania (<a href="mailto:eprints@leven.comp.utas.edu.au">eprints@leven.comp.utas.edu.au</a>). Support for EPrints short URLs and the MaxMind GeoIP database were added by Nigel Stanger at the University of Otago.</p> <p>The free <a href="http://www.maxmind.com/app/geoip_country">GeoLite Country</a> database is provided by MaxMind LLC.</p> <p>The document format icons come from the <a href="http://www.kde-look.org/content/show.php?content=27788">Gnome-mix icon set for KDE</a>, compiled by mavvert and licensed under the <a href="http://www.fsf.org/licenses/gpl.html">GPL</a>.</p> <p align="center" style="border: dotted #CCC; border-width: 1px 0px 0px 0px; padding: 5px 0px 0px 0px;"> EPrints was developed at the <a href="http://www.ecs.soton.ac.uk/">School of Electronics and Computer Science</a> at the <a href="http://www.soton.ac.uk/">University of Southampton</a>, England.</p> <div align="center"> <table bgcolor="#ffffff" border="0" cellpadding="8" cellspacing="0"><tr><td> <a href="http://www.soton.ac.uk/"><img src="&base_url;/images/uoslogo.png" border="0" alt="University of Southampton" align="top" /></a> <a href="http://www.ecs.soton.ac.uk/"><img src="&base_url;/images/ecslogo.png" border="0" alt="School of Electronics and Computer Science" align="top" /></a> </td></tr></table> </div> </ep:body> </ep:page>
<?xml version="1.0" standalone="no" ?> <!DOCTYPE page SYSTEM "entities-en.dtd" > <ep:page xmlns="http://www.w3.org/1999/xhtml" xmlns:ep="http://eprints.org/ep2/page"> <ep:title>About the Repository</ep:title> <ep:body> <p>This repository is running on GNU EPrints open repository software, a freely distributable repository system available from <a href="http://software.eprints.org/">software.eprints.org</a>. Other institutions are invited (and encouraged) to set up their own open repositories for author <a href="http://www.eprints.org/self-faq/">self-archiving</a>, using the freely-distributable <a href="http://software.eprints.org/">GNU EPrints software</a> used at this site.</p> <h2>Contact Information</h2> <p>Any correspondence concerning this specific repository should be sent to <a href="mailto:&adminemail;">&adminemail;</a>.</p> <h2>Acknowledgements</h2> <h3>Pilot Project Team</h3> <table> <tr> <td align="right"><strong>Project Leader:</strong></td> <td>Dr Nigel Stanger, Department of Information Science</td> </tr> <tr> <td align="right"><strong>Project Sponsor:</strong></td> <td>Dr Graham McGregor, School of Business</td> </tr> <tr> <td align="right"><strong>Technical Manager:</strong></td> <td>Brent Jones, School of Business</td> </tr> <tr> <td align="right"><strong>Library Liaison:</strong></td> <td>Nicola McDowell, Library</td> </tr> <tr> <td align="right"><strong>Research Assistants:</strong></td> <td>Monica Ballantine</td> </tr> <tr> <td align="right"></td> <td>Jeremy Johnston</td> </tr> </table> <h3>Standing Committee</h3> <ul> <li>Sue Pharo, Library</li> <li>Mike Harte, ITS</li> <li>Professor Michael Hall, Department of Tourism</li> <li>Dr Graham McGregor, School of Business</li> </ul> <h3>Other Contributors</h3> <p>Special thanks go to Professor George Benwell (Information Science) for providing the initial impetus for the project; and to Arthur Sale (University of Tasmania) and Eve Young (The University of Melbourne) for their help with setting up the repository.</p> <p>Thank you also to the many people who have taken the time to comment on and assist with the project in various ways.</p> <h2>About this Software</h2> <p>This site is running GNU EPrints / revision: &version;</p> <p>GNU EPrints is free software developed by the University of Southampton, England.</p> <p>For more information see <a href="http://eprints.org/">eprints.org</a> and <a href="http://software.eprints.org/">software.eprints.org</a></p> <h2>Technologies Employed and Supported</h2> <p><strong>Powered by:</strong> <a href="http://www.mysql.com/">MySQL</a>, <a href="http://www.apache.org/">Apache Webserver</a>, <a href="http://www.perl.org/">Perl</a>, <a href="http://perl.apache.org/">mod_perl</a>, <a href="http://www.w3c.org/XML/">XML</a>, <a href="http://www.w3c.org/DOM/">DOM</a>, <a href="http://paracite.eprints.org/">ParaCite</a>, <a href="http://software.eprints.org/">GNU EPrints</a>. </p> <p><strong>Supports:</strong> <a href="http://www.openarchives.org/">Open Archives Initiative Protocol for Metadata Harvesting</a>, <a href="vlit.html">VLit Transclusions</a>, <a href="http://www.w3.org/MarkUp/">Valid XHTML</a>, <a href="http://jigsaw.w3.org/css-validator/">Valid CSS</a>. </p> <p><strong>Part of:</strong> <a href="http://www.gnu.org/">The GNU Project</a>. </p> <table width="100%" bgcolor="#ffffff" border="0" cellpadding="8" cellspacing="0"> <tr> <td width="33%" align="center"> <a href="http://www.mysql.com/"><img src="&base_url;/images/poweredbymysql-167.png" border="0" alt="Powered by MySQL" align="middle" /></a> </td> <td width="33%" align="center"> <a href="http://www.openarchives.org/"><img src="&base_url;/images/OA100.png" border="0" alt="The Open Archives Initiative" align="middle" /></a> </td> <td width="33%" align="center"> <a href="http://www.gnu.org/"><img src="&base_url;/images/gnu-head-sm.jpg" border="0" alt="Part of the GNU Project" align="middle" width="129" height="122" /></a> </td> </tr> <tr> <td width="33%" align="center"> <a href="http://tardis.eprints.org/"><img src="&base_url;/images/tardis-logo.png" border="0" alt="Tardis Project" align="middle" /></a> </td> <td width="33%" align="center"> <a href="http://software.eprints.org/"><img src="&base_url;/images/eprintslogo.gif" border="0" alt="GNU EPrints" align="middle" /></a> </td> <td width="33%" align="center"> <a href="vlit.html"><img src="&base_url;/images/XanaduVLit.png" border="0" alt="Powered by Vlit" align="middle" /></a> </td> </tr> </table> <h2>Software Credits</h2> <p><a href="http://www.ecs.soton.ac.uk/info/people/cjg">Christopher Gutteridge</a> - Designer and coder of <em>EPrints version 2</em>.</p> <p>Mike Jewell - Pre-release testing. The initial versions of scripts for creating and installing an <em>EPrints v2</em> package. Some coding assistance.</p> <p>Harry Mason - Testing. Document to text conversion wrappers. Document icons.</p> <p>Robert Tansley - Creator of <em>EPrints 1</em> on which <em>EPrints 2</em> is based.</p> <p>Al Riddoch <<a href="mailto:ajr@ecs.soton.ac.uk">ajr@ecs.soton.ac.uk</a>> - Assistance in writing the "configure" script for the installer.</p> <p><a href="http://www.ecs.soton.ac.uk/info/people/jmnh">Jessie Hey</a> and Pauline Simpson (as part of the <a href="http://tardis.eprints.org">TARDIS Project</a>) - Feature suggestions and contributions to the default configuration of version 2.3.</p> <p>Gui Power - Adapting the <a href="&base_url;/help/">online help</a> for version 2.</p> <p>The orginal statstics generation code was written at the University of Melbourne, then modified and substantially rewritten by Christian McGee and Arthur Sale at the University of Tasmania (<a href="mailto:eprints@leven.comp.utas.edu.au">eprints@leven.comp.utas.edu.au</a>). Support for EPrints short URLs and the MaxMind GeoIP database were added by Nigel Stanger at the University of Otago.</p> <p>The <a href="http://www.maxmind.com/app/geoip_country">GeoLite Free Country</a> GeoIP database is provided by MaxMind LLC.</p> <p>The document format icons come from the <a href="http://www.kde-look.org/content/show.php?content=27788">Gnome-mix icon set for KDE</a>, compiled by mavvert and licensed under the <a href="http://www.fsf.org/licenses/gpl.html">GPL.</a></p> <p align="center" style="border: dotted #CCC; border-width: 1px 0px 0px 0px; padding: 5px 0px 0px 0px;"> EPrints was developed at the <a href="http://www.ecs.soton.ac.uk/">School of Electronics and Computer Science</a> at the <a href="http://www.soton.ac.uk/">University of Southampton</a>, England.</p> <div align="center"> <table bgcolor="#ffffff" border="0" cellpadding="8" cellspacing="0"><tr><td> <a href="http://www.soton.ac.uk/"><img src="&base_url;/images/uoslogo.png" border="0" alt="University of Southampton" align="top" /></a> <a href="http://www.ecs.soton.ac.uk/"><img src="&base_url;/images/ecslogo.png" border="0" alt="School of Electronics and Computer Science" align="top" /></a> </td></tr></table> </div> </ep:body> </ep:page>
Ignore Space
Show notes
View
Repositories/statistics/includes/inc.html.cumulative_usage_country.es.php
<?php require("inc.html.navbar_global.es.php"); ?> <h3>Abstract views and document downloads by country (derived from IP address of query)</h3> <p><strong>Note:</strong> The country of origin is determined by looking up the source IP address in the <a href="http://www.maxmind.com/app/geoip_country">GeoLite Country</a> database provided by MaxMind LLC. Due to the ever-changing nature of the Internet, this database can never be 100% complete or accurate, so it is possible that a small number of downloads may be reported as being from the wrong country.</p> <?php $max_width=500; if (! isset($GLOBALS["db_values"]["0"]["country_downloads"])) { print "<table>\n"; print '<tr><td align="left" width="200" style="color:#ff0000;"><b>No statistics available.</b></td></tr>'; print "\n"; } else { // Compute the longest bar $max_count = $GLOBALS["db_values"]["0"]["country_downloads"]; for ($rs=0; $rs<count($GLOBALS["db_values"]); $rs++) { if ($GLOBALS["db_values"][$rs]["country_abstracts"] > $max_count) { $max_count = $GLOBALS["db_values"][$rs]["country_abstracts"]; } } print "<table>\n"; print '<tr><th colspan="2" align="left" style="background-color:#cccccc;">Country</th> <th style="background-color:#66ddee;">Abstracts</th> <th style="background-color:#4477dd;color:#ffffff;">Downloads</th> <th style="background-color:#cccccc;"> </th></tr>'; for ($rs=0;$rs<count($GLOBALS["db_values"]);$rs++) { if ($GLOBALS["db_values"][$rs]["country_name"]=='') { $GLOBALS["db_values"][$rs]["country_name"]='unknown'; } if ($GLOBALS["db_values"][$rs]["country_name"]=='N/A') { $GLOBALS["db_values"][$rs]["country_name"]='unknown'; } print '<tr><td>'; // select a flag $ccode = strtolower($GLOBALS["db_values"][$rs]["country_code"]); $c_flag = 'flags18x14/' . $ccode . '.png'; if (file_exists($c_flag)) { print '<img src="'. $c_flag . '" width="18" height="14" alt="'. $ccode . '">'; } else { print '<img src="flags18x14/unknown.png" width="18" height="14" alt="' . $ccode . '">'; }; print '</td><td style="font-size:small;">' . $GLOBALS["db_values"][$rs]["country_name"]. '</td><td align="right" style="font-size:small;">'. $GLOBALS["db_values"][$rs]["country_abstracts"]. '</td><td align="right" style="font-size:small;">' . $GLOBALS["db_values"][$rs]["country_downloads"]. '</td>'; $cur_count = $GLOBALS["db_values"][$rs]["country_abstracts"]; $col_width = (int) ($cur_count/$max_count * $max_width); $col_width = max($col_width,1); $col_width .= "px"; print '<td align="left"><img src="bars/hh.png" alt="views" height="9" width="'. $col_width . '"><br />'; $cur_count = $GLOBALS["db_values"][$rs]["country_downloads"]; $col_width = (int) ($cur_count/$max_count * $max_width); $col_width = max($col_width,1); $col_width .= "px"; print '<img src="bars/hp.png" alt="views" height="9" width="'. $col_width . '"></td></tr>'; } } // of else print "</table>\n"; ?>
<?php require("inc.html.navbar_global.es.php"); ?> <h3>Abstract views and document downloads by country (derived from IP address of query)</h3> <p><strong>Note:</strong> The country of origin is determined by looking up the source IP address in the <a href="http://www.maxmind.com/app/geoip_country">GeoLite Free Country</a> database provided by MaxMind LLC. Due to the ever-changing nature of the Internet, this database can never be 100% complete or accurate, so it is possible that a small number of downloads may be reported as being from the wrong country.</p> <?php $max_width=500; if (! isset($GLOBALS["db_values"]["0"]["country_downloads"])) { print "<table>\n"; print '<tr><td align="left" width="200" style="color:#ff0000;"><b>No statistics available.</b></td></tr>'; print "\n"; } else { // Compute the longest bar $max_count = $GLOBALS["db_values"]["0"]["country_downloads"]; for ($rs=0; $rs<count($GLOBALS["db_values"]); $rs++) { if ($GLOBALS["db_values"][$rs]["country_abstracts"] > $max_count) { $max_count = $GLOBALS["db_values"][$rs]["country_abstracts"]; } } print "<table>\n"; print '<tr><th colspan="2" align="left" style="background-color:#cccccc;">Country</th> <th style="background-color:#66ddee;">Abstracts</th> <th style="background-color:#4477dd;color:#ffffff;">Downloads</th> <th style="background-color:#cccccc;"> </th></tr>'; for ($rs=0;$rs<count($GLOBALS["db_values"]);$rs++) { if ($GLOBALS["db_values"][$rs]["country_name"]=='') { $GLOBALS["db_values"][$rs]["country_name"]='unknown'; } if ($GLOBALS["db_values"][$rs]["country_name"]=='N/A') { $GLOBALS["db_values"][$rs]["country_name"]='unknown'; } print '<tr><td>'; // select a flag $ccode = strtolower($GLOBALS["db_values"][$rs]["country_code"]); $c_flag = 'flags18x14/' . $ccode . '.png'; if (file_exists($c_flag)) { print '<img src="'. $c_flag . '" width="18" height="14" alt="'. $ccode . '">'; } else { print '<img src="flags18x14/unknown.png" width="18" height="14" alt="' . $ccode . '">'; }; print '</td><td style="font-size:small;">' . $GLOBALS["db_values"][$rs]["country_name"]. '</td><td align="right" style="font-size:small;">'. $GLOBALS["db_values"][$rs]["country_abstracts"]. '</td><td align="right" style="font-size:small;">' . $GLOBALS["db_values"][$rs]["country_downloads"]. '</td>'; $cur_count = $GLOBALS["db_values"][$rs]["country_abstracts"]; $col_width = (int) ($cur_count/$max_count * $max_width); $col_width = max($col_width,1); $col_width .= "px"; print '<td align="left"><img src="bars/hh.png" alt="views" height="9" width="'. $col_width . '"><br />'; $cur_count = $GLOBALS["db_values"][$rs]["country_downloads"]; $col_width = (int) ($cur_count/$max_count * $max_width); $col_width = max($col_width,1); $col_width .= "px"; print '<img src="bars/hp.png" alt="views" height="9" width="'. $col_width . '"></td></tr>'; } } // of else print "</table>\n"; ?>
Show line notes below