varh="<p>supplying federation: <strong>"+data.fed+"</strong><p>other federations: <strong>"+data.other_fed.join('</strong>, <strong>')+"<p>click the tooltip to close.</strong>";
varh="<p>supplying federation: <strong>"+data.fed+"</strong><p>other federations: <strong>"+data.other_fed.join('</strong>, <strong>')+"<p>click the tooltip to close.</strong>";
hlp='Enter string for a substring matching. Only EntityID is searched.';
//alert(type);
}
vartxt;
if(type=='text'){
varhlp;
txt='Fulltext mysql style search';
if(type=='entityid'){
hlp='Enter multiple words, and the match will be against any of them, put several words in double quotes to match the whole phrase, precede words or phrases with plus signs to make them required in the search or minus signs to filter out the unwanted (<a href="http://dev.mysql.com/doc/refman/5.5/en/fulltext-boolean.html" target="_blank">more info</a>).'
txt='EntityID substring search';
}
hlp='Enter string for a substring matching. Only EntityID is searched.';
if(type=='rev-text'){
}
txt='Fulltext mysql style search';
if(type=='text'){
hlp='Same as <i>matching EntityDescriptions (multiple words)</i> but provide the full list from other filters with matched rows excluded.'
txt='Fulltext mysql style search';
}
hlp='Enter multiple words, and the match will be against any of them, put several words in double quotes to match the whole phrase, precede words or phrases with plus signs to make them required in the search or minus signs to filter out the unwanted (<a href="http://dev.mysql.com/doc/refman/5.5/en/fulltext-boolean.html" target="_blank">more info</a>).'
$("#entity_search").attr("placeholder",txt);
}
$("#entity_search_help").html(hlp);
if(type=='rev-text'){
txt='Fulltext mysql style search';
});
hlp='Same as <i>matching EntityDescriptions (multiple words)</i> but provide the full list from other filters with matched rows excluded.'
}
$("#help").on("click",function(event){
$("#entity_search").attr("placeholder",txt);
$(this).hide();
$("#entity_search_help").html(hlp);
});
});
$(".entities_help").on("click",function(event){
$("#help").html('<p>'+Help[$(this).attr('id')]+'<p><strong>Click on this pop-up to close it.</strong>');