[types] remove authors.raw_affiliation_string

This threw exceptions, because now that field is missing.
parent ceb8f2ce
...@@ -366,7 +366,7 @@ data Authorship = Authorship ...@@ -366,7 +366,7 @@ data Authorship = Authorship
, author_position :: Text , author_position :: Text
, institutions :: [DehydratedInstitution] , institutions :: [DehydratedInstitution]
, is_corresponding :: Maybe Bool , is_corresponding :: Maybe Bool
, raw_affiliation_string :: Text -- , raw_affiliation_string :: Text
} deriving (Generic, Show, FromJSON) } deriving (Generic, Show, FromJSON)
authorshipAuthorName :: Authorship -> Maybe Text authorshipAuthorName :: Authorship -> Maybe Text
authorshipAuthorName (Authorship { author = DehydratedAuthor { display_name } }) = display_name authorshipAuthorName (Authorship { author = DehydratedAuthor { display_name } }) = display_name
......
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