Skip to main content

Module values

Module values 

Source
Expand description

Template value resolution and formatting helpers. Value extraction for template components.

This module provides the logic to extract formatted values from references based on template component specifications.

Re-exports§

pub use contributor::format_contributors_short;
pub use date::int_to_letter;

Modules§

contributor
Contributor extraction and name-formatting helpers. Rendering logic for contributors (authors, editors, translators).
date
Date extraction and date-formatting helpers. Rendering logic for date fields with locale-aware formatting.
list
List-component value extraction helpers. Rendering logic for list components with configurable delimiters.
locator
Locator rendering logic. Locator rendering logic for citations.
number
Numeric variable extraction and page-range helpers. Rendering logic for numeric variables (volume, issue, pages, citation numbers, etc.).
range
Shared helpers for collapsing consecutive numeric or ordinal numbering. Shared helpers for collapsing ordered consecutive numbering into spans.
term
Locale term resolution helpers. Rendering logic for localized term components.
text_case
Title text-case transform functions. Title text-case transforms.
title
Title extraction and title-formatting helpers. Rendering logic for title fields with smartening, form selection, and text-case transforms.
variable
Generic variable extraction helpers. Rendering logic for simple variables (DOI, URL, ISBN, etc.).

Structs§

ProcHints
Processing hints computed before rendering a reference or citation item.
ProcValues
Processed values ready for rendering.
RenderOptions
Options for rendering.

Enums§

RenderContext
Context for rendering (citation vs bibliography).

Traits§

ComponentValues
Trait for extracting values from template components.

Functions§

apply_abbreviation
Apply abbreviation substitution if the map contains an entry for value.
effective_component_language
Resolve the effective language for the specific template component being rendered.
effective_field_language
Resolve the effective language for one logical field scope on a reference.
effective_item_language
Resolve the effective language for the primary title of a reference.
resolve_effective_url
Resolve the effective URL for a component, checking local links then falling back to global config.
resolve_multilingual_name
Resolve a multilingual contributor name based on style configuration.
resolve_multilingual_string
Resolve a multilingual string based on style configuration.
resolve_url
Resolve the URL for a component based on its links configuration and the reference data.
should_strip_periods
Check if periods should be stripped based on three-tier precedence.
strip_trailing_periods
Strip trailing periods from a string.