mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
fix vocabulary navigator checkbox selection (from last commit)
This commit is contained in:
parent
b693ce9759
commit
6c6056836d
|
@ -86,7 +86,7 @@ public class yacysearchtrailer {
|
|||
break;
|
||||
}
|
||||
nav = "inurl%3A" + name;
|
||||
if (!theSearch.query.modifier.toString().contains(nav)) {
|
||||
if (!theSearch.query.modifier.toString().contains("inurl:"+name)) {
|
||||
pos++;
|
||||
prop.put("nav-namespace_element_" + i + "_on", 1);
|
||||
prop.put(fileType, "nav-namespace_element_" + i + "_modifier", nav);
|
||||
|
@ -380,7 +380,7 @@ public class yacysearchtrailer {
|
|||
break;
|
||||
}
|
||||
nav = "%2Fvocabulary%2F" + navname + "%2F" + MultiProtocolURL.escape(Tagging.encodePrintname(name)).toString();
|
||||
if (!theSearch.query.modifier.toString().contains("/vocabulary/")) {
|
||||
if (!theSearch.query.modifier.toString().contains("/vocabulary/"+navname+"/"+name)) {
|
||||
prop.put("nav-vocabulary_" + navvoccount + "_element_" + i + "_on", 1);
|
||||
prop.put(fileType, "nav-vocabulary_" + navvoccount + "_element_" + i + "_modifier", nav);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user