Dear Gitlab users, due to maintenance reasons, Gitlab will not be available on Thursday 30.09.2021 from 5:00 pm to approximately 5:30 pm.

Commit c94b4724 authored by Andreas Wagner's avatar Andreas Wagner
Browse files

Fix #25.

parent a7d274f2
......@@ -210,11 +210,13 @@ func SetupRoutes(conf tei2zenodo.Config) *gin.Engine {
if zURL == "" {
zURL = c.Query("zURL")
}
conf.Zenodo.Host = zURL
// Read zPrefix from Form field, Query parameter or File field
zPrefix := c.PostForm("zPrefix")
if zPrefix == "" {
zPrefix = c.Query("zPrefix")
}
conf.Zenodo.Prefix = zPrefix
// Get doPublish from request (false if not set)
doPublish := c.PostForm("doPublish")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment