1.33.1 JSON
Last updated
Last updated
The API described here is outdated. We recommend switching to the REST API.
The Goobi viewer has the option of providing metadata and images for selected records in a JSON document via URL calls in order to present them on a self-defined page, for example.
The metadata fields contained in the JSON document can be configured (in addition to statically defined fields such as image URLs):
The individual <field>
elements each define a metadata field and must contain the following attributes:
The API allows information on plants to be obtained as JSON records via a simple GET URL call. The data records of the hit set each consist of statically defined, as well as optional freely configurable fields.
The following static fields are always included:
In this mode, the data records are filtered using a self-defined Solr query.
In this mode, the data records are also filtered using a self-defined Solr query, but only the number of hits found is returned here.
Example
In timeline mode, a random selection of data records is delivered for a display in a timeline or time matrix.
The API allows you to send requests to the intranda standards data service or GND and to receive the standards data records as JSON objects.
Attribute
Description
luceneField
Name of the index field in the Solr index from which the value is read.
multivalue
(optional) If this attribute is set to true
, not only the first value found is copied to the JSON document, but all of them.
Field name
Content
id
Record identifier
title
Record title
dateCreated
Import date of the record into the Goobi viewer
collection
First collection entry for this record
thumbnailUrl
URL to the thumbnail image of the record in (if available) size 100x120px
mediumimage
URL to the thumbnail image of the record in (if available) size 600x500px
url
URL to the image view of
Parameter
Description
query
Solr query definition
count
Maximum number of data records to be delivered (-1
if no restriction desired)
offset
Hit offset (REST only; 0
for no offset)
sortField
Optional (may occur multiple times): Solr sort fields for the hit set ("-"
for empty value)
sortOrder
Sorting direction of the datasets for all fields from sortField. Possible values are desc
and asc
. Default value is asc
. ("-"
for empty value)
random
Optional: If the value is true, the hit set is sorted randomly. The default value is false
. ("-"
for empty value)
jsonFormat
Optional: Format of the JSON array. The only possible value is datecentric
. In this case, the records are grouped according to their import date. ("-"
for empty value)
Parameter
Description
query
Solr query definition
Parameter
Description
minYear / maxYear
Years from - to, from which data records are to be delivered
q
Definition of own Solr query, replaces minYear
/ maxYear
count
Optional: Maximum number of data records to be delivered; -1
if no restriction is desired
Parameter
Description
url
Escapte URL to the authority service
language
Optional language; "-"
if no preference is given