Part of ACREP-80: new 'widget' parameter to team.newSearch
[mkws-moved-to-github.git] / src / mkws-team.js
index d5f8bc0..3d48385 100644 (file)
@@ -33,7 +33,6 @@ mkws.makeTeam = function($, teamName) {
   var m_template = {}; // compiled templates, from any source
   var m_widgets = {}; // Maps widget-type to array of widget objects
   var m_gotRecords = false;
-  var m_targetMap = {}; // Maps target ID to human-readable name
   
   var config = mkws.objectInheritingFrom(mkws.config);
   that.config = config;
@@ -289,7 +288,7 @@ mkws.makeTeam = function($, teamName) {
   that.resetPage = resetPage;
 
 
-  function newSearch(query, sortOrder, maxrecs, perpage, limit, targets, torusquery) {
+  function newSearch(widget, query, sortOrder, maxrecs, perpage, limit, targets, torusquery) {
     that.info("newSearch: " + query);
 
     if (config.use_service_proxy && !mkws.authenticated) {
@@ -502,17 +501,5 @@ mkws.makeTeam = function($, teamName) {
     return undefined;
   };
 
-  that.mapTarget = function(id, name) {
-    var old = m_targetMap[id];
-    m_targetMap[id] = name;
-    if (old && name !== old) {
-      that.warn("targetMap for id '" + id + "' changed from '" + old + "' to '" + name + "'");
-    }
-  };
-
-  that.targetName = function(id) {
-    return m_targetMap[id] || id;
-  }
-
   return that;
 };