Skip to content

Commit

Permalink
dumping list of papers now works
Browse files Browse the repository at this point in the history
  • Loading branch information
bomeara committed Apr 15, 2016
1 parent a24981e commit ae72f03
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 93 deletions.
3 changes: 2 additions & 1 deletion R/hello.R → R/main.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ hello <- function (myname = "")

GetAllCitations <- function() {
data(datelife::opentree_chronograms)
return(list(message=names(datelife.cache$trees)))
publications <- paste('<ul>', paste('<li>',names(datelife.cache$trees), '</li>', sep="", collapse=""), '</ul>', sep="")
return(list(message=publications))
}

run <- function(...) {
Expand Down
96 changes: 89 additions & 7 deletions inst/www/citations.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,89 @@
<html>
<link rel="import" href="pagestart.html">
</head> <h2>Sources</h2>
<br />
<p>Here are the most recently added sources of trees to DateLife; the full set is stored in a Mendeley group for easy download of citations</p>
<iframe src="http://www.mendeley.com/groups/2307701/datelife/widget/29/10/" frameborder="0" allowTransparency="true" style="width:600px;height:900px;"></iframe><p style="width:600px"><a href="http://www.mendeley.com/groups/2307701/datelife/" title="DateLife on Mendeley">DateLife</a> is a group in <a href="http://www.mendeley.com/groups/biological-sciences/" title="Biological Sciences on Mendeley">Biological Sciences</a> on <a href="http://www.mendeley.com/" title="Mendeley">Mendeley</a>.</p>
<link rel="import" href="pageend.html">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>DateLife</title>
<meta name="keywords" content="" />
<meta name="description" content="" />

<script src="jquery-1.12.3.min.js"> </script>
<script src="opencpu-0.5.js"> </script>

<link rel="stylesheet" type="text/css" href="default.css" />
<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33370470-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>



<script>
//on page ready:
$(function() {

var req = ocpu.rpc("GetAllCitations", {
}, function(output){
$("#citationinfo").html(output.message);
});


});
</script>


</head>
<body>

<div id="upbg"></div>

<div id="outer">





<div id="headerpic"></div>


<div id="menu">
<!-- HINT: Set the class of any menu link below to "active" to make it appear active -->
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="https://github.com/phylotastic/datelife">Source code</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="http://phylotastic.org">Phylotastic</a></li>
<li><a href="citations.html">Citations</a></li>
</ul>
</div>
<div id="menubottom"></div>

<div id="content">
<div id="normalcontent">
<div class="contentarea">
<h2>Sources</h2>

<div id="citationinfo"></div>


<!-- Normal content area end -->
</div>
</div>
</div>

<div id="footer">
<div class="left">Reuse encouraged</div>
<div class="right">Design by <a href="http://www.nodethirtythree.com/">NodeThirtyThree Design</a></div>
</div>

</div>

</body>
</html>
19 changes: 8 additions & 11 deletions inst/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,14 @@

<div id="menu">
<!-- HINT: Set the class of any menu link below to "active" to make it appear active -->
<ul>
<li><a href="http://datelife.org">Home</a></li>
<li><a href="https://bitbucket.org/bomeara/datelife">Source code</a></li>
<li><a href="http://datelife.org/faq.php">FAQ</a></li>
<li><a href="http://datelife.org/contact.php">Contact</a></li>
<li><a href="http://phylotastic.org">Phylotastic</a></li>
<li><a href="http://datelife.org/submit.php">Submit</a></li>
<li><a href="http://datelife.org/sources.php">Source papers</a></li>
<li><a href="http://datelife.org/api.php">API</a></li>

</ul>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="https://github.com/phylotastic/datelife">Source code</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="http://phylotastic.org">Phylotastic</a></li>
<li><a href="citations.html">Citations</a></li>
</ul>
</div>
<div id="menubottom"></div>

Expand Down
16 changes: 0 additions & 16 deletions inst/www/pageend.html

This file was deleted.

58 changes: 0 additions & 58 deletions inst/www/pagestart.html

This file was deleted.

0 comments on commit ae72f03

Please sign in to comment.