forked from ChristopherWelte/DataverseSandbox
-
Notifications
You must be signed in to change notification settings - Fork 5
/
homepage-OpenDataLab
127 lines (111 loc) · 6.62 KB
/
homepage-OpenDataLab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<div class="row leadContent">
<div class="col-md-8 well customWell">
<h2>Add your dataset to LibraData</h2>
<p>LibraData is a place for UVA researchers to share data publicly, and is part of the Libra Scholarly Repository suite of services which includes works of UVA scholarship such as articles, books, theses, and data.</p>
<p><b>Step One:</b> Start with the <a href="http://www.library.virginia.edu/libra/datasets/libra-data-deposit-checklist/" target="_blank">LibraData Checklist</a></p>
<div class="form-group">
<p><b>Step Two:</b> Select the dataverse in which you want to add a dataset.You can create a dataset at the main level of
LibraData or in a sub-dataverse.</p>
<select>
<option value="1" selected>Select a dataverse...</option>
<option value="261">University of Virginia Law School</option>
<option value="87">Curry School of Education</option>
<option value="154">School of Engineering and Applied Science</option>
<option value="1021">McIntire School of Commerce</option>
<option value="79">Department of Astronomy</option>
<option value="194">Department of Biology</option>
<option value="514">Cardiovascular Research Center</option>
<option value="1434">Department of Chemistry</option>
<option value="1157">Department of Computer Science</option>
<option value="221">Cultural Heritage</option>
<option value="1559">Data Science Institute</option>
<option value="65">Department of Economics</option>
<option value="1023">Department of Electrical and Computer Engineering</option>
<option value="27">Department of Environmental Sciences</option>
<option value="107">Center for Politics</option>
<option value="108">Department of Politics</option>
<option value="1">LibraData - main</option>
</select>
</div>
<div class="button-block">
<b>Step Three:</b>
<button type="button" class="btn btn-primary btn-access" onclick="PF('addData_popup').show()">Add Data</button>
</div>
</div>
<div class="col-md-4">
<h3>More Information:</h3>
<ul>
<li class="list-unstyled"><span class="glyphicon glyphicon-chevron-right"></span>
<a href="http://www.library.virginia.edu/libra/datasets/libradata-faq/">FAQs about LibraData</a> </li>
<li class="list-unstyled"><span class="glyphicon glyphicon-chevron-right"></span>
<a href="http://uvalib.github.io/dataverse-docs/user/data-policies.html">Policies & Community Sharing Norms</a> </li>
<li class="list-unstyled"><span class="glyphicon glyphicon-chevron-right"></span>
<a href="mailto:libra@virginia.edu">Need help? Send us an email!</a> <span class="glyphicon glyphicon-envelope" aria-label="Send email"></span> </li>
</ul>
</div>
</div>
<!-- <div class="row uvaSearch"> -->
<div class="row uvaSearch">
<h3>Search Datasets</h3>
<P>Search below for datasets in LibraData and all of UVa Dataverse</P>
<div class="col-md-6 searchContainer text-center">
<div>
<div class="input-group">
<input type="text" class="form-control" placeholder="Search ALL datasets..." />
<span class="input-group-btn">
<button class="btn btn-primary" type="button"> <span class="glyphicon glyphicon-search" aria-hidden="true"></span> Search</button>
</span>
</div> <!-- class="input-group" -->
</div>
</div>
</div>
<div class="row featuredDataverses">
<div class="row">
<div class="col-md-6">
<h3>Browse Selected Open Dataverses</h3>
<a href="/dataverse/uva-law" class="btn btn-block btn-lg btn-default" role="button">University of Virginia Law School</a>
<a href="/dataverse/curry" class="btn btn-block btn-lg btn-default" role="button">Curry School of Education</a>
<a href="/dataverse/seas" class="btn btn-block btn-lg btn-default" role="button">School of Engineering and Applied Science</a>
<a href="/dataverse/culturalheritage" class="btn btn-block btn-lg btn-default" role="button">Cultural Heritage</a>
<a href="/dataverse/libradata?q=&types=datasets&sort=dateSort&order=desc&page=1" class="btn btn-block btn-lg btn-default" role="button">Browse all LibraData Datasets</a>
</div>
<div class="col-md-6">
<h3>Browse Selected Other Dataverses*</h3>
<a href="/dataverse/opendatalab" class="btn btn-block btn-lg btn-default" role="button">Open Data Lab</a>
<p class="text-danger">*Access to some datasets in these dataverses may require UVa authentication.</p>
</div>
</div>
</div>
<script>
$(document).ready(function() {
// Detect if enter key pressed in search box to trigger submission.
$(".uvaSearch input[type=text]").on("keyup", function(e) {
if (e.keyCode == 13) {
$(".uvaSearch button").trigger("click");
}
});
// For accessibility make sure the button responds to enter and spacebar
$(".uvaSearch button").on("keyup", function(e) {
if ((e.keyCode == 13) || (e.keyCode ==32)) {
$(".uvaSearch button").trigger("click");
}
});
// Configure search button to trigger submission with input box text value.
$(".uvaSearch button").click(function() {
var searchStr = $(".uvaSearch input[type=text]").val();
window.location = '/dataverse/uva?q='+searchStr;
});
// For accessibility make sure the Add Data button responds to enter and spacebar
$(".customWell button").on("keyup", function(e) {
if ((e.keyCode == 13) || (e.keyCode ==32)) {
$(".customWell button").trigger("click");
}
});
// Retrieve the selected data ID and pass as parameter.
// NOTE: There appears to be an existing onclick event handler for the Add Data button that generates an error.
$(".customWell button").click(function() {
var dataverseSelected = $(".customWell select option:selected").val();
window.location = '/dataset.xhtml?ownerId='+dataverseSelected;
});
});
</script>