                                   :id "search-term"
                                   :type "text"
                                   :placeholder "Search artist/album/title"
-                                  :value (:search-term state)
+                                  :value (:string state)
                                   :onChange
                                   (fn [e]
-                                    (let [term (.. e -target -value)]
-                                      (om/set-state! owner :search-term term)
-                                      (put! search-chan {:_content term})))
+                                    (let [str (.. e -target -value)]
+                                      (om/set-state! owner :string str)
+                                      ))
+                                  :onKeyUp
+                                  (fn [e] (if (= 13 (.-which e))
+                                            (send-search e)))
+                                  :onBlur send-search
                                   }))
                  (apply dom/div #js {:className "filters" }
                         (map #(dom/span #js {:className "filter"

                                             (fn [e] (put! search-chan
                                                           {(first %) nil}))}
                                        (str (name (first %)) ": " (second  %)))
                             (filter second filters))))))))

(defn best-media-url [r]
  (let [urls (get r "_links")]

               )))))


(defn search-entry-view [term owner]
  (reify
    om/IRenderState
    (render-state [this state]
      (let [search-chan (om/get-shared owner :search-channel)
            send-search (fn [e]
                          (let [str (.. e -target -value)]
                            (om/update! term [:_content] str)
                            (put! search-chan {:_content str})))]
        (dom/div nil
                 (dom/h1
                  #js {:id "sledge"}
