List of tags in the editor

* Closes: #21
This commit is contained in:
Las Zenow 2017-02-01 15:36:30 +00:00
parent 1cae0821ba
commit 7f7cafd1c1
6 changed files with 23 additions and 6 deletions

View file

@ -94,7 +94,7 @@ func saveHandler(h handler) {
date := h.r.FormValue("date")
description := h.r.FormValue("description")
author := cleanEmptyStr(h.r.Form["author"])
subject := cleanEmptyStr(h.r.Form["subject"])
subject := cleanEmptyStr(strings.Split(h.r.FormValue("subject"), ","))
isbn := parser.ISBN(h.r.FormValue("isbn")) // XXX: check for errors
lang := cleanEmptyStr(h.r.Form["lang"])
book := map[string]interface{}{"title": title,