javascript/web/GeneralSearchForwarding.js
function forward(doc){

	if( doc && doc['entity'] && doc['category'] ){

	    // Erase any val, change the placeholder (to try and
	    // prevent races where the user selects and then hits
	    // "search" before the forwarding finishes).
	    jQuery('#' + wired_name).val('');
	    jQuery('#' + wired_name).attr('placeholder', 'Forwarding to ' +
					  doc['entity'] + '...');

	    // Forward to the new doc.
	    if( doc['category'] === 'ontology_class' ){
		window.location.href =
		    linker.url(doc['entity'], 'term');
	    }else if( doc['category'] === 'bioentity' ){
		window.location.href = linker.url(doc['entity'], 'gp');
	    }
	}
    }
function forward(doc){

	if( doc && doc['entity'] && doc['category'] ){

	    // Erase any val, change the placeholder (to try and
	    // prevent races where the user selects and then hits
	    // "search" before the forwarding finishes).
	    jQuery('#' + wired_name).val('');
	    jQuery('#' + wired_name).attr('placeholder', 'Forwarding to ' +
					  doc['entity'] + '...');

	    // Forward to the new doc.
	    if( doc['category'] === 'ontology_class' ){
		window.location.href =
		    linker.url(doc['entity'], 'term');
	    }else if( doc['category'] === 'bioentity' ){
		window.location.href = linker.url(doc['entity'], 'gp');
	    }
	}
    }
function forward ( doc ) { if ( doc && doc [ 'entity' ] && doc [ 'category' ] ) { // Erase any val, change the placeholder (to try and // prevent races where the user selects and then hits // "search" before the forwarding finishes). jQuery ( '#' + wired_name ) . val ( '' ) ; jQuery ( '#' + wired_name ) . attr ( 'placeholder' , 'Forwarding to ' + doc [ 'entity' ] + '...' ) ; // Forward to the new doc. if ( doc [ 'category' ] === 'ontology_class' ) { window . location . href = linker . url ( doc [ 'entity' ] , 'term' ) ; } else if ( doc [ 'category' ] === 'bioentity' ) { window . location . href = linker . url ( doc [ 'entity' ] , 'gp' ) ; } } }
Widget, default personality and filter.
Widget default personality and filter .