forked from davtalab/Ocean_Observation_FacetView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·147 lines (131 loc) · 4.95 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>FacetView - Ocean Obsservation Database</title>
<!-- callouts -->
<link rel="stylesheet" href="callouts.css">
<!--<script type="text/javascript" src="vendor/jquery/1.7.1/jquery-1.7.1.min.js"></script>-->
<script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.light.min.css">
<script type="text/javascript" src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="vendor/linkify/1.0/jquery.linkify-1.0-min.js"></script>
<link rel="stylesheet" href="vendor/jquery-ui-1.8.18.custom/jquery-ui-1.8.18.custom.css">
<script type="text/javascript" src="vendor/jquery-ui-1.8.18.custom/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript" src="vendor/jquery/1.7.1/jquery.js"></script>
<script type="text/javascript" src="ocean.jquery.facetview.js"></script>
<link rel="stylesheet" href="css/facetview.css">
<link rel="stylesheet" href="css/style.css">
<script type="text/javascript">
jQuery(document).ready(function ($) {
$('.facet-view-simple').facetview({
search_url: "http://jplmemex-sce4.dyndns.org/solr/crawldb/query",
search_index: "solr",
linkify: false,
default_operator: "AND",
display_images: false,
searchwrap_start: "<div id='facetview_results'>",
searchwrap_end: "</div>",
resultwrap_start: "<div class='bs-callout bs-callout-primary'>",
resultwrap_end: "</div>",
highlight_fields: ["text"],
highlight_pre: "<mark><strong>",
highlight_post: "</mark></strong>",
initialsearch: true,
search_sortby: [
{'display':'Date added','field':'tstamp'},
{'display':'Title','field':'title'},
{'display':'Host','field':'host'},
{'display':'Segment','field':'segment'}
],
result_display: [
[
{
pre: "<a target='_blank' href='",
field: "url",
post: "'>"
},
{
pre: "<h4>",
field: "title",
alternative_field: "id",
post: "</h4>"
},
{
pre: "</a>",
post: ""
},
{
pre: "<p>Date Added: ",
field: "tstamp",
post: "</p>"
},
]
],
facets: [
{
field: "tstamp",
order: "term",
display: "Date Added",
},
{
field: "location_name_s",
order: "term",
display: "Location Name",
size: 2,
mincount: 1
},
{
field: "title",
display: "Topic",
order: "count",
size: 2,
mincount: 1
},
{
field: "id",
display: "ID",
order: "count",
size: 2,
mincount: 1
},
{
field: "url",
display: "URL",
order: "count",
size: 2,
mincount: 1
}
],
paging: {
from: 0,
size: 10
}
});
});
</script>
</head>
<body>
<div style="background-color:#7bceeb;">
<table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top" align="center" background="ocean.jpg" style="background-repeat:repeat; background-size:cover;">
<div class="container" style="width:80%">
<div class="content">
<div class="page-header">
<h3>FacetView Search for Ocean Observation</h3>
</div>
<div class="facet-view-simple"></div>
</div>
</div>
</td>
</tr>
</table>
<!--[if gte mso 9]>
</v:textbox>
</v:rect>
<![endif]-->
</div>
</body>
</html>