Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gubi/3ea204ed1d6a4b83f99c to your computer and use it in GitHub Desktop.
Save gubi/3ea204ed1d6a4b83f99c to your computer and use it in GitHub Desktop.
{
paging: {
step: 50,
total: 3,
},
table: {
params: {
description_tooltip: "true",
filter_addon: "false",
paging_buttons: {
placement: ["top", "bottom"],
buttons: {
first: "true",
previous: "true",
current: {
input: "true",
step: 0
}
next: "true",
last: "true"
}
}
},
cols: {
0: {
label: "Unit number",
description: "This number is the <em>unique identifier of the unit</em> described. This number <em>should not be duplicated or reassigned to another unit</em>."
},
1: {
label: "Unit data collection date",
description: "Date in which the <em>unit data was collected</em>, the date should be expressed in <kbd>YYYYMMDD</kbd> format, where day and month may be omitted."
},
2: {
label: "Country",
description: "This attribute holds the <em>enumerated value</em> describing the location <em>country</em>. For historical reasons legacy countries are included."
},
3: {
label: "Primary administrative unit",
description: "This attribute holds the <em>name of the primary administrative unit</em> below the country."
},
4: {
label: "Secondary administrative unit",
description: "This attribute holds the <em>name of the secondary administrative unit</em> below the primary administrative unit."
},
5: {
label: "Lowest administrative unit",
description: "This attribute holds the <em>name of the lowest administrative unit</em>, or <em>local name</em> of the location."
},
},
rows: {
0: {
cells: {
0: {
label: "BEL00013",
description: "..."
},
1: {
label: "",
description: ""
},
2: {
label: "Belgium",
description: "..."
},
3: {
label: "West-Vlaanderen",
description: "..."
},
4: {
label: "",
description: ""
},
5: {
label: "Ieper",
description: "..."
}
}
data: {
domain: "Forest",
authority: "BEL",
identifier: "00013",
reference_version_or_date: 1999
position: {
type: "Point",
coordinates: [2.9495286944444,50.840473222222]
},
registered_time: {
sec: 1402611750,
usec: 226000
},
country: "Belgium",
primary_administrative_unit: "West-Vlaanderen",
lowest_administrative_unit: "Ieper",
locality: "Hoge Bos",
minimum_elevation: 45,
maximum_elevation: 45,
datum: "WGS-84",
decimal_latitude: 50.840473222222,
decimal_longitude: 2.9495286944444,
coordinates_restricted: "false",
unit_number: "BEL00013",
national_unit_number: "5VB1001",
surface_area_of_the unit: 1.3,
ownership_type_of_the_unit: "Public"
type_and_function_of_the_unit: "Gene reserve forest, Seed stand, Forest area managed for wood production and /or multiple uses and services",
date_of_the_most_recent_visit: 2000
}
},
1: {
...
}
}
}
}
@milko
Copy link

milko commented Jun 17, 2014

The elements of the following array are defined as follows:

- kAPI_PARAM_RESPONSE_FRMT_NAME: This element holds the data property name or label.
- kAPI_PARAM_RESPONSE_FRMT_INFO: This element holds the data property information or
                                 description.
- kAPI_PARAM_RESPONSE_FRMT_DISP: This element holds the data property display string, or
                                 list of display elements.
- kAPI_PARAM_RESPONSE_FRMT_LINK: This element holds the URL for properties that
                                 represent an internet link.
- kAPI_PARAM_RESPONSE_FRMT_SERV: If the property is an object reference, this element
                                 holds the list of parameters that can be used to call
                                 the service that will retrieve the data of the
                                 referenced object.
- kAPI_PARAM_RESPONSE_FRMT_SMAP: If the property is a shape, this element holds the list
                                 of parameters that can be used to call the service that
                                 will retrieve the marker information corresponding to
                                 the current shape.
- kAPI_PARAM_RESPONSE_FRMT_DOCU: If the property is a struct, this element holds the
                                 sub-document nested structure.
