harvester.js
来自「联合国农粮署牵头开发的geonetwork源代码最新版」· JavaScript 代码 · 共 65 行
JS
65 行
//=====================================================================================//===//=== Harvester//===//=====================================================================================function Harvester(){ var currId = null; //=====================================================================================//===//=== API methods//===//=====================================================================================//--- abstract methodsthis.getType = function() {}this.getLabel = function() {}this.getEditPanel = function() {}this.getResultTip = function() {}//=====================================================================================this.init = function() { this.view.init(); }//=====================================================================================this.setData = function(node) { currId = node.getAttribute('id'); this.view.setData(node); }//=====================================================================================this.setEmpty = function(){ currId = ""; this.view.setEmpty(); }//=====================================================================================this.getUpdateRequest = function(){ if (!this.view.isDataValid()) return null; var data = this.view.getData(); data.ID = currId; data.TYPE = this.getType(); return this.model.getUpdateRequest(data);}//=====================================================================================}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?