scripts/web-bowser.js
function _prep_download_url(){

    var engine = new impl_engine(golr_response);
    //engine.method('GET');
    //engine.use_jsonp(true);
    var gman = new golr_manager(gserv, gconf, engine, 'async');
	
    gman.set_personality('annotation');
    gman.add_query_filter('document_category', 'annotation', ['*']);
	
    // gman.set_results_count(download_count);
    var field_list = [ // from GAF
	'source', // c1
	'bioentity_internal_id', // c2; not bioentity
	'bioentity_label', // c3
	'qualifier', // c4
	'annotation_class', // c5
	'reference', // c6
	'evidence_type', // c7
	'evidence_with', // c8
	'aspect', // c9
	'bioentity_name', // c10
	'synonym', // c11
	'type', // c12
	'taxon', // c13
	'date', // c14
	'assigned_by', // c15
	'annotation_extension_class', // c16
	'bioentity_isoform' // c17
    ];
    // gman.set('fl', field_list.join(','));
    // //manager.set('rows', arg_hash['rows']);
    // gman.set('csv.encapsulator', '');
    // gman.set('csv.separator', '%09');
    // gman.set('csv.header', 'false');
    // gman.set('csv.mv.separator', '|');
    // gman.set('start', _random_number(5));

    //gman.set('start', _random_number(5));
    gman.set_extra('&start=' + _random_number(4));
    //console.log(gman.get_download_url(field_list, { 'rows': lines }));
    return gman.get_download_url(field_list, { 'rows': lines });
}
function _prep_download_url(){

    var engine = new impl_engine(golr_response);
    //engine.method('GET');
    //engine.use_jsonp(true);
    var gman = new golr_manager(gserv, gconf, engine, 'async');
	
    gman.set_personality('annotation');
    gman.add_query_filter('document_category', 'annotation', ['*']);
	
    // gman.set_results_count(download_count);
    var field_list = [ // from GAF
	'source', // c1
	'bioentity_internal_id', // c2; not bioentity
	'bioentity_label', // c3
	'qualifier', // c4
	'annotation_class', // c5
	'reference', // c6
	'evidence_type', // c7
	'evidence_with', // c8
	'aspect', // c9
	'bioentity_name', // c10
	'synonym', // c11
	'type', // c12
	'taxon', // c13
	'date', // c14
	'assigned_by', // c15
	'annotation_extension_class', // c16
	'bioentity_isoform' // c17
    ];
    // gman.set('fl', field_list.join(','));
    // //manager.set('rows', arg_hash['rows']);
    // gman.set('csv.encapsulator', '');
    // gman.set('csv.separator', '%09');
    // gman.set('csv.header', 'false');
    // gman.set('csv.mv.separator', '|');
    // gman.set('start', _random_number(5));

    //gman.set('start', _random_number(5));
    gman.set_extra('&start=' + _random_number(4));
    //console.log(gman.get_download_url(field_list, { 'rows': lines }));
    return gman.get_download_url(field_list, { 'rows': lines });
}
function _prep_download_url ( ) { var engine = new impl_engine ( golr_response ) ; //engine.method('GET'); //engine.use_jsonp(true); var gman = new golr_manager ( gserv , gconf , engine , 'async' ) ; gman . set_personality ( 'annotation' ) ; gman . add_query_filter ( 'document_category' , 'annotation' , [ '*' ] ) ; // gman.set_results_count(download_count); var field_list = [ // from GAF 'source' , // c1 'bioentity_internal_id' , // c2; not bioentity 'bioentity_label' , // c3 'qualifier' , // c4 'annotation_class' , // c5 'reference' , // c6 'evidence_type' , // c7 'evidence_with' , // c8 'aspect' , // c9 'bioentity_name' , // c10 'synonym' , // c11 'type' , // c12 'taxon' , // c13 'date' , // c14 'assigned_by' , // c15 'annotation_extension_class' , // c16 'bioentity_isoform' // c17 ] ; // gman.set('fl', field_list.join(',')); // //manager.set('rows', arg_hash['rows']); // gman.set('csv.encapsulator', ''); // gman.set('csv.separator', '%09'); // gman.set('csv.header', 'false'); // gman.set('csv.mv.separator', '|'); // gman.set('start', _random_number(5)); //gman.set('start', _random_number(5)); gman . set_extra ( '&start=' + _random_number ( 4 ) ) ; //console.log(gman.get_download_url(field_list, { 'rows': lines })); return gman . get_download_url ( field_list , { 'rows' : lines } ) ; }
Spin up download agents. The download-y bits.
Spin up download agents . The download - y bits .