zotero / publications

Easily display Zotero items on a webpage
Other
32 stars 8 forks source link

abstract structure #5

Closed flachware closed 8 years ago

flachware commented 8 years ago

is there a way we can have structured abstracts or do they have to be exactly one paragraph? abstract

dstillman commented 8 years ago

Sorry, not sure what you mean here. The content should just be whatever is in the Abstract field, which could be anything.

dstillman commented 8 years ago

Do you mean that abstracts are showing as single paragraphs because any embedded newlines are getting collapsed? We might need to display them with white-space: pre-wrap;.

flachware commented 8 years ago

You understood correctly, I was wondering if there is some kind of structure in the abstract data – paragraphs, newlines, whatever.

Having newlines preserved could help a bit, but is also double-edged within a responsive design (newline after a long line might not be noticeable).

Could we convert newline separated text segments into paragraphs by any chance? Paragraphs would be ideal, as we could separate them with space or text-indent (as in the design above). Long abstracts would really benefit from some (visual) structure – if possible.

tnajdek commented 8 years ago

technically we could inject paragraphs with some regex but I'm not sure if we should.

dstillman commented 8 years ago

I'm OK converting newlines to paragraphs and seeing how well it works. If we find lots of abstracts that use newlines in non-paragraph ways, we can reconsider.

flachware commented 8 years ago

Great, let's try this. Finally we should have abstracts with 1 to n paragraphs.

tnajdek commented 8 years ago

Done in 51f472b7d87c7828d2f13f3269d290082fbdf921, looking good!

screen shot 2016-02-09 at 19 19 50
flachware commented 8 years ago

Nice!