[results] => Array
    (
        [:domain:forest://AUT/00023/1990;] => Array
            (
                [24] => Array   // Scalar
                    (
                        [kAPI_PARAM_RESPONSE_FRMT_TYPE] => kAPI_PARAM_RESPONSE_TYPE_SCALAR
                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Unit number
                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => This number is the unique identifier of the unit described. This number should not be duplicated or reassigned to another unit.
                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => AUT00023
                    )

                [25] => Array   // List of scalars
                    (
                        [kAPI_PARAM_RESPONSE_FRMT_TYPE] => kAPI_PARAM_RESPONSE_TYPE_SCALAR
                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Unit number
                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => This number is the unique identifier of the unit described. This number should not be duplicated or reassigned to another unit.
                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Array
                            (
                                [0] => AUT00023
                                [1] => AUT00022
                            )
                    )

                [43] => Array   // URL
                    (
                        [kAPI_PARAM_RESPONSE_FRMT_TYPE] => kAPI_PARAM_RESPONSE_TYPE_LINK
                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Accession URL
                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => The original information held at the responsible institute.
                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => View
                        [kAPI_PARAM_RESPONSE_FRMT_LINK] => http://the.accession/123
                    )

                [32] => Array   // List of URLs
                    (
                        [kAPI_PARAM_RESPONSE_FRMT_TYPE] => kAPI_PARAM_RESPONSE_TYPE_LINK
                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Accession URLs
                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => The original information held at the responsible institute.
                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Array
                            (
                                [0] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Main
                                        [kAPI_PARAM_RESPONSE_FRMT_LINK] => http://the.accession/123
                                    )

                                [1] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Secondary
                                        [kAPI_PARAM_RESPONSE_FRMT_LINK] => http://the.accession/234
                                    )

                                [2] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => http://the.accession/234
                                        [kAPI_PARAM_RESPONSE_FRMT_LINK] => http://the.accession/234
                                    )
                            )
                    )

                [22] => Array   // Enumeration
                    (
                        [kAPI_PARAM_RESPONSE_FRMT_TYPE] => kAPI_PARAM_RESPONSE_TYPE_ENUM
                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Country
                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => This attribute holds the enumerated value describing the location country. For historical reasons legacy countries are included.
                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Array
                            (
                                [kAPI_PARAM_RESPONSE_FRMT_DISP] => Austria
                                [kAPI_PARAM_RESPONSE_FRMT_INFO] => Republic of Austria
                            )

                    )

                [33] => Array   // Enumerated set
                    (
                        [kAPI_PARAM_RESPONSE_FRMT_TYPE] => kAPI_PARAM_RESPONSE_TYPE_ENUM
                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Type and function of the unit
                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Array
                            (
                                [0] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Gene reserve forest
                                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => A forest that is a gene reserve.
                                    )

                                [1] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Forest area managed for wood production and /or multiple uses and services
                                    )

                            )

                    )

                [56] => Array   // Typed list (single)
                    (
                        [kAPI_PARAM_RESPONSE_FRMT_TYPE] => kAPI_PARAM_RESPONSE_TYPE_TYPED
                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Telephone numbers
                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => This attribute holds the list of telephone numbers.
                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Array
                            (
                                [kAPI_PARAM_RESPONSE_FRMT_NAME] => Work
                                [kAPI_PARAM_RESPONSE_FRMT_DISP] => +44 71 8792531
                            )

                    )

                [56] => Array   // Typed list
                    (
                        [kAPI_PARAM_RESPONSE_FRMT_TYPE] => kAPI_PARAM_RESPONSE_TYPE_TYPED
                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Telephone numbers
                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => This attribute holds the list of telephone numbers.
                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Array
                            (
                                [0] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Work
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => +44 71 8792531
                                    )

                                [1] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Home
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => +44 71 8792531
                                    )

                                [2] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => +44 71 8792531
                                    )

                            )

                    )

                [57] => Array   // Language strings
                    (
                        [kAPI_PARAM_RESPONSE_FRMT_TYPE] => kAPI_PARAM_RESPONSE_TYPE_TYPED
                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Names
                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => This attribute holds a list of names expressed in different languages.
                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Array
                            (
                                [0] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Tree
                                    )

                                [1] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => it
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Albero
                                    )

                                [2] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => fr
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Arbre
                                    )

                            )

                    )

                [99] => Array   // Object reference
                    (
                        [kAPI_PARAM_RESPONSE_FRMT_TYPE] => kAPI_PARAM_RESPONSE_TYPE_OBJECT
                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Holding institute
                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => The institute holding the accession.
                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Bioversity International
                        [kAPI_PARAM_RESPONSE_FRMT_SERV] => Array
                            (
                                kAPI_REQUEST_OPERATION => kAPI_OP_GET_UNIT
                                kAPI_REQUEST_LANGUAGE => 'en',
                                kAPI_REQUEST_PARAMETERS => Array
                                    (
                                        kAPI_PARAM_ID => ':domain:organisation/ITA303;'
                                        kAPI_PARAM_DATA => kAPI_RESULT_ENUM_DATA_FORMAT
                                    )
                            )
                    )

                [98] => Array   // Object references list
                    (
                        [kAPI_PARAM_RESPONSE_FRMT_TYPE] => kAPI_PARAM_RESPONSE_TYPE_OBJECT
                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Holding institutes
                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => The institutes holding the accession.
                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Array
                            (
                                [0] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => IPGRI
                                        [kAPI_PARAM_RESPONSE_FRMT_SERV] => Array
                                            (
                                                kAPI_REQUEST_OPERATION => kAPI_OP_GET_UNIT
                                                kAPI_REQUEST_LANGUAGE => 'en',
                                                kAPI_REQUEST_PARAMETERS => Array
                                                    (
                                                        kAPI_PARAM_ID => ':domain:organisation/ITA303;'
                                                        kAPI_PARAM_DATA => kAPI_RESULT_ENUM_DATA_FORMAT
                                                    )
                                            )
                                    )

                                [1] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Bioversity International
                                        [kAPI_PARAM_RESPONSE_FRMT_SERV] => Array
                                            (
                                                kAPI_REQUEST_OPERATION => kAPI_OP_GET_UNIT
                                                kAPI_REQUEST_LANGUAGE => 'en',
                                                kAPI_REQUEST_PARAMETERS => Array
                                                    (
                                                        kAPI_PARAM_ID => ':domain:organisation/ITA403;'
                                                        kAPI_PARAM_DATA => kAPI_RESULT_ENUM_DATA_FORMAT
                                                    )
                                            )
                                    )
                            )
                    )

                [101] => Array  // Shape
                    (
                        [kAPI_PARAM_RESPONSE_FRMT_TYPE] => kAPI_PARAM_RESPONSE_TYPE_SHAPE
                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Location
                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => View location on map.
                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => View on map
                        [kAPI_PARAM_RESPONSE_FRMT_SERV] => Array
                            (
                                kAPI_REQUEST_OPERATION => kAPI_OP_GET_UNIT
                                kAPI_REQUEST_LANGUAGE => 'en',
                                kAPI_REQUEST_PARAMETERS => Array
                                    (
                                        kAPI_PARAM_ID => ':domain:organisation/ITA303;'
                                        kAPI_PARAM_DATA => kAPI_RESULT_ENUM_DATA_MARKER
                                    )
                            )
                    )

                [102] => Array  // Struct
                    (
                        [kAPI_PARAM_RESPONSE_FRMT_TYPE] => kAPI_PARAM_RESPONSE_TYPE_STRUCT
                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Structure
                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => This is a structure.
                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Larix decidua
                        [kAPI_PARAM_RESPONSE_FRMT_DOCU] => Array
                            (
                                [163] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Scientific name
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Larix decidua
                                    )

                                [245] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Last visit date
                                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => Date of the most recent visit.
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => 1990
                                    )

                            )

                    )

                [struct-list] => Array
                    (
                        [kAPI_PARAM_RESPONSE_FRMT_TYPE] => kAPI_PARAM_RESPONSE_TYPE_STRUCT
                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Unit populations
                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => Information on population target species growing in the unit.
                        [kAPI_PARAM_RESPONSE_FRMT_DOCU] => Array
                            (
                                [0] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Larix decidua
                                        [kAPI_PARAM_RESPONSE_FRMT_DOCU] => Array
                                            (
                                                [163] => Array
                                                    (
                                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Scientific name
                                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Larix decidua
                                                    )

                                                [245] => Array
                                                    (
                                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Last visit date
                                                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => Date of the most recent visit.
                                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => 1990
                                                    )

                                                [246] => Array
                                                    (
                                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Population status
                                                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => Status of the target tree population regarding the EUFORGEN common action plans.
                                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Array
                                                            (
                                                                [kAPI_PARAM_RESPONSE_FRMT_NAME] => Pending
                                                            )

                                                    )

                                                [247] => Array
                                                    (
                                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Category of the population
                                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Array
                                                            (
                                                                [kAPI_PARAM_RESPONSE_FRMT_NAME] => In situ
                                                            )

                                                    )

                                                [248] => Array
                                                    (
                                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Origin of the material
                                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Array
                                                            (
                                                                [kAPI_PARAM_RESPONSE_FRMT_NAME] => Autochthonous
                                                            )

                                                    )

                                                [249] => Array
                                                    (
                                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Predominant silvicultural system
                                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Array
                                                            (
                                                                [kAPI_PARAM_RESPONSE_FRMT_NAME] => Clear-cutting with natural regeneration
                                                                [kAPI_PARAM_RESPONSE_FRMT_INFO] => Seed trees or strips.
                                                            )

                                                    )
                                            )
                                    )

                                [1] => Array
                                    (
                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Larix decidua
                                        [kAPI_PARAM_RESPONSE_FRMT_DOCU] => Array
                                            (
                                                [163] => Array
                                                    (
                                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Scientific name
                                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Picea abies
                                                    )

                                                [245] => Array
                                                    (
                                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Last visit date
                                                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => Date of the most recent visit.
                                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => 1990
                                                    )

                                                [246] => Array
                                                    (
                                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Population status
                                                        [kAPI_PARAM_RESPONSE_FRMT_INFO] => Status of the target tree population regarding the EUFORGEN common action plans.
                                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Array
                                                            (
                                                                [kAPI_PARAM_RESPONSE_FRMT_NAME] => Pending
                                                            )

                                                    )

                                                [247] => Array
                                                    (
                                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Category of the population
                                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Array
                                                            (
                                                                [kAPI_PARAM_RESPONSE_FRMT_NAME] => In situ
                                                            )

                                                    )

                                                [248] => Array
                                                    (
                                                        [kAPI_PARAM_RESPONSE_FRMT_NAME] => Origin of the material
                                                        [kAPI_PARAM_RESPONSE_FRMT_DISP] => Array
                                                            (
                                                                [kAPI_PARAM_RESPONSE_FRMT_NAME] => Autochthonous
                                                            )

                                                    )
                                            )
                                    )

                            )

                    )

            )

    )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment