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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
|
<!DOCTYPE html>
<html lang="en">
<head>
<title>YaCy '#[clientname]#': Search Page</title>
#%env/templates/metas.template%#
<link rel="stylesheet" type="text/css" media="screen" href="env/highslide.css" />
<script type="text/javascript" src="js/yacysearch.js"></script>
<script type="text/javascript" src="js/highslide/highslide.js"></script>
<script type="text/javascript" src="js/jquery.tagcloud.js"></script>
</head>
<body id="ConfigSearchPage" >
#%env/templates/header.template%#
#%env/templates/submenuDesign.template%#
<h2>Search Result Page Layout Configuration</h2>
<p>
Below is a generic template of the search result page. Mark the check boxes for features you would like to be displayed.
To change colors and styles use the <a href="ConfigAppearance_p.html">Appearance</a> menu for different skins.
Other portal settings can be adjusted in <a href="ConfigPortal_p.html">Generic Search Portal</a> menu.
</p>
<h4>Page Template</h4>
<form action="ConfigSearchPage_p.html" method="post" enctype="multipart/form-data" id="ConfigSearchPageForm" accept-charset="UTF-8">
<input type="hidden" name="transactionToken" value="#[transactionToken]#"/>
<table role="presentation">
<tr>
<td style="border-width: 1px; border-color: grey; border-style: solid; padding: 5px;">
<table style="width:100%" role="presentation">
<tr>
<td style="vertical-align: middle;"><input type="checkbox" name="publicTopmenu" title="Top navigation bar" value="true" #(publicTopmenu)#::checked="checked" #(/publicTopmenu)# /></td>
<td>
<!-- top navigation (imported from env/templates/simpleheader.template) -->
<div class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" id="navbar-brand-cfg" href="#[promoteSearchPageGreeting.homepage]#" style="margin-top:-6px;white-space:nowrap;">
<img id="greeting-icon" class="yacylogo" src="#[promoteSearchPageGreeting.smallImage]#" alt="#[promoteSearchPageGreeting.imageAlt]#" style="height:auto; width:auto; max-width:200px; max-height:32px;vertical-align:middle;float:left;">
<span id="greeting"></span>
</a>
</div>
<div class="navbar-collapse collapse">
<input type="checkbox" name="search.publicTopNavBar.login" title="Enable login link/status" value="true" #(search.publicTopNavBar.login)#::checked="checked" #(/search.publicTopNavBar.login)# />
<ul class="nav navbar-nav">
<li id="header_login">
<a title="Log in to use extended search features" href="#" onclick="document.getElementById('header_login').className='hidden';document.getElementById('header_login_logged').className='navbar-text';return false;">
<span>Log in</span>
<span class="glyphicon glyphicon-log-in"></span>
</a>
</li>
<li id="header_login_logged" title="You are authenticated as userName" class="navbar-text hidden">
<span class="glyphicon glyphicon-user text-info"></span>
<span>userName</span>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li id="header_search-cfg" class="dropdown">
<a href="#" data-toggle="dropdown" class="dropdown-toggle">Search Interfaces<b class="caret"></b></a>
</li>
<li id="header_help-cfg" class="dropdown">
<a href="#" data-toggle="dropdown" class="dropdown-toggle" aria-label="Help" role="button"><span class="glyphicon glyphicon-question-sign"></span></a>
</li>
<li id="header_administration-cfg">
<button class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-cog"></span> Administration »</button>
</li>
</ul>
</div>
</div>
</div>
</td>
</tr>
</table>
<table role="presentation">
<tr>
<td>
<!-- the sidebar navigation -->
<div>
<fieldset>
<table role="presentation">
<tr>
<td><input type="checkbox" aria-label="Protocols" name="search.navigation.protocol" value="true" #(search.navigation.protocol)#::checked="checked" #(/search.navigation.protocol)# /></td>
<td>
<p class="navbutton"></p>
<div class="btn-group">
<span><button class="btn btn-default btn-xs">http</button><button class="btn btn-default btn-xs">https</button><button class="btn btn-default btn-xs"> ftp </button><button class="btn btn-default btn-xs"> smb </button><button class="btn btn-default btn-xs">file</button></span>
</div>
</td>
</tr>
<tr>
<td><input type="checkbox" aria-label="Tag cloud" name="search.navigation.topics" value="true" #(search.navigation.topics)#::checked="checked" #(/search.navigation.topics)# /></td>
<td>
<div style="padding-left:15px; padding-bottom:10px; width: 100%;">
<div id="tagcloud" style="text-align:justify">
<a href="#" target="LayouTest" style="text-decoration: none; font-size: 10px">Tag</a>
<a href="#" target="LayouTest" style="text-decoration: none; font-size: 9px">Topics</a>
<a href="#" target="LayouTest" style="text-decoration: none; font-size: 10px">Cloud</a>
<a href="#" target="LayouTest" style="text-decoration: none; font-size: 8px">Topics</a>
<a href="#" target="LayouTest" style="text-decoration: none; font-size: 11px">Cloud</a>
<a href="#" target="LayouTest" style="text-decoration: none; font-size: 12px">Tag</a>
<a href="#" target="LayouTest" style="text-decoration: none; font-size: 13px">Cloud</a>
<a href="#" target="LayouTest" style="text-decoration: none; font-size: 15px">Topics</a>
<a href="#" target="LayouTest" style="text-decoration: none; font-size: 14px">Tag</a>
<a href="#" target="LayouTest" style="text-decoration: none; font-size: 12px">Cloud</a>
<a href="#" target="LayouTest" style="text-decoration: none; font-size: 8px">Tag</a>
<a href="#" target="LayouTest" style="text-decoration: none; font-size: 10px">Cloud</a>
<a href="#" target="LayouTest" style="text-decoration: none; font-size: 9px">Topics</a>
<a href="#" target="LayouTest" style="text-decoration: none; font-size: 8px">Cloud</a>
<a href="#" target="LayouTest" style="text-decoration: none; font-size: 11px">Tag</a>
</div>
<script type="text/javascript">
$.fn.tagcloud.defaults = {
size: {start: 8, end: 16, unit: 'pt'},
};
$(document).ready(function(){
$("#tagcloud a").tagcloud();
return false;
})
</script>
</div>
</td>
</tr>
<tr>
<td><input type="checkbox" aria-labelledby="locationTitle" name="search.navigation.location" value="true" #(search.navigation.location)#::checked="checked" #(/search.navigation.location)# /></td>
<td><ul class="nav nav-sidebar menugroup" id="sidebarLocation" style="padding-left:15px; padding-right:10px;">
<li><h3 id="locationTitle">Location</h3></li>
#(search.navigation.location)#::
<li>
<img src="env/grafics/earthsearch.png" style="width:100%" height="86" alt="earthsearchlogo" /><br/>
show search results on map
</li>#(/search.navigation.location)#
</ul></td>
</tr>
#{search.navigation.plugin}#
<tr>
<td><button class="btn btn-xs" title="Delete navigator" aria-label="Delete navigator" aria-describedby="title-#[name]#" name="del.nav" value="#[name]#"><span class="glyphicon glyphicon-remove" style="color: red"></span></button></td>
<td>
<ul class="nav nav-sidebar menugroup" style="padding-left:15px; padding-right:10px;">
<li>
<h3 id="title-#[name]#">#[displayname]#
#(navSort)#<span class="glyphicon glyphicon-sort-by-attributes-alt" title="Sorted by descending counts"></span>
::<span class="glyphicon glyphicon-sort-by-attributes" title="Sorted by ascending counts"></span>
::<span class="glyphicon glyphicon glyphicon-sort-by-alphabet-alt" title="Sorted by descending labels"></span>
::<span class="glyphicon glyphicon-sort-by-alphabet" title="Sorted by ascending labels"></span>
#(/navSort)#
</h3>
</li>
<li>
<label>Sort by
<select name="search.navigation.#[name]#.navSort">
<option value="count:desc" #(navSort)#selected="selected"::#(/navSort)#>Descending counts</option>
<option value="count:asc" #(navSort)#::selected="selected"#(/navSort)#>Ascending counts</option>
<option value="label:desc" #(navSort)#::::selected="selected"#(/navSort)#>Descending labels</option>
<option value="label:asc" #(navSort)#::::::selected="selected"#(/navSort)#>Ascending labels</option>
</select>
</label>
</li>
</ul>
<input type="hidden" name="search.navigation.active" value="#[name]#" />
</td>
</tr>
#{/search.navigation.plugin}#
<tr>
<td></td>
<td><ul class="nav nav-sidebar menugroup" id="vocabulary" style="padding-left:15px; padding-right:10px;">
<li><h3>Vocabulary <span class="glyphicon glyphicon-sort-by-attributes-alt" title="Sorted by descending counts"></span></h3></li>
</ul></td>
</tr>
<tr>
<td></td>
<td><div id="sidebarAbout" style="padding-left:15px; padding-right:10px; margin-top: 5px;">
<h3>#[about.headline]#</h3>
<div>#[about.body]#</div>
</div></td>
</tr>
</table>
</fieldset>
</div>
</td>
<td style="vertical-align: top;">
<div style="float: left;">
<fieldset class="yacys">
<div class="input-group">
<input type="text" class="form-control searchinput typeahead" size="40" maxlength="80" placeholder="search..." name="query" />
<div class="input-group-btn">
<button id="Enter" class="btn btn-default" type="submit">search</button>
</div>
</div>
<div class="yacysearch">
<input type="checkbox" id="text" name="search.text" value="true" #(search.text)#::checked="checked" #(/search.text)# /><label for="text">Text</label>
<input type="checkbox" id="image" name="search.image" value="true" #(search.image)#::checked="checked" #(/search.image)# /><label for="image">Images</label>
<input type="checkbox" id="audio" name="search.audio" value="true" #(search.audio)#::checked="checked" #(/search.audio)# /><label for="audio">Audio</label>
<input type="checkbox" id="video" name="search.video" value="true" #(search.video)#::checked="checked" #(/search.video)# /><label for="video">Video</label>
<input type="checkbox" id="app" name="search.app" value="true" #(search.app)#::checked="checked" #(/search.app)# /><label for="app">Applications</label>
<input type="checkbox" id="options" name="search.options" value="true" #(search.options)#::checked="checked" #(/search.options)# /><label for="options"><a href="#" target="LayouTest">more options</a></label>
</div>
</fieldset>
</div>
<!-- the search result -->
<div style="float: left;">
<label><input type="checkbox" name="search.navigation.date" value="true" #(search.navigation.date)#::checked="checked" #(/search.navigation.date)# /> Date Navigation</label>
<label title="Maximum days number in the histogram. Beware that a large value may trigger high CPU loads both on the server and on the browser with large result sets.">Maximum range (in days)
<input type="number" name="search.navigation.dates.maxcount" value="#[search.navigation.dates.maxcount]#" min="6" max="2147483647"/>
</label>
<link rel="stylesheet" href="env/morris.css">
<script src="js/raphael.min.js"></script>
<script src="js/morris.js"></script>
<script type="text/javascript" src="js/accessibleHistogram.js" charset="UTF-8"></script>
<div id="graph" style="height:200px"></div>
<script>
var solr= $.getJSON("solr/collection1/select?q=*:*&start=0&rows=0&wt=json&facet=true&facet.field=dates_in_content_dts&facet.sort=index&facet.limit=#[search.navigation.dates.maxcount]#", function(data) {
dates_in_content_dts = data.facet_counts.facet_fields.dates_in_content_dts;
var parsed = [];
for (var i = 0; i < dates_in_content_dts.length; i = i + 2) {
var date = dates_in_content_dts[i];
var count = dates_in_content_dts[i + 1];
if (date && count) {parsed[parsed.length] = {x: date,y: count};};
};
if (parsed.length > 0) {
var histogram = Morris.Bar({
element: 'graph',
data: parsed,
xkey: 'x',
ykeys: ['y'],
labels: ['number of documents about this date'],
yLabelFormat: function (y) { return y.toString() + ' docs'; },
barColors: function (row, series, type) {
var d = new Date(row.label);
if (d.getDay() === 6) return '#4aaf46'; //saturday
if (d.getDay() === 0) return '#4aaf46'; //sunday
return '#3574c0';
},
hideHover: 'false'
}).on('click', function(i, row) {
console.log(i, row);
});
/* Add keyboard navigation support and accessible attributes */
makeAccessibleMorrisBar(histogram,
"Number of documents per date histogram",
function(data) {return data.x + " : " + data.y + " docs"});
}
});
</script>
<fieldset>
<label>
<input type="checkbox" name="search.result.show.favicon" aria-describedby="faviconDesc" value="true" #(search.result.show.favicon)#::checked="checked"#(/search.result.show.favicon)# />
Show websites favicon
</label>
<span class="info" style="padding-left: 10px">
<img src="env/grafics/i16.gif" alt="info"/>
<span id="faviconDesc">Not showing websites favicon can help you save some CPU time and network bandwidth.
</span>
</span>
<div class="searchresults">
<h4 class="linktitle">
<img width="16" height="16" src="env/grafics/dfltfvcn.ico" class="favicon" alt="" title="Website favicon"/>
<a href="yacysearch.html" target="LayouTest">Title of Result</a>
</h4>
<p class="snippet">
<span class="snippetLoaded" id="hhash">Description and text snippet of the search result</span>
</p>
<p class="url">
<a href="yacysearch.html" id="urlhash" target="LayouTest">http://url-of-the-search-result.net</a>
</p>
<p class="tags">
<input type="checkbox" name="search.result.show.keywords" aria-labelledby="tagsTitle" value="true" #(search.result.show.keywords)#::checked="checked" #(/search.result.show.keywords)# />
<span id="tagsTitle">Tags</span>: <span class="tag label label-default">keyword</span> <span class="tag label label-default">subject</span> <span class="tag label label-default">keyword2</span> <span class="tag label label-default">keyword3</span>
<label>
Max. tags initially displayed
<input type="number" name="search.result.keywords.firstMaxCount" value="#[search.result.keywords.firstMaxCount]#" min="1" max="2147483647"/>
(remaining can then be expanded)
</label>
</p>
<div class="urlinfo">
<table style="border-width:0">
<tr>
<td style="width:15px;"></td>
<td><span title="Last known modification date">#[content_showDate_date]#</span></td>
<td><span role="separator" aria-orientation="vertical"> | </span>42 kbyte</td>
<td><span role="separator" aria-orientation="vertical"> | </span><a id="metadataLink" href="solr/select?q=*:*&start=0&rows=1&core=collection1&wt=html&omitHeader=true" target="LayouTest">Metadata</a></td>
<td><span role="separator" aria-orientation="vertical"> | </span><a id="parserLink" href="ViewFile.html" target="LayouTest">Parser</a></td>
<td><span role="separator" aria-orientation="vertical"> | </span><a id="citationLink" href="api/citation.html?url=yacy.net" target="LayouTest">Citation</a></td>
<td><span role="separator" aria-orientation="vertical"> | </span><a id="picturesLink" href="yacysearch.html" target="LayouTest">Pictures</a></td>
<td><span role="separator" aria-orientation="vertical"> | </span><a id="cacheLink" href="CacheResource_p.html" target="LayouTest">Cache</a></td>
<td><span role="separator" aria-orientation="vertical"> | </span><a id="proxyLink" href="proxy.html" target="LayouTest">View via Proxy</a></td>
<td><span role="separator" aria-orientation="vertical"> | </span><a id="browseIndexLink" href="IndexBrowser_p.html" target="LayouTest"><img src="env/grafics/minitree.png" width="15" height="8" title="Browse index" alt="Browse index"/></a></td>
<td><span role="separator" aria-orientation="vertical"> | </span><a id="snapshotsLink" href="yacysearch.html" target="LayouTest">JPG Snapshot</a></td>
#(search.result.show.ranking)#::<td><span role="separator" aria-orientation="vertical"> | </span><span title="Raw ranking score value">Ranking: 1.12195955E9</span>#(/search.result.show.ranking)#
</tr>
<tr>
<td></td>
<td style="text-align:center;"><input type="checkbox" name="search.result.show.date" aria-label="Date" value="true" #(search.result.show.date)#::checked="checked" #(/search.result.show.date)# /></td>
<td style="text-align:center;"><input type="checkbox" name="search.result.show.size" aria-label="Size" value="true" #(search.result.show.size)#::checked="checked" #(/search.result.show.size)# /></td>
<td style="text-align:center;"><input type="checkbox" name="search.result.show.metadata" aria-labelledby="metadataLink" value="true" #(search.result.show.metadata)#::checked="checked" #(/search.result.show.metadata)# /></td>
<td style="text-align:center;"><input type="checkbox" name="search.result.show.parser" aria-labelledby="parserLink" value="true" #(search.result.show.parser)#::checked="checked" #(/search.result.show.parser)# /></td>
<td style="text-align:center;"><input type="checkbox" name="search.result.show.citation" aria-labelledby="citationLink" value="true" #(search.result.show.citation)#::checked="checked" #(/search.result.show.citation)# /></td>
<td style="text-align:center;"><input type="checkbox" name="search.result.show.pictures" aria-labelledby="picturesLink" value="true" #(search.result.show.pictures)#::checked="checked" #(/search.result.show.pictures)# /></td>
<td style="text-align:center;"><input type="checkbox" name="search.result.show.cache" aria-labelledby="cacheLink" value="true" #(search.result.show.cache)#::checked="checked" #(/search.result.show.cache)# /></td>
<td style="text-align:center;"><input type="checkbox" name="search.result.show.proxy" aria-labelledby="proxyLink" aria-describedby="proxyDesc" value="true" #(search.result.show.proxy)#::checked="checked" #(/search.result.show.proxy)# />
<span class="info" style="padding-left: 10px"><img src="env/grafics/i16.gif" alt="info"/><span id="proxyDesc">
For this option URL proxy must be enabled.<br>
see <a href="Settings_p.html?page=UrlProxyAccess">Settings_p.html</a><br>
menu: System Administration > Advanced Settings
</span></span>
</td>
<td style="text-align:center;"><input type="checkbox" name="search.result.show.indexbrowser" aria-labelledby="browseIndexLink" value="true" #(search.result.show.indexbrowser)#::checked="checked" #(/search.result.show.indexbrowser)# /></td>
<td style="text-align:center;"><input type="checkbox" name="search.result.show.snapshots" aria-labelledby="snapshotsLink" value="true" #(search.result.show.snapshots)#::checked="checked" #(/search.result.show.snapshots)# /></td>
#(search.result.show.ranking)#::<td style="text-align:center;">
<span class="info" style="padding-left: 10px"><img src="env/grafics/i16.gif" alt="info"/><span>
Ranking score value, mainly for debug/analysis purpose, configured in <a href="Settings_p.html?page=debug">Debug/Analysis Settings</a><br>
Menu: System Administration > Advanced Settings > Debug/Analysis Settings
</span></span>
</td>
#(/search.result.show.ranking)#
</tr>
</table>
</div>
</div>
</fieldset>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table role="presentation">
<tr>
<td>
<fieldset><legend>Add Navigators</legend>
<label>append
<select name="search.navigation.navname">
#{search.navigation.list}#
<option value="#[name]#">#[displayname]#</option>
#{/search.navigation.list}#
</select>
</label>
<button type="submit" title="Add navigator" name="add.nav" class="btn btn-xs btn-default" ><span class="glyphicon glyphicon-plus-sign" style="color: green"></span></button><br>
<label for="search.navigation.maxcount">max. items</label>
<input type="text" id="search.navigation.maxcount" name="search.navigation.maxcount" size="3" value="#[search.navigation.maxcount]#">
</fieldset>
</td>
<td>
<div style="padding-left:25px;">
<input type="submit" name="searchpage_set" value="Save Settings" class="btn btn-primary" />
<input type="submit" name="searchpage_default" value="Set Default Values" class="btn btn-primary" />
</div>
</td>
</tr>
</table>
</form>
#%env/templates/footer.template%#
</body>
</html>
|