⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 csw.js

📁 联合国农粮署牵头开发的geonetwork源代码最新版
💻 JS
字号:
//=====================================================================================//===//=== CSW controller//===//=====================================================================================ker.include('harvesting/csw/model.js');ker.include('harvesting/csw/view.js');var csw = new Object();//=====================================================================================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);}//=====================================================================================}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -