searchEadDoclist

From Archives Portal Europe Wiki
Revision as of 12:00, 5 June 2017 by Admin (Talk | contribs)

Jump to: navigation, search

Request url: https://api.archivesportaleurope.net/services/search/ead/docList. This service is a POST-request.

This search service delivers a list of Finding Aids, Holding Guides or Source Guides that contain archival descriptions with the requested searchterm. The docList-service can be viewed as the resultlist of the search-service, where the results are grouped by fa, hg or sg. A web developer is able to filter results on various facets.



Request parameters

Several request parameters can be used to do a search in archival descriptions.

Empty Request example:

{
  "count": "5",
  "startIndex": 0,
  "query": "*",
  "docType": "string",
  "filters": [
    {
      "facetFieldName": "string",
      "facetFieldIds": [
        "string"
      ]
    }
  ],
  "dateFilters": [
    {
      "dateFieldName": "string",
      "dateFieldId": "string"
    }
  ]
}

Basic Request example:

{
  "count": "5",
  "startIndex": 0,
  "query": "nepal",
  "docType": "fa",
  "filters": [
    {
      "facetFieldName": "country",
      "facetFieldIds": [
        "7"
      ]
    }
  ],
  "dateFilters": [
    {
      "dateFieldName": "fromDate",
      "dateFieldId": "1800-01-01_2"
    }
  ]
}

This example searches for finding aids ("fa") with the term "nepal" and filters on the facet "country" with id = 7 (identifier for "NETHERLANDS") and date-facet "fromDate" with id = "1800-01-01_2" (identifier for the period 1800-1999).

count

The resultlist is delivered in chunks of a certain size. Request parameter "count" describes the number of results that are in one chunk. Optional. Default value is 5.

startIndex

Request parameter "startIndex" enables you to select the results that you want to have. Counting starts at zero. If "count" = 5, the second chunk starts with startIndex 5, the following at startIndex 10, etc. Optional. Default value is 0.

query

Containing the searchterm(s). Required.

docType

Defining on which type of EAD document the search should be performed: finding aids ("fa"), holdings guide ("hg") or source guide ("sg").

filters

Request parameter "filters" enables you to filter the result on facets. The facets are summarized in searchEadDoclist#facets.

dateFilters

Request parameters "dateFilters" enables you to filter the result on a certain period of time. The dateFacets are summarized in searchEadDoclist#date_facets

Response parameters

The response contains a list of the finding aids where the requested search-term(s) was/were found.

Empty Response example:

{
  "totalResults": 0,
  "startIndex": 0,
  "totalPages": 0,
  "totalDocs": 0,
  "eadDocList": [
    {
      "id": "string",
      "fondsUnitTitle": "string",
      "numberOfResults": 0,
      "repository": "string",
      "country": "string",
      "language": "string",
      "repositoryCode": "string",
      "fondsUnitId": "string",
      "unitDate": "string",
      "scopeContent": "string",
      "numberOfDigitalObjects": 0,
      "numberOfDigitalObjectsInDescendents": 0,
      "numberOfDescendents": 0
    }
  ],
  "facetFields": {
    "country": [
      {
        "id": "string",
        "name": "string",
        "frequency": 0
      }
    ],
    "subject": [
      {
        "id": "string",
        "name": "string",
        "frequency": 0
      }
    ],
    "repository": [
      {
        "id": "string",
        "name": "string",
        "frequency": 0
      }
    ],
    "docType": [
      {
        "id": "string",
        "name": "string",
        "frequency": 0
      }
    ],
    "level": [
      {
        "id": "string",
        "name": "string",
        "frequency": 0
      }
    ],
    "hasDigitalObject": [
      {
        "id": "string",
        "name": "string",
        "frequency": 0
      }
    ],
    "digitalObjectType": [
      {
        "id": "string",
        "name": "string",
        "frequency": 0
      }
    ],
    "unitDateType": [
      {
        "id": "string",
        "name": "string",
        "frequency": 0
      }
    ]
  },
  "facetDateFields": {
    "fromDate": [
      {
        "id": "string",
        "name": "string",
        "frequency": 0
      }
    ],
    "toDate": [
      {
        "id": "string",
        "name": "string",
        "frequency": 0
      }
    ]
  }
}

Basic Response example (ie response for the basic request example above):

