// POSS remove restriction on 'semantic' nodes for twitter results about authors
varjoined_q=jsonparams.map(function(w){return'('+w+')'}).join(' AND ')
if(nodetypeLegacy=='semantic'){
// console.log(jsonparams)
// theHtml = "<p> jsonparams:"+jsonparams+" </p>"
//
$.ajax({
$.ajax({
type:'GET',
type:'GET',
url:TW.conf.relatedDocsAPI,
url:TW.conf.relatedDocsAPI,
...
@@ -384,6 +380,45 @@ function getTopPapers(nodetypeLegacy){
...
@@ -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>`