Skip to content

Commit

Permalink
Preparing the release of Headstart 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Kraker committed Apr 29, 2016
1 parent e0399b7 commit 4975ec6
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 7 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

var myHeadstart = new Headstart(
"http://localhost/", //host
"headstart/", //path
"headstart3/", //path
"visualization", //append to tag
[{
title: "edu1",
Expand Down Expand Up @@ -48,7 +48,7 @@
use_area_uri: false,
base_unit: "readers",
force_areas: false,
url_prefix: "http://mendeley.com/catalog/"
url_prefix: "http://mendeley.com/catalog/"
} //options
)
})
Expand Down
10 changes: 7 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="vis/lib/jquery-1.8.1.min.js">
</script>
<?php include ("C://Users/pkraker/xampp/htdocs/OKM/standard_head.php"); ?>
<script type="text/javascript" src="vis/vis.js"></script>
</head>

<body style="margin:0px; padding:0px">

<?php include ("C://Users/pkraker/xampp/htdocs/OKM/header.php"); ?>

<div id="visualization"></div>
<script>

Expand All @@ -16,7 +18,7 @@

var myHeadstart = new Headstart(
"http://localhost/" //host
, "headstart2/" //path
, "headstart3/" //path
, "visualization" //append to tag
, [{
title: "dna"
Expand All @@ -42,5 +44,7 @@
)
</script>

<div style="margin-top:20px">Built with <a href="http://github.com/pkraker/Headstart" target="_blank">Headstart</a> and <a href="http://github.com/ropensci/rplos" target="_blank">rplos</a>. All content retrieved from <a href="https://www.plos.org/publications/journals/" target="_blank">Public Library of Science Journals</a> under <a href="http://journals.plos.org/plosone/s/content-license" target="_blank">CC-BY</a>.
</div>
</body>
</html>
80 changes: 80 additions & 0 deletions search_options.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,83 @@
var options = {
dropdowns: [
{id: "time_range", multiple: false, name: "Time Range", type: "dropdown"
, fields: [
{id: "any-time", text: "Any time"}
, {id: "last-month", text: "Last month"}
, {id: "last-year", text: "Last year"}
, {id: "user-defined", text: "Custom range", class: "user-defined",
inputs: [
{id: "from", label: "From: ", class: "time_input"}
, {id: "to", label: "To: ", class: "time_input"}
]}
]},
{id: "article_types", multiple: true, name: "Article types", type: "dropdown"
, fields: [
{id: "Research Article", text: "Research Article", selected: true}
, {id: "Review", text: "Review", selected: true}
, {id: "Best Practice", text: "Best Practice", selected: true}
, {id: "Book Review", text: "Book Review", selected: true}
, {id: "Book Review/Science in the Media", text: "Book Review/Science in the Media", selected: true}
, {id: "Case Report", text: "Case Report", selected: true}
, {id: "Collection Review", text: "Collection Review", selected: true}
, {id: "Community Page", text: "Community Page", selected: true}
, {id: "Correction", text: "Correction", selected: false}
, {id: "Correspondence", text: "Correspondence", selected: true}
, {id: "Correspondence and Other Communications", text: "Correspondence and Other Communications", selected: true}
, {id: "Deep Reads", text: "Deep Reads", selected: true}
, {id: "Editorial", text: "Editorial", selected: true}
, {id: "Education", text: "Education", selected: true}
, {id: "Essay", text: "Essay", selected: true}
, {id: "Expert Commentary", text: "Expert Commentary", selected: true}
, {id: "Expression of Concern", text: "Expression of Concern", selected: true}
, {id: "Feature", text: "Feature", selected: true}
, {id: "Formal Comment", text: "Formal Comment", selected: true}
, {id: "From Innovation to Application", text: "From Innovation to Application", selected: true}
, {id: "Guidelines and Guidance", text: "Guidelines and Guidance", selected: true}
, {id: "Health in Action", text: "Health in Action", selected: true}
, {id: "Historical and Philosophical Perspectives", text: "Historical and Philosophical Perspectives", selected: true}
, {id: "Historical Profiles and Perspectives", text: "Historical Profiles and Perspectives", selected: true}
, {id: "Interview", text: "Interview", selected: true}
, {id: "Journal Club", text: "Journal Club", selected: true}
, {id: "Learning Forum ", text: "Learning Forum ", selected: true}
, {id: "Message from ISCB", text: "Message from ISCB", selected: true}
, {id: "Neglected Diseases", text: "Neglected Diseases", selected: true}
, {id: "Obituary", text: "Obituary", selected: true}
, {id: "Opinion", text: "Opinion", selected: true}
, {id: "Overview", text: "Overview", selected: true}
, {id: "Pearls", text: "Pearls", selected: true}
, {id: "Perspective", text: "Perspective", selected: true}
, {id: "Photo Quiz", text: "Photo Quiz", selected: false}
, {id: "Policy Forum", text: "Policy Forum", selected: true}
, {id: "Policy Platform", text: "Policy Platform", selected: true}
, {id: "Primer", text: "Primer", selected: true}
, {id: "Quiz", text: "Quiz", selected: false}
, {id: "Research in Translation", text: "Research in Translation", selected: true}
, {id: "Research Matters", text: "Research Matters", selected: true}
, {id: "Retraction", text: "Retraction", selected: false}
, {id: "Special Report", text: "Special Report", selected: true}
, {id: "Student Forum", text: "Student Forum", selected: true}
, {id: "Symposium", text: "Symposium", selected: true}
, {id: "Synopsis", text: "Synopsis", selected: false}
, {id: "The PLoS Medicine Debate", text: "The PLoS Medicine Debate", selected: true}
, {id: "Topic Page", text: "Topic Page", selected: true}
, {id: "Unsolved Mystery", text: "Unsolved Mystery", selected: true}
, {id: "Viewpoints ", text: "Viewpoints ", selected: true}

]},
, {id: "journals", multiple: true, name: "Journals", type: "dropdown"
, fields: [
{id: "PLoSONE", text: "PLOS ONE", selected:true}
, {id: "PLoSGenetics", text: "PLOS Genetics", selected:true}
, {id: "PLoSPathogens", text: "PLOS Pathogens", selected:true}
, {id: "PLoSCompBiol", text: "PLOS Computational Biology", selected:true}
, {id: "PLoSNTD", text: "PLOS Neglected Tropical Diseases", selected:true}
, {id: "PLoSBiology", text: "PLOS Biology", selected:true}
, {id: "PLoSMedicine", text: "PLOS Medicine", selected:true}
, {id: "PLoSClinicalTrials", text: "PLOS Hub for Clinical Trials", selected:true}
]}
]}

var SearchOptions = {
user_defined_date: false,
init: function (tag, data) {
Expand Down
4 changes: 2 additions & 2 deletions server/preprocessing/conf/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
preprocessing_dir = "/"
images_path = "/"
host = "localhost/"
vis_path = "headstart2/"
services_path = "headstart2/server/services/"
vis_path = "headstart3/"
services_path = "headstart3/server/services/"

[output]
output_dir = "output/"
Expand Down

0 comments on commit 4975ec6

Please sign in to comment.