-
Notifications
You must be signed in to change notification settings - Fork 0
/
geocat.html
97 lines (92 loc) · 5.53 KB
/
geocat.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
<!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="https://bootswatch.com/4/simplex/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="js/ws.js"></script>
<script src="js/pv.js"></script>
</head>
<body>
<script>
if (typeof pv == '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 Keywords</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 () {
pv.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-success mb-3">
<h5 class="card-header">EXAMPLE: metadata catalogue search <span id="lang"></span></h5>
<div id="searchCard" class="card-body">
<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="pageContent" class="col-lg-12">
<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-success 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://www.geocat.ch/geonetwork/srv/eng/csw">geocat.ch CSW catalogue web service</a>. For the search logic is used the <a href="https://www.eionet.europa.eu/gemet/en/exports/rdf/latest">GEMET thesaurus</a> hosted at the Geological Survey of Austria (<a href="http://resource.geolba.ac.at/PoolParty/sparql/keywords">Sparql endpoint</a>).
<hr>
To perform a semantic search via keywords - select a keyword promoted in the dropdown list.<br>
The search passes through following steps (relevance criteria):
<ol style="padding-left: 1rem;">
<li>exact matches in keywords</li>
<li>full text matches in abstracts texts</li>
<li>matches of keywords within a semantic distance of 1 (broader, narrower and related)</li>
<li>matches of all narrower keywords</li>
<li>full text matches of all narrower keywords in abstracts texts</li>
</ol>
If a term typed in and checked with Enter or Go! button - a full text search (language dependent!) is carried out.
<hr>
For test purposes the number of results is cropped to a maximum of 3 each. In practice a search would stop if a total number of about 20 results is managed
<hr>The language of the keywords offered to search is choosen by the browser language.
</small>
</p>
</div>
</div>
</div>
</div>
<!-- /.row -->
</div>
</body>
</html>