-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
185 lines (175 loc) · 10.3 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>keyword search</title>
<link rel="shortcut icon" href="">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/site.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/3.3.0/fuse.min.js" charset="utf-8"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.bundle.min.js"></script>
<script src="https://kit.fontawesome.com/b5954a49f0.js"></script>
<link rel="stylesheet" href="css/bootstrap-multiselect.css" type="text/css">
<script type="text/javascript" src="js/bootstrap-multiselect.js"></script>
<script src="js/ws.js"></script>
<script src="js/micka.js"></script>
<style>
.dropdown-menu {
min-width: 250px !important;
}
</style>
</head>
<body>
<div></div>
<script>
if (typeof micka == 'undefined' || window.navigator.userAgent.indexOf('MSIE ') > 0 || window.navigator.userAgent.indexOf('Trident/') > 0) {
document.execCommand('Stop');
document.body = document.createElement("body");
document.body.innerHTML = '<div class="alert alert-dismissible alert-warning">' +
'<button type="button" class="close" data-dismiss="alert">×</button>' +
'<h4 class="alert-heading">GeoERA Semantic Search</h4>' +
'<p class="mb-0">[Deutsch]<br>' +
'Die Website wurde für die Browser Firefox, Chrome, Safari oder MS Edge optimiert bzw. modernisiert und unterstützt nicht mehr die Darstellung im MS Internet Explorer 11 oder älter.' +
'<br><br>' +
'[English]<br>This website is optimized for browsers Firefox, Chrome, Safari or MS Edge. - MS Internet Explorer 11 or older is not supported any more.' +
'</p></div>';
} else {
$(document).ready(function() {
micka.init();
});
}
</script>
<!-- Page Content -->
<div class="container">
<div class="row">
<div class="col-lg-8">
<!-- Search Widget -->
<div id="search_widget" class="card my-4 text-white bg-info mb-3">
<h5 class="card-header">
<strong>GeoERA dataset search (test)</strong>
<span style="float: right;">🇬🇧 🇸🇮 🇪🇸 🇦🇹 🇩🇪 🇫🇮 🇵🇹 🇨🇿 🇮🇹 🇭🇺</span>
</h5>
<div id="searchCard" class="card-body" style="margin-top: -10px;">
<div class="text-white">
<span><select id="searchCategories" multiple="multiple" class=""></select></span>
</div>
<div id="searchGroup" class="input-group">
<input id="searchInput" type="text" class="form-control" placeholder="Search for... (e.g. extraction)" disabled="">
<div style="position: absolute; top: 39px;">
<table id="dropdown" class="table table-hover"></table>
</div>
<span class="input-group-btn"><button id="searchBtn" class="btn btn-secondary" type="button">Go!</button></span>
</div>
</div>
</div>
<div id="spinner" style="visibility:collapse;">
<div class="spinner-grow spinner-grow-sm text-primary" role="status"></div>
<span id="qCount">1</span>
</div>
<div id="pageContent" class="col-lg-12">
<div id="searchInfo"></div>
<div id="1"></div>
<div id="2"></div>
<div id="3"></div>
<div id="4"></div>
<div id="5"></div>
</div>
</div>
<div class="col-md-4">
<div class="card my-4 border-info mb-3" style="max-width: 20rem; line-height: 100%;">
<div class="card-header">settings</div>
<div class="card-body">
<small>
<div>select language
<select id="selectLang" class="custom-select" style="max-width: 150px; font-size: 100%;"></select>
<span id="transRate">10</span>%
</div>
<hr>
<div style="margin-bottom: 10px;">
Try to get
<input id="maxResults" type="text" value="50" class="" style="max-width: 40px; text-align: center;"> results
</div>
<hr>
<div style="float: left;">
Sparql endpoint<br><br>
<form class="form-group" id="selEndpoint">
<div class="form-check">
<label class="form-check-label">
<input type="radio" class="form-check-input" name="optionsRadios" id="optionsRadios1" value="gba" checked="">
GBA v2.1
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input type="radio" class="form-check-input" name="optionsRadios" id="optionsRadios2" value="brgm">
BRGM v2
</label>
</div>
</form>
</div>
<div style="float: left; margin-left: 50px;">
<fieldset class="form-group" id="restrictKeyword">
favor keywords from ..<br><br>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" value="" id="inspire">
INSPIRE codeslists
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" value="" id="gemet">
GEMET terms
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" value="" id="cgi">
CGI codeslists
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" value="" id="gba">
GBA concepts
</label>
</div>
</fieldset>
</div>
</small>
</div>
</div>
<div class="card my-4 border-info mb-3" style="max-width: 20rem; line-height: 100%;">
<div class="card-header">instruction</div>
<div class="card-body">
<p class="card-text">
<small>
This example is built to search the <a href="https://egdi.geology.cz/?ak=search">EGDI (Micka) CSW catalogue web service</a>. For the search logic is used the <strong>GeoERA Keyword Thesaurus v2.0</strong> hosted at the Geological Survey of Austria (<a href="http://resource.geolba.ac.at/PoolParty/sparql/keyword">Sparql endpoint</a>).
<hr />
<strong>Relevance</strong> (score) for sorting the results list is calculated as follows:<br>
<ul>
<li>1 pt for each "any text" matching</li>
<li>10 pts for the search term found in keyword-metadata / 3 pts for each of the narrower or related terms / 1 pt for each of broader terms</li>
</ul>
<strong>additionally:</strong>
<ul>
<li>10 pts for the search term in title / 7 pts in abstract</li>
<li>4 pts for any related terms in title / 1 pt in abstract</li>
<li>1 pt for bbox fitting to language selected</li>
</ul>
A total sum of points more than 12 pts is seen as a 100% matching result.<br>
<hr>
Note:<br>Keywords are searched against catalogue texts in English language. But the language of the keywords offered to search is <strong>choosen by the browser language</strong>. About 30% terms are available in 22 non-english languages.
</small>
</p>
</div>
</div>
</div>
</div>
<!-- /.row -->
</div>
</body></html>