Modified: trunk/lib/workflow_processors/galaxy.rb (2503 => 2504)
--- trunk/lib/workflow_processors/galaxy.rb 2010-08-23 13:26:42 UTC (rev 2503)
+++ trunk/lib/workflow_processors/galaxy.rb 2010-08-23 14:59:36 UTC (rev 2504)
@@ -75,7 +75,25 @@
end
def get_search_terms
- # TODO
+
+ return "" if @model.nil?
+
+ words = StringIO.new
+
+ @model.steps.each do |step|
+ words << " #{step.name} #{step.tool}"
+ end
+
+ @model.inputs.each do |input|
+ words << " #{input.name} #{input.description}"
+ end
+
+ @model.outputs.each do |output|
+ words << " #{output.name}"
+ end
+
+ words.rewind
+ words.read
end
end