summaryrefslogtreecommitdiff
path: root/htroot/yacysearchtrailer.html
diff options
context:
space:
mode:
authorreger <reger18@arcor.de>2016-10-31 02:17:43 +0100
committerreger <reger18@arcor.de>2016-10-31 02:17:43 +0100
commit5eb3ee4e20abce2dab7607e7aa482c5bc597cf43 (patch)
treee98259760db77d814c0ea880d4063927db6729a8 /htroot/yacysearchtrailer.html
parentfd3f58fcaa9fa8a2e202401c90ef4efc4d10ac4f (diff)
Add search navigator interface to allow for additional navigators (plugins)
Prepared the first basic navigators (for authors and collections) for the list of SearchEvent.navigatorPlugins and adjusted servlet to use these. - this allows to configure display order of these navigators (by ordering config string) - eventually allows for additional and/or custom navigators using any available index field without need for changing servlets - the Collection navigation has been adjusted to exclude the internal, default robot_* and dht collections from displaying - rwi results are now also checked for navigatior by the refactored navi's So far no config options were added to customize or add navigators (may come later if route of upcoming modularization/plugin system is defined).
Diffstat (limited to 'htroot/yacysearchtrailer.html')
-rw-r--r--htroot/yacysearchtrailer.html17
1 files changed, 4 insertions, 13 deletions
diff --git a/htroot/yacysearchtrailer.html b/htroot/yacysearchtrailer.html
index 4c10663af..631846e52 100644
--- a/htroot/yacysearchtrailer.html
+++ b/htroot/yacysearchtrailer.html
@@ -190,23 +190,14 @@ function toggleVisibility(name, count) {
<script>if (#[count]# <= 8) toggleVisibility('namespace', #[count]#);</script>
#(/nav-namespace)#
-#(nav-authors)#::
+#{navs}#
<ul class="nav nav-sidebar menugroup">
-<li style="cursor: pointer; cursor: hand;"><h3 onclick="toggleVisibility('authors', #[count]#);">Author [#[count]#] <span style="float:right" id="chevron-authors" class="glyphicon glyphicon-chevron-down" title="click to expand facet"></span></h3></li>
+<li style="cursor: pointer; cursor: hand;"><h3 onclick="toggleVisibility('#[name]#', #[count]#);">#[displayname]# [#[count]#] <span style="float:right" id="chevron-#[name]#" class="glyphicon glyphicon-chevron-down" title="click to expand facet"></span></h3></li>
#{element}#
<li style="display:none" id="#[id]#"><a href="#[url]#" class="MenuItemLink"><input type="checkbox" onchange="window.location.href='#[url]#'"#(on)# checked="checked"::#(/on)#/> #[name]# (#[count]#)</a></li>
#{/element}#</ul>
-<script>if (#[count]# <= 8) toggleVisibility('authors', #[count]#);</script>
-#(/nav-authors)#
-
-#(nav-collections)#::
-<ul class="nav nav-sidebar menugroup">
-<li style="cursor: pointer; cursor: hand;"><h3 onclick="toggleVisibility('collections', #[count]#);">Collection [#[count]#] <span style="float:right" id="chevron-collections" class="glyphicon glyphicon-chevron-down" title="click to expand facet"></span></h3></li>
-#{element}#
-<li style="display:none" id="#[id]#"><a href="#[url]#" class="MenuItemLink"><input type="checkbox" onchange="window.location.href='#[url]#'"#(on)# checked="checked"::#(/on)#/> #[name]# (#[count]#)</a></li>
-#{/element}#</ul>
-<script>if (#[count]# <= 8) toggleVisibility('collections', #[count]#);</script>
-#(/nav-collections)#
+<script>if (#[count]# <= 8) toggleVisibility('#[name]#', #[count]#);</script>
+#{/navs}#
#{nav-vocabulary}#
<ul class="nav nav-sidebar menugroup">