   handleBadMark: ()->
     newAnnotation = []
     newAnnotation["low_quality_subject"]
+
+  findMinDate: ()->
+    return moment( this.props.subject.meta_data.year + "-01-01" )
+
+  findMaxDate: ()->
+    return moment( String(parseInt(this.props.subject.meta_data.year) + 1) + "-01-01" )
 
   render: ->
     return null if @props.loading # hide transcribe tool while loading image

    # currently selected date. This object must be of type moment() or blank.
    # If blank, the input element within the DatePicker component will display the
    # text identified in the placeholderText attribute (specified below)
    selectedDate: ''

  # this can go into a mixin? (common across all transcribe tools)
  getPosition: (data) ->


  # Event handler that parses Moment.js objects
  handleDateChange: (e) ->
    if not e? or e.length is 0
      @setState
        selectedDate: moment( this.props.subject.meta_data.year + "-01-01" )
      @updateValue moment( this.props.subject.meta_data.year + "-01-01" )

    else
      @setState
        selectedDate: moment(e._d)
      @updateValue e._d

  handleKeyDown: (e) ->
    @handleChange(e) # updates any autocomplete values
