varjoined_q=jsonparams.map(function(w){return'('+w+')'}).join(' AND ')
// console.log(jsonparams)
// theHtml = "<p> jsonparams:"+jsonparams+" </p>"
//
if(TW.conf.relatedDocsType=="twitter"){
// POSS remove restriction on 'semantic' nodes for twitter results about authors
if(nodetypeLegacy=='semantic'){
$.ajax({
type:'GET',
url:TW.conf.relatedDocsAPI,
...
...
@@ -384,6 +380,45 @@ function getTopPapers(nodetypeLegacy){
}
});
}
}
elseif(TW.conf.relatedDocsType=="wosLocalDB"){
letthisgexf=TW.File;
letgexfinfos=TW.fields[thisgexf]
if(!gexfinfos||!gexfinfos[nodetypeLegacy]){
$("#topPapers").show();
$("#topPapers").html(
`<p>Your settings for relatedDocsType are set on a local wos database, but your servermenu file does not provide any information about the wosLocalDB table to query for related documents on nodetype ${nodetypeLegacy}</p>`