context: function Csw(xmlLoader){	//--- call super constructor	Harvester.call(this);		var loader= xmlLoader;	var model = new csw.Model(loader);	var view  = new csw.View(loader);		//--- public methods		this.addSearchRow   = view.addEmptySearch;	this.removeSearchRow= view.removeSearch;	this.addGroupRow    = addGroupRow;	this.removeGroupRow = view.removeGroupRow;	this.getResultTip   = view.getResultTip;	this.model = model;	this.view  = view;//=====================================================================================//===//=== API methods//===//=====================================================================================this.getType      = function() { return "csw"; }this.getLabel     = function() { return loader.eval("info[@type='csw']/long"); }this.getEditPanel = function() { return "csw.editPanel"; }//=====================================================================================this.init = function(){	this.view.init();		model.retrieveGroups    (ker.wrap(this, init_groups_OK));	model.retrieveCategories(ker.wrap(this, init_categ_OK));	model.retrieveIcons     (ker.wrap(this, init_icons_OK));}//-------------------------------------------------------------------------------------function init_groups_OK(data){	view.clearGroups();			for (var i=0; i<data.length; i++)		view.addGroup(data[i].id, data[i].label[Env.lang]);				}//-------------------------------------------------------------------------------------function init_categ_OK(data){	view.clearCategories();			for (var i=0; i<data.length; i++)		view.addCategory(data[i].id, data[i].label[Env.lang]);				}//-------------------------------------------------------------------------------------function init_icons_OK(data){	view.clearIcons();			for (var i=0; i<data.length; i++)		view.addIcon(data[i]);				}//=====================================================================================function addGroupRow(){	var groups = view.getSelectedGroups();		if (groups.length == 0) alert(loader.getText('pleaseSelectGroup'));		else						view.addEmptyGroupRows(groups);}//=====================================================================================}
meta: 6986	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6986/774711041c241914e6fab3c51d9c469abad78755/csw.js/buggy/web/geonetwork/scripts/harvesting/csw/csw.js