The Neurophysiological Biomarker Toolbox (NBT)



NBTwiki platform

The NBTwiki platform is a web platform specifically developed to support the Neurophysiological Biomarker Toolbox and NBT Analytics. Current we have on average 2.200 unique visits per month producing 6.400 pageviews. The NBTwiki platform runs on a customized Dokuwiki system.

In-House developed Dokuwiki plugins

We have developed two plugins to improve the editing of pages, and the speed of the wiki

Inlineeditor

The inlineeditor enables easy editing of wiki pages, by a simple double click on the page.

More information can be found here.

SmartCache

This plugin enable the browser cache for users that are not logged in. The cache is automatically refreshed (and checked) using an AJAX call to the server. If the user log in, the plugin also refresh the browser cache.

The plugins improves the load time of users of the NBT wiki.

More information can be found here

Changes to tabinclude plugin

We are using the tabinclude plugintabinclude plugin for dokuwiki with added cache.

We simply changed the script.js to ..

var tabincludeCache = new Array();
var tabincludePage = "null";
 
function pl_ti_onTabClicked(page){
  if(page){
    document.getElementById('ti_content').style.visibility='hidden';
    document.getElementById('ti_loading').style.display='block';
    tabincludePage = page;
    if(tabincludeCache[page]) {
    document.getElementById('ti_content').innerHTML = tabincludeCache[page];
    document.getElementById('ti_loading').style.display ='none';
    document.getElementById('ti_content').style.visibility = 'visible';
    }else{
    pl_ti.sack.onCompletion = plugin_ti_refreshcontent;
    pl_ti.sack.URLString = '';
    pl_ti.sack.runAJAX('call=content&page=' encodeURI(page));
}
  }
}
 
 
function plugin_ti_refreshcontent(){
  data = this.response;
  document.getElementById('ti_content').innerHTML = data;
  document.getElementById('ti_loading').style.display='none';
  document.getElementById('ti_content').style.visibility='visible';
  tabincludeCache[tabincludePage] = data;
}
wiki/wikiengine.txt · Last modified: 2014/05/29 10:46 by Simon-Shlomo Poil
The NBTwiki platform - version 2.8 - 9 May 2013
Copyright (C) 2008-2015