Septima.Search.DataApi.CvrSearcher
Extends Septima.Search.Searcher
CVR-søgning mod DataApi-postgrest
Options
| Name | Type | Mandatory | Default value | Description |
|---|---|---|---|---|
| fetcher | Object | Yes | Septima.Search.DataApi.Fetcher instance | |
| er_aktiv | boolean | true | Hvilke skal medtages? Muligheder true, false, "*" | |
| kommunekode | string | '*' | "*" Search all municipalities (Default)</br>Search specific municipalities eg. "0101" or "0101 0256" | |
| hovedafdelingkode | string | '*' | CVR hovedafdelingkode. Codes from bottom in hierarchy are used. If branchekode is present and not "*" it is used even if hovedafdelingkode is present (https://www.dst.dk/da/Statistik/dokumentation/nomenklaturer/db07) | |
| hovedgruppekode | string | '*' | CVR hovedgruppekode | |
| gruppekode | string | '*' | CVR gruppekode | |
| undergruppekode | string | '*' | CVR undergruppekode | |
| branchekode | string | '*' | CVR branchekode | |
| cvrnummer | string | '*' | CVR numre f.eks.: '26259495 34900841' (bliver kun brugt i søgning på p-enheder) | |
| goal | string | "*" | virksomhed, produktionsenhed, * What to search for |
Examples
Usage
YAML Declaration:
_type: Septima.Search.DataApi.CvrSearcher
_options:
fetcher:
_type: Septima.Search.DataApi.Fetcher
_options:
token: tttttttttttttt
token: tttttttttttttt
js client:
// Include septimaSearch
<script type="text/javascript" src="http://search.cdn.septima.dk/{version}/septimasearch.min.js"/>
var redataFetcher = new Septima.Search.DataApi.Fetcher({
token: "...."
})
var cvrSearcher = new Septima.Search.DataAPi.CvrSearcher({
fetcher: redataFetcher,
goal: "*",
kommunekode: "0101"
});
controller.addSearcher(cvrSearcher);