medialab / fonio

a collaborative scholarly text editor allowing to build static websites
https://fonio.medialab.sciences-po.fr/demo
GNU Affero General Public License v3.0
67 stars 6 forks source link

Authors list should be tunable to welcome academic affiliations usecase #331

Open paulgirard opened 4 years ago

paulgirard commented 4 years ago

Is your feature request related to a problem? Please describe.

The default renderer does concat authors information separated by a comma in one single span tag. When adding multiple authors with affiliations as we normally do in academia, it makes a bad layout : image

Default choice is legit for only names list but in this use case it makes the author list unreadable. The real problem is that I can't customize the rendering by CSS because the authors data are merged as a string in a single span tag.

Describe the solution you'd like

Keep author data in single individual spans (or li?) so that one can decide to customize the layout. I would have liked to make each authors appear in a new line.

The default comma as separator could be tunable too but I might be able to make it work with it. Actually the affiliations could be sent to a note but we can't add note to authors which makes sens.

Describe alternatives you've considered

Not an alternative but a plus would be to add a affiliations input in authors list with a specific CSS style. Would make academic users happy. But separating authors in individual tags still hold.

by the way When there are only two authors using a "&" as a separator would be better. I put "&" and not "and" because the code doesn't know the language used in the story.

paulgirard commented 4 years ago

as a worksaround, I can use the edition comment to stick affiliations : image

which makes a classic acamedic layout somehow: image