diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.js index ce20a6403..625bd53cf 100644 --- a/htroot/js/yacysearch.js +++ b/htroot/js/yacysearch.js @@ -1,6 +1,4 @@ -function AllTextSnippets() { - var query = document.getElementsByName("former")[0].value; - +function AllTextSnippets(query) { var span = document.getElementsByTagName("span"); for(var x=0;x - + #(display)# #%env/templates/simpleheader.template%# @@ -23,7 +23,6 @@ #(input)# :: :: #(/input)# @@ -161,7 +157,7 @@ document.getElementById("Enter").value = "search again - catch up more links"; #{/results}# @@ -189,7 +185,7 @@ document.getElementById("Enter").value = "search again - catch up more links"; #{/results}# @@ -202,7 +198,7 @@ document.getElementById("Enter").value = "search again - catch up more links"; #{/results}# diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java index ef8889d97..750431908 100644 --- a/htroot/yacysearch.java +++ b/htroot/yacysearch.java @@ -510,6 +510,7 @@ public class yacysearch { prop.put("input_contentdomCheckVideo", (contentdomCode == plasmaSearchQuery.CONTENTDOM_VIDEO) ? 1 : 0); prop.put("input_contentdomCheckImage", (contentdomCode == plasmaSearchQuery.CONTENTDOM_IMAGE) ? 1 : 0); prop.put("input_contentdomCheckApp", (contentdomCode == plasmaSearchQuery.CONTENTDOM_APP) ? 1 : 0); + prop.put("type_former", post.get("search", "")); //the query-string used to get the snippets // return rewrite properties