forked from ChristopherWelte/DataverseSandbox
-
Notifications
You must be signed in to change notification settings - Fork 5
/
custom-homepage.html
141 lines (123 loc) · 7.2 KB
/
custom-homepage.html
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<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 collection in which you want to add a dataset. You can create a dataset at the main level of
LibraData or in a sub-collection.</p>
<select>
<option value="1" selected>Select a collection...</option>
<option value="261">University of Virginia Law School</option>
<option value="5710">Biocomplexity Institute & Initiative</option>
<option value="2696">Darden School of Business</option>
<option value="1021">McIntire School of Commerce</option>
<option value="1559">School of Data Science</option>
<option value="87">School of Education and Human Development</option>
<option value="154">School of Engineering and Applied Science</option>
<option value="33191">School of Medicine</option>
<option value="79">Department of Astronomy</option>
<option value="194">Department of Biology</option>
<option value="1434">Department of Chemistry</option>
<option value="1157">Department of Computer Science</option>
<option value="221">Cultural Heritage</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="3419">Department of Materials Science & Engineering</option>
<option value="3420">Laboratory for Astrophysics & Surface Physics</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>
<!-- Alert for Downtime
<div class="alert alert-danger" role="alert" style="
padding-top: 15px;
border-top-width: 1px;
margin-top: 40px;
">
UVa Dataverse repository will be down intermittently from 10AM until 4PM <strong>Tuesday January 19th</strong>.
</div>
-->
</div>
</div>
<!-- <div class="row uvaSearch"> -->
<div class="row uvaSearch">
<h3>Search Datasets</h3>
<P>Search below for datasets in LibraData and in all of UVa Dataverse repository</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 LibraData Sub-Collections</h3>
<a href="/dataverse/culturalheritage" class="btn btn-block btn-lg btn-default" role="button">Cultural Heritage - 3D Data</a>
<a href="/dataverse/uva-law" class="btn btn-block btn-lg btn-default" role="button">University of Virginia Law School</a>
<a href="/dataverse/biocomplexity" class="btn btn-block btn-lg btn-default" role="button"">Biocomplexity Institute & Initiative</a>
<a href="/dataverse/sds" class="btn btn-block btn-lg btn-default" role="button">School of Data Science</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/envisci" class="btn btn-block btn-lg btn-default" role="button">Department of Environmental Sciences</a>
</div>
<div class="col-md-6">
<h3> </h3>
<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>
</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>