1.33.1 JSON
The API described here is outdated. We recommend switching to the REST API.
General
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.
Configuration
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:
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 |
Usage
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:
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 |
Query
In this mode, the data records are filtered using a self-defined Solr query.
Example
Parameter | Description |
query | Solr query definition |
count | Maximum number of data records to be delivered ( |
offset | Hit offset (REST only; |
sortField | Optional (may occur multiple times): Solr sort fields for the hit set ( |
sortOrder | Sorting direction of the datasets for all fields from sortField. Possible values are |
random | Optional: If the value is true, the hit set is sorted randomly. The default value is |
jsonFormat | Optional: Format of the JSON array. The only possible value is |
Count
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
Parameter | Description |
query | Solr query definition |
Timeline
In timeline mode, a random selection of data records is delivered for a display in a timeline or time matrix.
Call with time span
Example
Calling with your own Solr Query
Example
Parameter | Description |
minYear / maxYear | Years from - to, from which data records are to be delivered |
q | Definition of own Solr query, replaces |
count | Optional: Maximum number of data records to be delivered; |
Authority data
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.
Example
Parameter | Description |
url | Escapte URL to the authority service |
language | Optional language; |
Last updated