142 lines
6.1 KiB
HTML
142 lines
6.1 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<!-- Required meta tags -->
|
||
|
<meta charset="utf-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||
|
|
||
|
<!-- Bootstrap CSS -->
|
||
|
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
|
||
|
<link rel="stylesheet" href="../static/css/style.css">
|
||
|
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
|
||
|
<link rel="stylesheet" href="../static/bower_components/jqcloud2/dist/jqcloud.min.css">
|
||
|
|
||
|
<link rel="stylesheet" href="../static/bower_components/choices.js/assets/styles/css/choices.min.css">
|
||
|
<link rel="stylesheet" href="../static/bower_components/bootstrap-multiselect/dist/css/bootstrap-multiselect.css"
|
||
|
type="text/css"/>
|
||
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css"
|
||
|
integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
|
||
|
|
||
|
|
||
|
<title>Search ...</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="container-fluid">
|
||
|
|
||
|
<div class="row head-area">
|
||
|
<div class="col-sm-2">
|
||
|
<div class="row logo-section">
|
||
|
<a href="/"><img src="/static/img/logo.png" class="logo"></a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-sm-10">
|
||
|
<div class="input-group mb-3 search-section">
|
||
|
<input type="text" class="form-control" placeholder=""
|
||
|
value="{{ keyword }}"
|
||
|
disabled
|
||
|
aria-describedby="basic-addon2" id="search-input2">
|
||
|
<script>
|
||
|
|
||
|
</script>
|
||
|
<div class="input-group-append">
|
||
|
<button class="btn btn-success btn-search" type="button">Search</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row search-content">
|
||
|
<div class="col-sm-4 col-md-2 col-lg-2 config-area">
|
||
|
<input type="hidden" value="{{ category_filter }}" id="search-filter">
|
||
|
<div class="row">
|
||
|
<div class="col-auto my-1 cluster_selection_area">
|
||
|
<label class="mr-sm-2 config-label" for="clusterSize">Clusters</label>
|
||
|
<select class="custom-select mr-sm-2" id="clusterSize" disabled>
|
||
|
<option selected>Choose the number of clusters...</option>
|
||
|
<option value="2">2</option>
|
||
|
<option value="3" selected>3</option>
|
||
|
<option value="4">4</option>
|
||
|
<option value="5">5</option>
|
||
|
<option value="6">6</option>
|
||
|
<option value="7">7</option>
|
||
|
<option value="8">8</option>
|
||
|
<option value="9">9</option>
|
||
|
<option value="10">10</option>
|
||
|
<option value="11">11</option>
|
||
|
<option value="12">12</option>
|
||
|
<option value="13">13</option>
|
||
|
<option value="14">14</option>
|
||
|
<option value="15">15</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row" id="category-agg" style="display: none">
|
||
|
<div class="col-auto my-1 category_selection_area" id="category-selection">
|
||
|
<label class="mr-sm-2 config-label" for="category">Category</label>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-sm-8 col-md-10">
|
||
|
<div class="loading" id="loader">
|
||
|
<img alt="self-Logo" src="../static/img/loading.svg" width="50px">
|
||
|
</div>
|
||
|
<div id="result_area" style="display: none"></div>
|
||
|
<div id="show_content">
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th scope="col">#</th>
|
||
|
<th scope="col">Title</th>
|
||
|
<th scope="col">Author</th>
|
||
|
<th scope="col">Discipline</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% for item in data %}
|
||
|
<tr>
|
||
|
<th scope="row"><a href="/doc?id={{ item["_id"] }}">{{ item["_id"] }}</a></th>
|
||
|
<td>{{ item["_source"].title }}</td>
|
||
|
<td>{{ item["_source"].author }}</td>
|
||
|
<td>{{ item["_source"].discipline }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<form type="GET" id="search-controller">
|
||
|
<input type="hidden" name="delta_cloud" id="delta_cloud" value="{{ delta_cloud }}">
|
||
|
<input type="hidden" id="freq_keys"/>
|
||
|
<input type="hidden" value="{{ keyword }}" name="query" id="query_values"
|
||
|
data-depth={{ depth }} data-filter={{ cluster }} />
|
||
|
<input type="hidden" value="{{ depth }}" name="depth"/>
|
||
|
<input type="hidden" value="{{ cluster }}" name="cluster"/>
|
||
|
</form>
|
||
|
<!-- Optional JavaScript -->
|
||
|
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||
|
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
|
||
|
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
|
||
|
crossorigin="anonymous"></script>
|
||
|
<script src="../static/js/bootstrap.min.js"></script>
|
||
|
<script src="../static/bower_components/jqcloud2/dist/jqcloud.min.js"></script>
|
||
|
<script src="../static/bower_components/choices.js/assets/scripts/dist/choices.min.js"></script>
|
||
|
<script type="text/javascript"
|
||
|
src="../static/bower_components/bootstrap-multiselect/dist/js/bootstrap-multiselect.js"></script>
|
||
|
<script src="static/plugins/plotly/plotly-latest.min.js"></script>
|
||
|
<script src="../static/js/appv2.js"></script>
|
||
|
<script>
|
||
|
jQuery(document).ready(function () {
|
||
|
|
||
|
new Choices('#search-input2').disable();
|
||
|
app.run();
|
||
|
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|