-
Notifications
You must be signed in to change notification settings - Fork 1
/
pid.html
217 lines (203 loc) · 8.36 KB
/
pid.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html>
<!-- ---------------------------------------------- -->
<!-- Document head -->
<!-- ---------------------------------------------- -->
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<link rel="shortcut icon" href="media/img/favicon.ico" type="image/x-icon" />
<title>ES-DOC - Errata - PID Lookup</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- ---------------------------------------------- -->
<!-- CSS: -->
<!-- ---------------------------------------------- -->
<link href="ext/bootstrap-3.3.6/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="media/css/shared/defaults.css" media="screen" rel="stylesheet" type="text/css" />
<link href="media/css/shared/cv.css" media="screen" rel="stylesheet" type="text/css" />
<link href="media/css/shared/header.css" media="screen" rel="stylesheet" type="text/css" />
<link href="media/css/pid/filter.css" media="screen" rel="stylesheet" type="text/css" />
<link href="media/css/pid/grid.css" media="screen" rel="stylesheet" type="text/css" />
<!-- ---------------------------------------------- -->
<!-- JS: 3rd party libraries -->
<!-- ---------------------------------------------- -->
<script src="ext/jquery-2.2.3.min.js"></script>
<script src="ext/underscore-1.9.0.min.js"></script>
<script src="ext/backbone-1.4.1.min.js"></script>
<script src="ext/bootstrap-3.3.6/js/bootstrap.min.js"></script>
<script src="ext/js.cookie-2.2.0.js"></script>
<script src="ext/moment-2.29.4.min.js"></script>
<script src="ext/numeral-1.5.3.min.js"></script>
<!-- ---------------------------------------------- -->
<!-- JS: Application script -->
<!-- ---------------------------------------------- -->
<script src="media/js/pid/index.js" type="module"></script>
<script src="dist/pid.js" defer nomodule></script>
</head>
<!-- ---------------------------------------------- -->
<!-- Document body -->
<!-- ---------------------------------------------- -->
<body>
<!-- BEGIN: Page header -->
<script type="underscore/template" id="template-header">
<header class="main">
<!-- Logo -->
<img src="media/img/logo.png"
alt="Earth System Documentation"
title="Earth System Documentation"
class="pull-left esdoc-logo" />
<h1 class="pull-right">
<!-- Title -->
<small>
<b><%= APP.LONG_NAME %> - PID</b>
</small>
<strong class="h6"> v<%= APP.VERSION %></strong>
<!-- Menu - Support -->
<div class="btn-group">
<button type="button" class="btn btn-success">Support</button>
<button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a class="esdoc-support" href="#">Email</a></li>
<li><a class="esdoc-docs" href="#">Documentation</a></li>
</ul>
</div>
</h1>
</header>
</script>
<!-- END: page header -->
<!-- BEGIN: filter panel -->
<script type="underscore/template" id="template-filter">
<div class="container-fluid bg-primary filter">
<div class="row">
<div class="col-md-12">
<label>
Get version history of a (list of) file(s) or dataset(s):
</label>
</div>
</div>
<div class="row">
<div class="col-md-7">
<input id="pid-data" type="text" class="form-control"
placeholder="Enter PID as <prefix>/<uuid>" />
</div>
<div class="col-md-5 file-selector">
<label class="pull-left or">
OR
</label>
<label class="btn btn-default btn-file col-md-7">
<strong>Choose File</strong>
<input id="file-selector" type="file" style="display: none;">
</label>
<button id="searchButton" class="btn btn-success col-md-4 pull-right" type="submit">
Search
</button>
</div>
</div>
</div>
</script>
<!-- END: filter panel -->
<!-- BEGIN: grid -->
<script type="underscore/template" id="template-grid">
<% _.each(STATE.errata, function(data) { %>
<table class='container-fluid table table-hover table-bordered table-condensed table-striped monitoring-table '>
<thead>
<tr class="bg-primary">
<th title='Handle' colspan="3">
<%= data.handle %>
<% if (data.incomplete_search===1) { %>
<span title="File search is incomplete due to filename change or file deletion" class="label label-danger">Search incomplete</span>
<% } %>
</th>
</tr>
<tr class="column-headers">
<th title='Index' class="text-center">
#
</th>
<th title='Artefact'>
Dataset / File
</th>
<th title='Issue' class="text-center col-md-1">
Issue
</th>
</tr>
</thead>
<tbody>
<% if (data.issues) { %>
<% _.each(data.issues, function(issue, idx) { %>
<tr id="<%= issue.uid %>" >
<td class="text-center issue-idx" title="issue number">
<%= idx + 1 %>
</td>
<td title="artefact" class="issue-artefact">
<% if (issue.sortOrdinal === 0) { %>
<strong>
<%= issue.artefact %>
</strong>
<span title='This is the query input version' class="label label-info">Queried Version</span>
<% } else { %>
<%= issue.artefact %>
<% } %>
<% if (issue.unchanged_file === 1) {%>
<span title="File hasn't changed across datasets"class="label label-warning">Duplicate</span>
<% } %>
<% if (issue.is_first === 1){%>
<span title='First version of dataset or appearance of file under this filename'class="label label-primary">First</span>
<% } else if (issue.is_latest === 1) {%>
<span title="Latest version of dataset or appearance of file under this filename"class="label label-primary">Latest</span>
<% } %>
</td>
<td class="text-center issue-link">
<% if (issue.uid === "") { %>
<strong>
--
</strong>
<% } else if (issue.uid === null) {%>
<span class="glyphicon glyphicon-ok" title="No issue reported."/>
<% } else if(issue.uid !== null) { %>
<!--<% var list_of_uids = issue.uid.split(";"); %>-->
<% _.each(issue.uid.split(";"), function(issue){ %>
<span id="issueButton" class="glyphicon glyphicon-list-alt" title="<%= issue %>"/>
<% }); %>
<% } %>
</td>
</tr>
<% }); %>
<% } else { %>
<tr class="null-search">
<td colspan="3">
<strong>PID LOOKUP RETURNED NO RESULTS</strong>
</td>
</tr>
<% } %>
</tbody>
</table>
<% }); %>
</script>
<!-- END: grid -->
<!-- BEGIN: feedback -->
<div id="feedbackContainer" class="modal fade feedback-container">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">
<span class="feedback-title"></span>
<small class="feedback-version"></small>
</h4>
</div>
<div class="modal-body">
<p><b id="feedbackText"></b></p>
<div class="progress">
<div class="progress-bar progress-bar-info progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%;">
<span class="sr-only">100% Complete</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- END: feedback -->
</body>
</html>