rem: this.getLabel     = function() { return loader.getText("typeGN"); } 
add: this.getLabel     = function() { return loader.eval("info[@type='geonetwork']/long"); } 
context: function Geonetwork(xmlLoader){	//--- call super constructor	Harvester.call(this);		var loader= xmlLoader;	var model = new gn.Model(loader);	var view  = new gn.View(loader);		//--- public methods		this.addSearchRow    = addSearchRow;	this.removeSearchRow = view.removeSearch;	this.getResultTip    = view.getResultTip;	this.retrieveSites   = retrieveSites;		this.model = model;	this.view  = view;	//=====================================================================================//===//=== API methods//===//=====================================================================================this.getType      = function() { return "geonetwork"; }this.getLabel     = function() { return loader.getText("typeGN"); }this.getEditPanel = function() { return "gn.editPanel"; }//=====================================================================================function retrieveSites(){	var data = view.getHostData();		if (data.HOST == '')		alert(loader.getText('supplyHost'));			else if (data.SERVLET == '')		alert(loader.getText('supplyServlet'));			else		model.retrieveSites(data, ker.wrap(this, retrieveSites_OK));}//-------------------------------------------------------------------------------------function retrieveSites_OK(data){	view.clearSiteId();	view.addSiteId(data.SITE_ID, data.SITE_NAME);		for (var i=0; i<data.NODES.length; i++)	{		var node = data.NODES[i];			view.addSiteId(node.SITE_ID, node.SITE_NAME +' ('+ node.MD_COUNT +')');					}}//=====================================================================================function addSearchRow(){	var siteId   = view.getSiteId();	var siteName = view.getSiteName();		if (siteName == null)		alert(loader.getText('pleaseRetrieve'));	else		view.addEmptySearch(siteId, siteName);}//=====================================================================================}
meta: 6986	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6986/548af8b00b9176434810d39b5ef63227427ad1e1/geonetwork.js/buggy/web/scripts/harvesting/geonet/geonetwork.js