       'click': 'doHarvest'
       
     doHarvest: ->
+      collections = $('#selected-collection').val().split /,\s*/ 
+      
       postBody =
         recordUrl: $('#input-url').val()
         inputFormat: $('input[name=harvestFormat]:checked').val()
-        destinationCollections: [ $('#selected-collection').val() ]
+        destinationCollections: collections
       opts =
         type: 'POST'
         contentType: 'application/json'

      @render()
      
      # Setup the Collection Name autocomplete
      opts =
        source: root.collections
        select: (event, ui) ->
          $('#selected-collection').val ui.item.id
          $(this).val ui.item.value
          return false
        change: (event, ui) ->
          if not ui.item?
            $('#selected-collection').val ''
      $('#collection-selector').autocomplete opts
      return 
      


$(document).ready ->
  
  class HarvestApplication extends Backbone.Viewl
    jade: new root.Jade '/static/templates/harvest-application.jade'
    
    responseJade: new root.Jade '/static/templates/harvest-response.jade'
