kortinfo.KortInfoSearcher
Extends Septima.Search.Searcher
dd
Options
Name | Type | Mandatory | Default value | Description |
---|
Examples
Usage
YAML Declaration: <a href='../examples/kortinfisearcher/'>Example</a>
kortinfosearcher:
_type: Septima.Search.KortInfoSearcher
_options:
host: https://kortinfotest.hofor.dk/Feature.aspx?Site=HOFOR&Page=HOFOR_DK_Generelt&UserName=hofor_dk&Password=XX&LoginType=KortInfo
minimumShowCount: 3
targets:
- layer: TL22220
singular: Ledning
plural: Ledninger
featuretype: TL22220
UID: ID
title: ID
description: EJERNAVN
- layer: TL22218
singular: Projekt
plural: Projekter
featuretype: TL22218
UID: AD_ID_KOMBINERET
title: Projektnavn
description: Projektnavn
detailhandlers:
- _type: Septima.Search.KortInfoProvider
_options:
fields:
TL22220:
- name: MATERIALE
displayname: Materiale
- name: TRYKTYPE
displayname: Tryktype
- name: STATUS
displayname: Status
TL22218:
- name: "Projektnr."
displayname: Projektnr
- name: "Status"
displayname: "STATUS"
JS options:
options = {
};
js client:
// Include septimaSearch
<script type="text/javascript" src="http://search.cdn.septima.dk/{version}/septimasearch.min.js"/>
controller.addSearcher(new Septima.Search.KortInfoSearcher(options))
ES6:
import KortInfoSearcher from './searchers/KortInfoSearcher.js'
controller.addSearcher(new KortInfoSearcher(options))