{
  "totalResults": 1,
  "startIndex": 0,
  "totalPages": 1,
  "totalDocs": 1,
  "eadDocList": [
    {
      "id": "F379215",
      "fondsUnitTitle": "Inventaris van de archieven van de Stichting Aids Fonds - Soa Aids Nederland, de Stichting STOP AIDS NOW! en de Stichting Werkmaatschappij Soa Aids en hun taakvoorgangers, 1914- 2008 (2011)",
      "numberOfResults": 1,
      "repository": "Nationaal Archief",
      "country": "NETHERLANDS",
      "language": "",
      "repositoryCode": "NL-HaNA",
      "fondsUnitId": "2.19.225",
      "unitDate": "1994",
      "scopeContent": "",
      "numberOfDigitalObjects": 0,
      "numberOfDigitalObjectsInDescendents": 0,
      "numberOfDescendents": 0
    }
  ],
  "facetFields": {
    "country": [
      {
        "id": "7",
        "name": "NETHERLANDS",
        "frequency": 1
      }
    ],
    "subject": [],
    "repository": [
      {
        "id": "32171",
        "name": "Nationaal Archief",
        "frequency": 1
      }
    ],
    "docType": [
      {
        "id": "fa",
        "name": "fa",
        "frequency": 1
      }
    ],
    "level": [
      {
        "id": "clevel",
        "name": "clevel",
        "frequency": 1
      }
    ],
    "hasDigitalObject": [
      {
        "id": "false",
        "name": "false",
        "frequency": 1
      }
    ],
    "digitalObjectType": [],
    "unitDateType": [
      {
        "id": "normal",
        "name": "normal",
        "frequency": 1
      }
    ]
  },
  "facetDateFields": {
    "fromDate": [
      {
        "id": "1980-01-01_3",
        "name": "1980-1999",
        "frequency": 1
      }
    ],
    "toDate": [
      {
        "id": "1800-01-01_2",
        "name": "1800-1999",
        "frequency": 1
      }
    ]
  }
}

totalResults

The response parameter "totalResults" gives the number of results in Descriptive Units. The totalDocs gives the number of findings aids, holding guides or source guides in which the search term was found.

startIndex

The response parameter "startIndex" gives the number of the chunk you requested.

totalPages

The response parameter "totalPages" gives the number of chunks.

totalDocs

The response parameter totalDocs gives the number of findings aids, holding guides or source guides in which the search term was found.

eadDocList

Enumeration of the results. All response parameters are optional, except for "id".

id Internal APE identifier of the result
fondsUnitTitle Title of the finding aid.
numberOfResults Number of clevels of this finding aid, holdingsguide or sourceguide containing the searchterm.
repository Name of the repository holding the fonds
country Name of the country where the repository is. In English.
language Language of the description of the result.
repositoryCode Code of the repository holding the fonds. Preferably, but not necessarily ISIL.
fondsUnitId Identifier of the fonds provided by the repository
unitDate Date of creation of the result
scopeContent More descriptive information about the result
numberOfDigitalObjects Amount of digital objects available for the search result (is always 0 in case 'hasDigitalObject' = FALSE)
numberOfDigitalOjectsInDescendents Amount of digital objects available for descendents of the search result (can be > 0 in case 'hasDigtalObject' = FALSE)
numberOfDescendents Amount of descendents of the search result

facetFields

This response parameter gives an enumeration of facets. Every facet has three variables.

id Internal APE identifier of the value. Use this "id" in the filter request parameter.
name Human readable value (in English).
frequency The number of results of this facet containing the searchterm.

facets

country Name of the country where the repository is. In English.
subject Subject that is added to the archival description
repository Name of the repository holding the fonds
docType Type of archives describing document where the result is found : "fa" for Finding Aid, "hg" for Holdings Guide or "sg" for Source Guide.
level Type of result: "archdesc" for highest level description or "clevel" for subordinate components
hasDigitalObject TRUE/FALSE
digitalObjectType Type of the Object: most of the time: IMAGE
unitDateType Type of date describing the archival unit.

date facets

With the date facets you can zoom in on the period of time. Results are grouped in periods of two centuries in the first step. If you use these groupings in the request-parameter dateFilter, you'll have new dateFacets that groups the results into groups of two decades

fromDate Grouping of the search result in starting dates.
toDate Grouping of the search result in ending dates.