Septima.Search.Details
Extends Septima.Search.DetailsHandlerDef
Generic details handler - formats properties of result.data to detailitems
Options
Name | Type | Mandatory | Default value | Description |
---|---|---|---|---|
details | Object | Yes | detail items. Fields containing "$." are replaced with result.data property values | |
asList | string | true | ||
more | string | true | ||
meta | string | detailItem, som repræsenterer metadata |
Examples
Usage
YAML Declaration
dawa:
_type: Septima.Search.DawaSearcher
_options:
resultTypes:
adresse:
singular: Adresse
plural: Adresser
detailhandlers:
- _type: Septima.Search.Details
_options:
buttonText: Info vha. Septima.Search.Details
details:
- type: labelvalue
label: id
value: $.properties.id
- type: labelvalue
label: ligger i postnr
value: {$.properties.postnummer.nr["Ikke angivet"]} {$.properties.postnummer.navn[""]}
- type: link
linkTitle: JSON fra DAWA
link: https://api.dataforsyningen.dk/adgangsadresser/{$.properties.id}
- type: "result"
label: "Administrator"
result:
searcher:
_ref: $.searchers.dataapi.cvr
type: virksomhed
id: $.properties.CVR_kode