Module Arod_component.Paper

Paper component rendering using htmlit.

module Paper = Bushel.Paper
module Contact = Sortal_schema.Contact
module I = Arod.Icons
val one_author : ctx:Arod.Ctx.t -> string -> Htmlit.El.html

Render a single author with optional link from contacts.

val authors : ctx:Arod.Ctx.t -> Paper.t -> Htmlit.El.html

Render the full author list with commas and "and".

val host_without_www : string -> String.t

Extract hostname without www. prefix from a URL.

val publisher : Paper.t -> Htmlit.El.html

Render publisher description based on bibtype.

val bar : ctx:Arod.Ctx.t -> ?nopdf:bool -> Paper.t -> Htmlit.El.html

Render PDF/BIB/DOI/URL links inline with icons.

val card : ctx:Arod.Ctx.t -> Bushel__.Bushel_paper.t -> Htmlit.El.html

Brief paper card for lists.

Full paper view with abstract and image. Metadata (authors, publisher, links) is now in the sidebar.

val extra : ctx:Arod.Ctx.t -> Paper.t -> Htmlit.El.html

Render older versions section using the same activity-row style as Related.

Papers List Page

val classification_label : Paper.classification -> string
val classification_class : Paper.classification -> string
val classification_icon : Paper.classification -> Htmlit.El.html
val classification_filter_box : total:int -> counts:(Paper.classification * int) list -> Htmlit.El.html

Filter/stats sidebar for papers list page.

val compact_card : ctx:Arod.Ctx.t -> Bushel__.Bushel_paper.t -> Htmlit.El.html

Compact paper card for list view.

val papers_list : ctx:Arod.Ctx.t -> Htmlit.El.html * Htmlit.El.html

Full papers list page grouped by year, returns (article, sidebar).

val for_feed : ctx:Arod.Ctx.t -> Bushel__.Bushel_paper.t -> Htmlit.El.html

Paper entry for feeds.