Warning: This page has not been updated in over over a year and may be outdated or deprecated.
development:architecture:record_data_formatter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
development:architecture:record_data_formatter [2023/11/17 19:11] – [Option 1: Use Configuration] demiankatz | development:architecture:record_data_formatter [2023/12/11 16:11] (current) – [Option 2: Override the Factory] Add example of re-ordering spec array dltj | ||
---|---|---|---|
Line 71: | Line 71: | ||
==== Option 2: Override the Factory ==== | ==== Option 2: Override the Factory ==== | ||
- | If you want to make global changes to a specification, | + | If you want to make global changes to a specification, |
+ | <code PHP> | ||
+ | class RecordDataFormatterFactory extends \VuFind\View\Helper\Root\RecordDataFormatterFactory | ||
+ | { | ||
+ | public function getDefaultCoreSpecs() | ||
+ | { | ||
+ | $spec = new SpecBuilder(parent:: | ||
+ | $specArray = $spec-> | ||
+ | $specArray[' | ||
+ | $specArray[' | ||
+ | return $specArray; | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | In the parent:: | ||
==== Option 3: Override the Template ==== | ==== Option 3: Override the Template ==== | ||
development/architecture/record_data_formatter.1700248271.txt.gz · Last modified: 2023/11/17 19:11 by demiankatz