Septima.Search.DataApi.CvrSearcher

Extends Septima.Search.Searcher
CVR-søgning mod DataApi-postgrest

Options

NameTypeMandatoryDefault valueDescription
fetcherObjectYesSeptima.Search.DataApi.Fetcher instance
er_aktivbooleantrueHvilke skal medtages? Muligheder true, false, "*"
kommunekodestring'*'"*" Search all municipalities (Default)</br>Search specific municipalities eg. "0101" or "0101 0256"
hovedafdelingkodestring'*'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)
hovedgruppekodestring'*'CVR hovedgruppekode
gruppekodestring'*'CVR gruppekode
undergruppekodestring'*'CVR undergruppekode
branchekodestring'*'CVR branchekode
cvrnummerstring'*'CVR numre f.eks.: '26259495 34900841' (bliver kun brugt i søgning på p-enheder)
goalstring"*"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);