whiskyechobravo / kerko

A web application component that provides a faceted search interface for bibliographies managed with Zotero.
https://whiskyechobravo.github.io/kerko/
GNU General Public License v3.0
302 stars 36 forks source link

Truncate long abstracts in search results #7

Closed jnkindi closed 3 years ago

jnkindi commented 3 years ago
davidlesieur commented 3 years ago

Looks good! :+1:

davidlesieur commented 3 years ago

Oh, checked too quickly! If we're going to add this to Kerko, I think it should be controlled by a setting. Perhaps a value of 0 would mean to not truncate the abstracts, and any other integer value would mean to truncate at that given length. Perhaps the default would then be 0, to avoid changing the previous behavior for existing users.

davidlesieur commented 3 years ago

Until that is implemented, you could always override the template in your app and truncate from that template.