Commit 42a78048 authored by Karen Konou's avatar Karen Konou

[Doc upload] use abstract if title is empty

parent 5c95e6cc
Pipeline #3456 passed with stage
in 92 minutes and 5 seconds
......@@ -110,7 +110,7 @@ documentUpload nId doc = do
, _hd_uniqId = Nothing
, _hd_uniqIdBdd = Nothing
, _hd_page = Nothing
, _hd_title = Just $ view du_title doc
, _hd_title = Just $ if view du_title doc == "" then T.take 50 (view du_abstract doc) else view du_title doc
, _hd_authors = Just $ view du_authors doc
, _hd_institutes = Nothing
, _hd_source = Just $ view du_sources doc
......
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