search fix
This commit is contained in:
@@ -6,7 +6,8 @@
|
|||||||
[clj-http.client :as client]
|
[clj-http.client :as client]
|
||||||
[clojure.data.json :as json]
|
[clojure.data.json :as json]
|
||||||
[clojure.string :as str]
|
[clojure.string :as str]
|
||||||
[auto-ap.solr :as solr]))
|
[auto-ap.solr :as solr]
|
||||||
|
[com.brunobonacci.mulog :as mu]))
|
||||||
|
|
||||||
(defn try-cleanse-date [d]
|
(defn try-cleanse-date [d]
|
||||||
(try
|
(try
|
||||||
@@ -102,7 +103,10 @@
|
|||||||
[:div.block "No results found."])]))
|
[:div.block "No results found."])]))
|
||||||
|
|
||||||
(defn dialog-contents [request]
|
(defn dialog-contents [request]
|
||||||
(if-let [q (:q (:params request))]
|
(mu/log ::params
|
||||||
|
:params (:params request)
|
||||||
|
:form (:form-params request))
|
||||||
|
(if-let [q (get (:form-params request) "q")]
|
||||||
(html-response (search-results* q (:identity request)))
|
(html-response (search-results* q (:identity request)))
|
||||||
(html-response
|
(html-response
|
||||||
[:div#search {:style {:height "400px" :overflow "auto"}}
|
[:div#search {:style {:height "400px" :overflow "auto"}}
|
||||||
|
|||||||
Reference in New Issue
Block a user