parent
1cae0821ba
commit
7f7cafd1c1
6 changed files with 23 additions and 6 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue