 DEFAULT_SETTINGS =
   sort: "goodreads_rating"
   onlyfiction: "yes"
+  onlyavailable: "no"
 
 SORT_FIELDS = [
   ["goodreads_rating", "Goodreads Rating"]

  render: ->
    React.DOM.div className: "app",
      Settings(settings: @state.settings)
      BookList(books: @state.books, sort: @state.settings.sort, onlyfiction: @state.settings.onlyfiction)

BookList = React.createClass
  displayName: "BookList"

          for c in goodreads_categories when !(c in ["to-read", "currently-reading", "fiction", "non-fiction", "nonfiction", "book-club", "favorites", "novels", "novel", "before-goodreads", "to-buy", "finished"])
            React.DOM.li key: c, c
      React.DOM.div className: "metadata",
        if @props.showAvailability
          React.DOM.div className: "availability",
            React.DOM.span className: "yesno #{if available then 'yes' else 'no'}", "Available:"
            React.DOM.span className: "holds", "(#{holds.replace(/Holds: (\d+)/, '$1 holds')})" if holds
        if @props.showFiction
          React.DOM.div className: "fiction yesno #{if fiction then 'yes' else 'no'}", "Fiction:"
        # React.DOM.div className: "vpl-rating",
