TransparencyToolkit / LookingGlass

Intuitive and configurable search interface for document archives.

Home Page:https://transparencytoolkit.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Search result formatting where there is long text but not description

Shidash opened this issue · comments

In datasets where there is a field of display type Long Text but not of display type Description, the Long Text field shows up to the right and there is a large blank space on the left. When there is no Description type field, this should be single column.

This should work to check if there are description fields/get the num of description fields-
dataspec.field_info.select{|f| f["Display Type"]== "Description"}.length
You may need to use @dataspec or a different var depending on what dataspec is where this is called.

This is now fixed!