MARCcat API documentation version v1.4
https://github.com/folio-org/mod-marccat
MARCcat API
This documents the API calls for interacting with an marc authority or bibliographic record
/marccat
Entity representing a search
Return a list of marc records and search metadata
Delete search item with given {searchId}
Update search item with given {searchId}
get /marccat/search
Return a list of marc records and search metadata
Query Parameters
- offset: (integer - default: 0 - minimum: 0 - maximum: 2147483647)
Skip over a number of elements by specifying an offset value for the query
Example:
0
- limit: (integer - default: 10 - minimum: 0 - maximum: 2147483647)
Limit the number of elements returned in the response
Example:
10
- query: (string)
A query expressed as a CQL string (see dev.folio.org/reference/glossary#cql) using valid searchable fields. The first example below shows the general form of a full CQL query, but those fields might not be relevant in this context.
using CCL query in q parameter and choosing authority or bibliographic in view parameter
Example:
(username=="ab*" or personal.firstName=="ab*" or personal.lastName=="ab*") and active=="true" sortby personal.lastName personal.firstName barcode q=na "manzoni, alessandro"&view=1
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 200
Return a list of marc records and search metadata
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Search result",
"type": "object",
"description": "search metadata and result list",
"additionalProperties": false,
"properties": {
"searchingView": {
"description": "Type of record inside the result list. 1 for Bibliographic records, -1 for authority",
"type": "integer"
},
"displayQuery": {
"description": "query that produced result list",
"type": "string"
},
"from": {
"description": "Specifies an offset into a query’s result set to begin displaying results from this offset",
"type": "integer"
},
"to": {
"description": "Pagination properties. Specifies the end of offset into a query’s result set to stop displaying results",
"type": "integer"
},
"numFound": {
"description": "count of result founded",
"type": "integer"
},
"docs": {
"description": "result list",
"type": "array",
"items": {
"type": "object",
"properties": {
"recordView": {
"description": "record type. 1 for Bibliographic records, -1 for authority",
"type": "integer",
"pattern": "/[1,-1]{1}/"
},
"countDoc": {
"description": "count of bibliographic records associated to the current record",
"type": "integer"
},
"queryForAssociatedDoc": {
"description": "query to retrieve records associated to the current one",
"type": "string"
}
},
"tagHighlighted": {
"description": "list of tag in which query terms are present",
"type": "string"
},
"data": {
"description": "marc record",
"type": "object",
"properties": {
"leader": {
"description": "marc leader of the record",
"type": "string"
},
"fields": {
"description": "fields of record",
"type": "array",
"items": {
"type": "object",
"$ref": "field.json"
}
}
}
}
}
}
},
"metadata": {
"description": "Metadata about creation and changes to marc record, provided by the server (client should not provide)",
"type": "object",
"$ref": "../raml-storage/raml-util/schemas/metadata.schema"
}
}
Example:
{
"results": [
{
"searchingView": 1,
"displayQuery": "na \"manzoni\"",
"from": 1,
"to": 1,
"numFound": 1271,
"docs": [
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": "100, 245",
"data": {
"leader": "00000nam 2200000 i 4500",
"fields": [
{
"001": "000006570036"
},
{
"005": "20170216093555.0"
},
{
"008": "170216s19uu gw e 000 0 ger c"
},
{
"040": {
"subfields": [
{
"a": "IT-TrCB"
},
{
"b": "ita"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"300": {
"subfields": [
{
"a": "440 p."
},
{
"c": "20 cm"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"082": {
"subfields": [
{
"a": "853.7"
},
{
"2": "22"
}
],
"ind1": "0",
"ind2": " "
}
},
{
"997": {
"subfields": [
{
"a": "CBT-1-dv-ath-ma"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"700": {
"subfields": [
{
"a": "Langen, Adolf"
},
{
"t": "rl. "
}
],
"ind1": "1",
"ind2": " "
}
},
{
"700": {
"subfields": [
{
"a": "Bülow, Eduard von"
},
{
"t": "rl. "
}
],
"ind1": "1",
"ind2": " "
}
},
{
"100": {
"subfields": [
{
"a": "Manzoni, Alessandro"
},
{
"a": "ut. "
}
],
"ind1": "1",
"ind2": " "
}
},
{
"245": {
"subfields": [
{
"a": "Die Verlobten :"
},
{
"b": "eine mailänder Geschichte /"
},
{
"c": "von Alessandro Manzoni ; nach Eduard von Bülows uebersetzung neu bearbeitet von Adolf Langen"
}
],
"ind1": "0",
"ind2": "4"
}
},
{
"260": {
"subfields": [
{
"a": "Berlin :"
},
{
"b": "Schreitersche Verlagshandlung,"
},
{
"c": "[19--?]"
}
],
"ind1": " ",
"ind2": " "
}
}
]
}
}
]
}
]
}
HTTP status code 400
Bad request
Body
Media type: text/plain
Type: any
Example:
Required String parameter 'lang' is not present
HTTP status code 404
Item with a given ID not found
Body
Media type: text/plain
Type: any
Example:
"search not found"
HTTP status code 500
Internal server error
Body
Media type: text/plain
Type: any
Example:
Query not supported
delete /marccat/search
Delete search item with given {searchId}
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 204
Item deleted successfully
HTTP status code 400
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Body
Media type: text/plain
Type: any
Example:
"unable to delete search -- constraint violation"
HTTP status code 404
Item with a given ID not found
Body
Media type: text/plain
Type: any
Example:
"search not found"
HTTP status code 500
Internal server error, e.g. due to misconfiguration
Body
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
put /marccat/search
Update search item with given {searchId}
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Search result",
"type": "object",
"description": "search metadata and result list",
"additionalProperties": false,
"properties": {
"searchingView": {
"description": "Type of record inside the result list. 1 for Bibliographic records, -1 for authority",
"type": "integer"
},
"displayQuery": {
"description": "query that produced result list",
"type": "string"
},
"from": {
"description": "Specifies an offset into a query’s result set to begin displaying results from this offset",
"type": "integer"
},
"to": {
"description": "Pagination properties. Specifies the end of offset into a query’s result set to stop displaying results",
"type": "integer"
},
"numFound": {
"description": "count of result founded",
"type": "integer"
},
"docs": {
"description": "result list",
"type": "array",
"items": {
"type": "object",
"properties": {
"recordView": {
"description": "record type. 1 for Bibliographic records, -1 for authority",
"type": "integer",
"pattern": "/[1,-1]{1}/"
},
"countDoc": {
"description": "count of bibliographic records associated to the current record",
"type": "integer"
},
"queryForAssociatedDoc": {
"description": "query to retrieve records associated to the current one",
"type": "string"
}
},
"tagHighlighted": {
"description": "list of tag in which query terms are present",
"type": "string"
},
"data": {
"description": "marc record",
"type": "object",
"properties": {
"leader": {
"description": "marc leader of the record",
"type": "string"
},
"fields": {
"description": "fields of record",
"type": "array",
"items": {
"type": "object",
"$ref": "field.json"
}
}
}
}
}
}
},
"metadata": {
"description": "Metadata about creation and changes to marc record, provided by the server (client should not provide)",
"type": "object",
"$ref": "../raml-storage/raml-util/schemas/metadata.schema"
}
}
Example:
{
"results": [
{
"searchingView": 1,
"displayQuery": "na \"manzoni\"",
"from": 1,
"to": 1,
"numFound": 1271,
"docs": [
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": "100, 245",
"data": {
"leader": "00000nam 2200000 i 4500",
"fields": [
{
"001": "000006570036"
},
{
"005": "20170216093555.0"
},
{
"008": "170216s19uu gw e 000 0 ger c"
},
{
"040": {
"subfields": [
{
"a": "IT-TrCB"
},
{
"b": "ita"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"300": {
"subfields": [
{
"a": "440 p."
},
{
"c": "20 cm"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"082": {
"subfields": [
{
"a": "853.7"
},
{
"2": "22"
}
],
"ind1": "0",
"ind2": " "
}
},
{
"997": {
"subfields": [
{
"a": "CBT-1-dv-ath-ma"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"700": {
"subfields": [
{
"a": "Langen, Adolf"
},
{
"t": "rl. "
}
],
"ind1": "1",
"ind2": " "
}
},
{
"700": {
"subfields": [
{
"a": "Bülow, Eduard von"
},
{
"t": "rl. "
}
],
"ind1": "1",
"ind2": " "
}
},
{
"100": {
"subfields": [
{
"a": "Manzoni, Alessandro"
},
{
"a": "ut. "
}
],
"ind1": "1",
"ind2": " "
}
},
{
"245": {
"subfields": [
{
"a": "Die Verlobten :"
},
{
"b": "eine mailänder Geschichte /"
},
{
"c": "von Alessandro Manzoni ; nach Eduard von Bülows uebersetzung neu bearbeitet von Adolf Langen"
}
],
"ind1": "0",
"ind2": "4"
}
},
{
"260": {
"subfields": [
{
"a": "Berlin :"
},
{
"b": "Schreitersche Verlagshandlung,"
},
{
"c": "[19--?]"
}
],
"ind1": " ",
"ind2": " "
}
}
]
}
}
]
}
]
}
HTTP status code 204
Item successfully updated
HTTP status code 400
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Body
Media type: text/plain
Type: any
Example:
"unable to update search -- malformed JSON at 13:4"
HTTP status code 404
Item with a given ID not found
Body
Media type: text/plain
Type: any
Example:
"search not found"
HTTP status code 500
Internal server error, e.g. due to misconfiguration
Body
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Collection of mergedSearch items.
Return a list of marc records and search metadata
Create a new mergedSearch item.
get /marccat/mergedSearch
Return a list of marc records and search metadata
Query Parameters
- offset: (integer - default: 0 - minimum: 0 - maximum: 2147483647)
Skip over a number of elements by specifying an offset value for the query
Example:
0
- limit: (integer - default: 10 - minimum: 0 - maximum: 2147483647)
Limit the number of elements returned in the response
Example:
10
- query: (string)
A query expressed as a CQL string (see dev.folio.org/reference/glossary#cql) using valid searchable fields. The first example below shows the general form of a full CQL query, but those fields might not be relevant in this context.
using CCL query in q parameter
Example:
(username=="ab*" or personal.firstName=="ab*" or personal.lastName=="ab*") and active=="true" sortby personal.lastName personal.firstName barcode q=na "manzoni, alessandro"
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 200
Return a list of marc records and search metadata
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"description": "collection of search results",
"items": {
"type": "object",
"$ref": "searchResult.json"
}
}
Example:
{
"results": [
{
"searchingView": -1,
"displayQuery": "na \"manzoni\"",
"from": 1,
"to": 1,
"numFound": 0,
"docs": []
},
{
"searchingView": 1,
"displayQuery": "na \"manzoni\"",
"from": 1,
"to": 1,
"numFound": 1271,
"docs": [
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": "100, 245",
"data": {
"leader": "00000nam 2200000 i 4500",
"fields": [
{
"001": "000006570036"
},
{
"005": "20170216093555.0"
},
{
"008": "170216s19uu gw e 000 0 ger c"
},
{
"040": {
"subfields": [
{
"a": "IT-TrCB"
},
{
"b": "ita"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"300": {
"subfields": [
{
"a": "440 p."
},
{
"c": "20 cm"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"082": {
"subfields": [
{
"a": "853.7"
},
{
"2": "22"
}
],
"ind1": "0",
"ind2": " "
}
},
{
"997": {
"subfields": [
{
"a": "CBT-1-dv-ath-ma"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"700": {
"subfields": [
{
"a": "Langen, Adolf"
},
{
"t": "rl. "
}
],
"ind1": "1",
"ind2": " "
}
},
{
"700": {
"subfields": [
{
"a": "Bülow, Eduard von"
},
{
"t": "rl. "
}
],
"ind1": "1",
"ind2": " "
}
},
{
"100": {
"subfields": [
{
"a": "Manzoni, Alessandro"
},
{
"a": "ut. "
}
],
"ind1": "1",
"ind2": " "
}
},
{
"245": {
"subfields": [
{
"a": "Die Verlobten :"
},
{
"b": "eine mailänder Geschichte /"
},
{
"c": "von Alessandro Manzoni ; nach Eduard von Bülows uebersetzung neu bearbeitet von Adolf Langen"
}
],
"ind1": "0",
"ind2": "4"
}
},
{
"260": {
"subfields": [
{
"a": "Berlin :"
},
{
"b": "Schreitersche Verlagshandlung,"
},
{
"c": "[19--?]"
}
],
"ind1": " ",
"ind2": " "
}
}
]
}
}
]
}
]
}
HTTP status code 400
Bad request
Body
Media type: text/plain
Type: any
Example:
Required String parameter 'qbib' is not present
HTTP status code 401
Not authorized to perform requested action
Body
Media type: text/plain
Type: any
Example:
unable to list mergedSearch -- unauthorized
HTTP status code 500
Internal server error
Body
Media type: text/plain
Type: any
Example:
Query not supported
post /marccat/mergedSearch
Create a new mergedSearch item.
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Search result",
"type": "object",
"description": "search metadata and result list",
"additionalProperties": false,
"properties": {
"searchingView": {
"description": "Type of record inside the result list. 1 for Bibliographic records, -1 for authority",
"type": "integer"
},
"displayQuery": {
"description": "query that produced result list",
"type": "string"
},
"from": {
"description": "Specifies an offset into a query’s result set to begin displaying results from this offset",
"type": "integer"
},
"to": {
"description": "Pagination properties. Specifies the end of offset into a query’s result set to stop displaying results",
"type": "integer"
},
"numFound": {
"description": "count of result founded",
"type": "integer"
},
"docs": {
"description": "result list",
"type": "array",
"items": {
"type": "object",
"properties": {
"recordView": {
"description": "record type. 1 for Bibliographic records, -1 for authority",
"type": "integer",
"pattern": "/[1,-1]{1}/"
},
"countDoc": {
"description": "count of bibliographic records associated to the current record",
"type": "integer"
},
"queryForAssociatedDoc": {
"description": "query to retrieve records associated to the current one",
"type": "string"
}
},
"tagHighlighted": {
"description": "list of tag in which query terms are present",
"type": "string"
},
"data": {
"description": "marc record",
"type": "object",
"properties": {
"leader": {
"description": "marc leader of the record",
"type": "string"
},
"fields": {
"description": "fields of record",
"type": "array",
"items": {
"type": "object",
"$ref": "field.json"
}
}
}
}
}
}
},
"metadata": {
"description": "Metadata about creation and changes to marc record, provided by the server (client should not provide)",
"type": "object",
"$ref": "../raml-storage/raml-util/schemas/metadata.schema"
}
}
Example:
{
"results": [
{
"searchingView": 1,
"displayQuery": "na \"manzoni\"",
"from": 1,
"to": 1,
"numFound": 1271,
"docs": [
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": "100, 245",
"data": {
"leader": "00000nam 2200000 i 4500",
"fields": [
{
"001": "000006570036"
},
{
"005": "20170216093555.0"
},
{
"008": "170216s19uu gw e 000 0 ger c"
},
{
"040": {
"subfields": [
{
"a": "IT-TrCB"
},
{
"b": "ita"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"300": {
"subfields": [
{
"a": "440 p."
},
{
"c": "20 cm"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"082": {
"subfields": [
{
"a": "853.7"
},
{
"2": "22"
}
],
"ind1": "0",
"ind2": " "
}
},
{
"997": {
"subfields": [
{
"a": "CBT-1-dv-ath-ma"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"700": {
"subfields": [
{
"a": "Langen, Adolf"
},
{
"t": "rl. "
}
],
"ind1": "1",
"ind2": " "
}
},
{
"700": {
"subfields": [
{
"a": "Bülow, Eduard von"
},
{
"t": "rl. "
}
],
"ind1": "1",
"ind2": " "
}
},
{
"100": {
"subfields": [
{
"a": "Manzoni, Alessandro"
},
{
"a": "ut. "
}
],
"ind1": "1",
"ind2": " "
}
},
{
"245": {
"subfields": [
{
"a": "Die Verlobten :"
},
{
"b": "eine mailänder Geschichte /"
},
{
"c": "von Alessandro Manzoni ; nach Eduard von Bülows uebersetzung neu bearbeitet von Adolf Langen"
}
],
"ind1": "0",
"ind2": "4"
}
},
{
"260": {
"subfields": [
{
"a": "Berlin :"
},
{
"b": "Schreitersche Verlagshandlung,"
},
{
"c": "[19--?]"
}
],
"ind1": " ",
"ind2": " "
}
}
]
}
}
]
}
]
}
HTTP status code 201
Returns a newly created item, with server-controlled fields like 'id' populated
Headers
- Location: required(string)
URI to the created mergedSearch item
Body
Media type: application/json
Type: any
Example:
{
"results": [
{
"searchingView": 1,
"displayQuery": "na \"manzoni\"",
"from": 1,
"to": 1,
"numFound": 1271,
"docs": [
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": "100, 245",
"data": {
"leader": "00000nam 2200000 i 4500",
"fields": [
{
"001": "000006570036"
},
{
"005": "20170216093555.0"
},
{
"008": "170216s19uu gw e 000 0 ger c"
},
{
"040": {
"subfields": [
{
"a": "IT-TrCB"
},
{
"b": "ita"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"300": {
"subfields": [
{
"a": "440 p."
},
{
"c": "20 cm"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"082": {
"subfields": [
{
"a": "853.7"
},
{
"2": "22"
}
],
"ind1": "0",
"ind2": " "
}
},
{
"997": {
"subfields": [
{
"a": "CBT-1-dv-ath-ma"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"700": {
"subfields": [
{
"a": "Langen, Adolf"
},
{
"t": "rl. "
}
],
"ind1": "1",
"ind2": " "
}
},
{
"700": {
"subfields": [
{
"a": "Bülow, Eduard von"
},
{
"t": "rl. "
}
],
"ind1": "1",
"ind2": " "
}
},
{
"100": {
"subfields": [
{
"a": "Manzoni, Alessandro"
},
{
"a": "ut. "
}
],
"ind1": "1",
"ind2": " "
}
},
{
"245": {
"subfields": [
{
"a": "Die Verlobten :"
},
{
"b": "eine mailänder Geschichte /"
},
{
"c": "von Alessandro Manzoni ; nach Eduard von Bülows uebersetzung neu bearbeitet von Adolf Langen"
}
],
"ind1": "0",
"ind2": "4"
}
},
{
"260": {
"subfields": [
{
"a": "Berlin :"
},
{
"b": "Schreitersche Verlagshandlung,"
},
{
"c": "[19--?]"
}
],
"ind1": " ",
"ind2": " "
}
}
]
}
}
]
}
]
}
HTTP status code 400
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Body
Media type: text/plain
Type: any
Example:
"unable to add mergedSearch -- malformed JSON at 13:3"
HTTP status code 401
Not authorized to perform requested action
Body
Media type: text/plain
Type: any
Example:
unable to create mergedSearch -- unauthorized
HTTP status code 500
Internal server error, e.g. due to misconfiguration
Body
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
Entity representing a searchVertical
Return a list of marc records in text formats
Delete searchVertical item with given {searchVerticalId}
Update searchVertical item with given {searchVerticalId}
get /marccat/searchVertical
Return a list of marc records in text formats
Query Parameters
- offset: (integer - default: 0 - minimum: 0 - maximum: 2147483647)
Skip over a number of elements by specifying an offset value for the query
Example:
0
- limit: (integer - default: 10 - minimum: 0 - maximum: 2147483647)
Limit the number of elements returned in the response
Example:
10
- query: (string)
A query expressed as a CQL string (see dev.folio.org/reference/glossary#cql) using valid searchable fields. The first example below shows the general form of a full CQL query, but those fields might not be relevant in this context.
using CCL query in q parameter and choosing authority or bibliographic in view parameter
Example:
(username=="ab*" or personal.firstName=="ab*" or personal.lastName=="ab*") and active=="true" sortby personal.lastName personal.firstName barcode q=na "manzoni, alessandro"&view=1
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 200
Return a list of marc records in text format
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Search result in marc text",
"type": "object",
"description": "search metadata and result list",
"additionalProperties": false,
"properties": {
"searchingView": {
"description": "Type of record inside the result list. 1 for Bibliographic records, -1 for authority",
"type": "integer"
},
"displayQuery": {
"description": "query that produced result list",
"type": "string"
},
"from": {
"description": "Specifies an offset into a query’s result set to begin displaying results from this offset",
"type": "integer"
},
"to": {
"description": "Pagination properties. Specifies the end of offset into a query’s result set to stop displaying results",
"type": "integer"
},
"numFound": {
"description": "count of result founded",
"type": "integer"
},
"docs": {
"description": "result list",
"type": "array",
"items": {
"type": "object",
"properties": {
"recordView": {
"description": "record type. 1 for Bibliographic records, -1 for authority",
"type": "integer",
"pattern": "/[1,-1]{1}/"
},
"countDoc": {
"description": "count of bibliographic records associated to the current record",
"type": "integer"
},
"queryForAssociatedDoc": {
"description": "query to retrieve records associated to the current one",
"type": "string"
}
},
"tagHighlighted": {
"description": "list of tag in which query terms are present",
"type": "string"
},
"data": {
"description": "marc record in text form",
"type": "string"
}
}
}
},
"metadata": {
"description": "Metadata about creation and changes to marc record, provided by the server (client should not provide)",
"type": "object",
"$ref": "../raml-storage/raml-util/schemas/metadata.schema"
}
}
Example:
{
"results": [
{
"searchingView": 1,
"displayQuery": "na \"manzoni\"",
"from": 1,
"to": 10,
"numFound": 1271,
"docs": [
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006570036\n005 20170216093555.0\n008 170216s19uu gw e 000 0 ger c\n040 $aIT-TrCB$bita\n300 $a440 p.$c20 cm\n082 0 $a853.7$222\n997 $aCBT-1-dv-ath-ma\n700 1 $aLangen, Adolf$trl. \n700 1 $aBülow, Eduard von$trl. \n100 1 $aManzoni, Alessandro$aut. \n245 04$aDie Verlobten :$beine mailänder Geschichte /$cvon Alessandro Manzoni ; nach Eduard von Bülows uebersetzung neu bearbeitet von Adolf Langen\n260 $aBerlin :$bSchreitersche Verlagshandlung,$c[19--?]\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006566570\n005 20170201093512.0\n008 170201s1921 it e 000 0 ita c\n040 $aIT-TrCB$bita\n300 $aXXXVI, 248 p., II p. di tav.$c18 cm\n997 $aCBT-1-dv-ath-ad\n082 0 $a852.7$222\n700 1 $aEgidi, Pietro$edt. \n100 1 $aManzoni, Alessandro$aut. \n245 00$aTragedie /$cAlessandro Manzoni ; introduzione e note di Pietro Egidi\n440 0$aCollezione di classici italiani con note$v38\n260 $aTorino :$bUTET,$c1921.\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006566436\n005 20170131144441.0\n008 170131s1921 it e 000 0 ita c\n040 $aIT-TrCB$bita\n300 $aXXX, 202 p., III p. di tav.$c18 cm\n997 $aCBT-1-dv-ath-ad\n082 0 $a851.7$222\n100 1 $aManzoni, Alessandro$aut. \n700 1 $aMomigliano, Attilio$edt. \n245 00$aLiriche /$cAlessandro Manzoni ; introduzione e note di Attilio Momigliano.\n440 0$aCollezione di classici italiani con note$v37\n260 $aTorino :$bUTET,$c1921.\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006562130\n005 20170111185039.0\n008 170111s2009 it j 000 0 ita c\n040 $aIT-TrCB$bita\n300 $a144 p.$bill.$c21 cm\n521 $aOPERA PER BAMBINI\n250 $aRist.\n500 $aNome del cur. dalla p. contro il front.\n505 2 $aCon apparato didattico\n082 1 $a853.7$214\n997 $aCBT-2-bct-mg\n020 $a9788883971747\n100 1 $aManzoni, Alessandro$aut. \n700 1 $aDattolico, Rosa$edt. \n700 1 $ill. $aDa Rold, Andrea\n245 02$aI promessi sposi /$cAlessandro Manzoni ; [a cura di Rosa Dattolico] ; illustrazioni di Andrea Da Rold\n440 2$aI supermangialibri.$pI classici\n260 $aCasoria (NA) :$bArdea Editrice,$c2009.\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006561957\n005 20170111115931.0\n008 170111s2006 it e 000 0 ita c\n040 $aIT-TrCB$bita\n300 $a2 v.$c18 cm\n505 0 $a1 : I promessi sposi (1827). - CIII, 989 p.\n505 0 $a2 : I promessi sposi (1840) ; Storia della colonna infame. - XLIV, 1253 p. : ill. - Ripr. facs. dell'ed.: Milano : Guglielmini e Redaelli, 1840; seguono Commento e indici\n250 $a2. ed.\n500 $aIn contenitore\n500 $aISBN dal contenitore\n997 $aCBT-2-bct-mg\n082 1 $a853.7$214\n020 $a880450417X\n700 1 $aPaccagnini, Ermanno$edt. \n700 1 $aNigro, Salvatore Silvano$edt. \n100 1 $aManzoni, Alessandro$aut. \n740 02$aStoria della colonna infame\n440 2$aI meridiani / [Mondadori]\n245 02$aI promessi sposi /$cAlessandro Manzoni ; saggio introduttivo, revisione del testo critico e commento a cura di Salvatore Silvano Nigro ; collaborazione di Ermanno Paccagnini per la Storia della colonna infame\n260 $aMilano :$bMondadori,$c2006.\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006561869\n005 20170111100126.0\n008 170111s1877 fr e 000 0 fre c\n040 $aIT-TrCB$bita\n300 $a747 p., [1] c. di tav.$c19 cm\n250 $aNouvelle éd. revue et complétée par les professeurs Martin et Pizzigoni\n082 0 $a853.7$222\n997 $aCBT-1-dv-ath-gp\n700 1 $aPizzigoni, Carlo$edt. \n700 1 $aRey Dusseuil, Antoine F.M.$trl. \n700 1 $aMartin, ...,$d19. sec.$edt. \n700 1 $aMontgrand, Jean-Baptiste-Jacques-Guy-Therese, marquis de$trl. \n100 1 $aManzoni, Alessandro$aut. \n245 04$aLes fiancés /$cA. Manzoni ; d'après les traductions de MM. de Montgrand et Rey-Dussueil\n246 0 $aI promessi sposi\n260 $aMilan :$bCarrara, Paul(IS),$c1877$aMilano :$bCarrara, Paolo\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006561680\n005 20170110142137.0\n008 170110s1888 fr e 000 0 fre c\n040 $aIT-TrCB$bita\n300 $a2 v. (XX, 404 ; 423 p.)$bill.$c19 cm\n250 $aNouvelle éd.\n082 0 $a853.7$222\n997 $aCBT-1-dv-ath-gp\n700 1 $ill. $aStaal, Gustave\n700 1 $aMontgrand, Jean-Baptiste-Jacques-Guy-Therese, marquis de$trl. \n100 1 $aManzoni, Alessandro$aut. \n246 0 $aI promessi sposi\n245 04$aLes fiancés :$bhistoire milanaise du XVIIme siècle /$cManzoni ; traduction nouvelle ... par le marquis de Montgrand ; avec des notes historiques et fac-similé de lettres de Manzoni à son traducteur ; nouvelles illustrations de Staal\n260 $aParis :$bGarnier frères,$c1888.\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006561646\n005 20170110132920.0\n008 170110s1869 it e 000 0 ita c\n040 $aIT-TrCB$bita\n300 $a123 p.$c20 cm\n082 0 $a450.$222\n997 $aCBT-1-dv-ath-gp\n100 1 $aManzoni, Alessandro$aut. \n245 00$aAppendice alla relazione intorno all'unità della lingua e ai mezzi di diffonderla /$cAlessandro Manzoni\n260 $aMilano :$bRechiedei,$c1869.\n650 4$aLingua italiana - Opere del 19. sec.\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006561627\n005 20170110125437.0\n008 170110s1885 it e 000 0 ita c\n040 $aIT-TrCB$bita\n300 $a306 p.$c20 cm\n082 0 $a858.702$222\n997 $aCBT-1-dv-ath-gp\n100 1 $aManzoni, Alessandro$aut. \n700 1 $aBindoni, Giuseppe$com. \n245 00$aSentenze e pensieri /$cdi Alessandro Manzoni ; raccolti da' suoi scritti e ordinati dal prof. Giuseppe Bindoni.\n260 $aTreviso :$bTurazza,$c1885.\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006561568\n005 20170110114215.0\n008 170110s1925 it e 000 0 ita c\n040 $aIT-TrCB$bita\n300 $a2 v. (544; 570, [1] p.), [2] ritr.$c16 cm\n997 $aCBT-1-dv-ath-gp\n082 0 $a854.7$222\n100 1 $aManzoni, Alessandro$aut. \n440 0$aCollezione Salani.$pI classici$v16-17\n245 00$aProse /$cAlessandro Manzoni\n260 $aFirenze :$bSalani,$c1925.\n"
}
]
}
]
}
HTTP status code 404
Item with a given ID not found
Body
Media type: text/plain
Type: any
Example:
"searchVertical not found"
HTTP status code 500
Internal server error
Body
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
delete /marccat/searchVertical
Delete searchVertical item with given {searchVerticalId}
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 204
Item deleted successfully
HTTP status code 400
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Body
Media type: text/plain
Type: any
Example:
"unable to delete searchVertical -- constraint violation"
HTTP status code 404
Item with a given ID not found
Body
Media type: text/plain
Type: any
Example:
"searchVertical not found"
HTTP status code 500
Internal server error, e.g. due to misconfiguration
Body
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
put /marccat/searchVertical
Update searchVertical item with given {searchVerticalId}
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Search result in marc text",
"type": "object",
"description": "search metadata and result list",
"additionalProperties": false,
"properties": {
"searchingView": {
"description": "Type of record inside the result list. 1 for Bibliographic records, -1 for authority",
"type": "integer"
},
"displayQuery": {
"description": "query that produced result list",
"type": "string"
},
"from": {
"description": "Specifies an offset into a query’s result set to begin displaying results from this offset",
"type": "integer"
},
"to": {
"description": "Pagination properties. Specifies the end of offset into a query’s result set to stop displaying results",
"type": "integer"
},
"numFound": {
"description": "count of result founded",
"type": "integer"
},
"docs": {
"description": "result list",
"type": "array",
"items": {
"type": "object",
"properties": {
"recordView": {
"description": "record type. 1 for Bibliographic records, -1 for authority",
"type": "integer",
"pattern": "/[1,-1]{1}/"
},
"countDoc": {
"description": "count of bibliographic records associated to the current record",
"type": "integer"
},
"queryForAssociatedDoc": {
"description": "query to retrieve records associated to the current one",
"type": "string"
}
},
"tagHighlighted": {
"description": "list of tag in which query terms are present",
"type": "string"
},
"data": {
"description": "marc record in text form",
"type": "string"
}
}
}
},
"metadata": {
"description": "Metadata about creation and changes to marc record, provided by the server (client should not provide)",
"type": "object",
"$ref": "../raml-storage/raml-util/schemas/metadata.schema"
}
}
Example:
{
"results": [
{
"searchingView": 1,
"displayQuery": "na \"manzoni\"",
"from": 1,
"to": 10,
"numFound": 1271,
"docs": [
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006570036\n005 20170216093555.0\n008 170216s19uu gw e 000 0 ger c\n040 $aIT-TrCB$bita\n300 $a440 p.$c20 cm\n082 0 $a853.7$222\n997 $aCBT-1-dv-ath-ma\n700 1 $aLangen, Adolf$trl. \n700 1 $aBülow, Eduard von$trl. \n100 1 $aManzoni, Alessandro$aut. \n245 04$aDie Verlobten :$beine mailänder Geschichte /$cvon Alessandro Manzoni ; nach Eduard von Bülows uebersetzung neu bearbeitet von Adolf Langen\n260 $aBerlin :$bSchreitersche Verlagshandlung,$c[19--?]\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006566570\n005 20170201093512.0\n008 170201s1921 it e 000 0 ita c\n040 $aIT-TrCB$bita\n300 $aXXXVI, 248 p., II p. di tav.$c18 cm\n997 $aCBT-1-dv-ath-ad\n082 0 $a852.7$222\n700 1 $aEgidi, Pietro$edt. \n100 1 $aManzoni, Alessandro$aut. \n245 00$aTragedie /$cAlessandro Manzoni ; introduzione e note di Pietro Egidi\n440 0$aCollezione di classici italiani con note$v38\n260 $aTorino :$bUTET,$c1921.\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006566436\n005 20170131144441.0\n008 170131s1921 it e 000 0 ita c\n040 $aIT-TrCB$bita\n300 $aXXX, 202 p., III p. di tav.$c18 cm\n997 $aCBT-1-dv-ath-ad\n082 0 $a851.7$222\n100 1 $aManzoni, Alessandro$aut. \n700 1 $aMomigliano, Attilio$edt. \n245 00$aLiriche /$cAlessandro Manzoni ; introduzione e note di Attilio Momigliano.\n440 0$aCollezione di classici italiani con note$v37\n260 $aTorino :$bUTET,$c1921.\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006562130\n005 20170111185039.0\n008 170111s2009 it j 000 0 ita c\n040 $aIT-TrCB$bita\n300 $a144 p.$bill.$c21 cm\n521 $aOPERA PER BAMBINI\n250 $aRist.\n500 $aNome del cur. dalla p. contro il front.\n505 2 $aCon apparato didattico\n082 1 $a853.7$214\n997 $aCBT-2-bct-mg\n020 $a9788883971747\n100 1 $aManzoni, Alessandro$aut. \n700 1 $aDattolico, Rosa$edt. \n700 1 $ill. $aDa Rold, Andrea\n245 02$aI promessi sposi /$cAlessandro Manzoni ; [a cura di Rosa Dattolico] ; illustrazioni di Andrea Da Rold\n440 2$aI supermangialibri.$pI classici\n260 $aCasoria (NA) :$bArdea Editrice,$c2009.\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006561957\n005 20170111115931.0\n008 170111s2006 it e 000 0 ita c\n040 $aIT-TrCB$bita\n300 $a2 v.$c18 cm\n505 0 $a1 : I promessi sposi (1827). - CIII, 989 p.\n505 0 $a2 : I promessi sposi (1840) ; Storia della colonna infame. - XLIV, 1253 p. : ill. - Ripr. facs. dell'ed.: Milano : Guglielmini e Redaelli, 1840; seguono Commento e indici\n250 $a2. ed.\n500 $aIn contenitore\n500 $aISBN dal contenitore\n997 $aCBT-2-bct-mg\n082 1 $a853.7$214\n020 $a880450417X\n700 1 $aPaccagnini, Ermanno$edt. \n700 1 $aNigro, Salvatore Silvano$edt. \n100 1 $aManzoni, Alessandro$aut. \n740 02$aStoria della colonna infame\n440 2$aI meridiani / [Mondadori]\n245 02$aI promessi sposi /$cAlessandro Manzoni ; saggio introduttivo, revisione del testo critico e commento a cura di Salvatore Silvano Nigro ; collaborazione di Ermanno Paccagnini per la Storia della colonna infame\n260 $aMilano :$bMondadori,$c2006.\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006561869\n005 20170111100126.0\n008 170111s1877 fr e 000 0 fre c\n040 $aIT-TrCB$bita\n300 $a747 p., [1] c. di tav.$c19 cm\n250 $aNouvelle éd. revue et complétée par les professeurs Martin et Pizzigoni\n082 0 $a853.7$222\n997 $aCBT-1-dv-ath-gp\n700 1 $aPizzigoni, Carlo$edt. \n700 1 $aRey Dusseuil, Antoine F.M.$trl. \n700 1 $aMartin, ...,$d19. sec.$edt. \n700 1 $aMontgrand, Jean-Baptiste-Jacques-Guy-Therese, marquis de$trl. \n100 1 $aManzoni, Alessandro$aut. \n245 04$aLes fiancés /$cA. Manzoni ; d'après les traductions de MM. de Montgrand et Rey-Dussueil\n246 0 $aI promessi sposi\n260 $aMilan :$bCarrara, Paul(IS),$c1877$aMilano :$bCarrara, Paolo\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006561680\n005 20170110142137.0\n008 170110s1888 fr e 000 0 fre c\n040 $aIT-TrCB$bita\n300 $a2 v. (XX, 404 ; 423 p.)$bill.$c19 cm\n250 $aNouvelle éd.\n082 0 $a853.7$222\n997 $aCBT-1-dv-ath-gp\n700 1 $ill. $aStaal, Gustave\n700 1 $aMontgrand, Jean-Baptiste-Jacques-Guy-Therese, marquis de$trl. \n100 1 $aManzoni, Alessandro$aut. \n246 0 $aI promessi sposi\n245 04$aLes fiancés :$bhistoire milanaise du XVIIme siècle /$cManzoni ; traduction nouvelle ... par le marquis de Montgrand ; avec des notes historiques et fac-similé de lettres de Manzoni à son traducteur ; nouvelles illustrations de Staal\n260 $aParis :$bGarnier frères,$c1888.\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006561646\n005 20170110132920.0\n008 170110s1869 it e 000 0 ita c\n040 $aIT-TrCB$bita\n300 $a123 p.$c20 cm\n082 0 $a450.$222\n997 $aCBT-1-dv-ath-gp\n100 1 $aManzoni, Alessandro$aut. \n245 00$aAppendice alla relazione intorno all'unità della lingua e ai mezzi di diffonderla /$cAlessandro Manzoni\n260 $aMilano :$bRechiedei,$c1869.\n650 4$aLingua italiana - Opere del 19. sec.\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006561627\n005 20170110125437.0\n008 170110s1885 it e 000 0 ita c\n040 $aIT-TrCB$bita\n300 $a306 p.$c20 cm\n082 0 $a858.702$222\n997 $aCBT-1-dv-ath-gp\n100 1 $aManzoni, Alessandro$aut. \n700 1 $aBindoni, Giuseppe$com. \n245 00$aSentenze e pensieri /$cdi Alessandro Manzoni ; raccolti da' suoi scritti e ordinati dal prof. Giuseppe Bindoni.\n260 $aTreviso :$bTurazza,$c1885.\n"
},
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": null,
"tagHighlighted": null,
"data": "LEADER 00000nam 2200000 i 4500\n001 000006561568\n005 20170110114215.0\n008 170110s1925 it e 000 0 ita c\n040 $aIT-TrCB$bita\n300 $a2 v. (544; 570, [1] p.), [2] ritr.$c16 cm\n997 $aCBT-1-dv-ath-gp\n082 0 $a854.7$222\n100 1 $aManzoni, Alessandro$aut. \n440 0$aCollezione Salani.$pI classici$v16-17\n245 00$aProse /$cAlessandro Manzoni\n260 $aFirenze :$bSalani,$c1925.\n"
}
]
}
]
}
HTTP status code 204
Item successfully updated
HTTP status code 400
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Body
Media type: text/plain
Type: any
Example:
"unable to update searchVertical -- malformed JSON at 13:4"
HTTP status code 404
Item with a given ID not found
Body
Media type: text/plain
Type: any
Example:
"searchVertical not found"
HTTP status code 500
Internal server error, e.g. due to misconfiguration
Body
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Entity representing a searchAuth
Return a list of marc authority records and search metadata
Delete searchAuth item with given {searchAuthId}
Update searchAuth item with given {searchAuthId}
get /marccat/searchAuth
Return a list of marc authority records and search metadata
Query Parameters
- offset: (integer - default: 0 - minimum: 0 - maximum: 2147483647)
Skip over a number of elements by specifying an offset value for the query
Example:
0
- limit: (integer - default: 10 - minimum: 0 - maximum: 2147483647)
Limit the number of elements returned in the response
Example:
10
- query: (string)
A query expressed as a CQL string (see dev.folio.org/reference/glossary#cql) using valid searchable fields. The first example below shows the general form of a full CQL query, but those fields might not be relevant in this context.
using CCL query in q parameter
Example:
(username=="ab*" or personal.firstName=="ab*" or personal.lastName=="ab*") and active=="true" sortby personal.lastName personal.firstName barcode q=na "giannini"
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 200
Return a list of marc authority records and search metadata
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Search result",
"type": "object",
"description": "search metadata and result list",
"additionalProperties": false,
"properties": {
"searchingView": {
"description": "Type of record inside the result list. 1 for Bibliographic records, -1 for authority",
"type": "integer"
},
"displayQuery": {
"description": "query that produced result list",
"type": "string"
},
"from": {
"description": "Specifies an offset into a query’s result set to begin displaying results from this offset",
"type": "integer"
},
"to": {
"description": "Pagination properties. Specifies the end of offset into a query’s result set to stop displaying results",
"type": "integer"
},
"numFound": {
"description": "count of result founded",
"type": "integer"
},
"docs": {
"description": "result list",
"type": "array",
"items": {
"type": "object",
"properties": {
"recordView": {
"description": "record type. 1 for Bibliographic records, -1 for authority",
"type": "integer",
"pattern": "/[1,-1]{1}/"
},
"countDoc": {
"description": "count of bibliographic records associated to the current record",
"type": "integer"
},
"queryForAssociatedDoc": {
"description": "query to retrieve records associated to the current one",
"type": "string"
}
},
"tagHighlighted": {
"description": "list of tag in which query terms are present",
"type": "string"
},
"data": {
"description": "marc record",
"type": "object",
"properties": {
"leader": {
"description": "marc leader of the record",
"type": "string"
},
"fields": {
"description": "fields of record",
"type": "array",
"items": {
"type": "object",
"$ref": "field.json"
}
}
}
}
}
}
},
"metadata": {
"description": "Metadata about creation and changes to marc record, provided by the server (client should not provide)",
"type": "object",
"$ref": "../raml-storage/raml-util/schemas/metadata.schema"
}
}
Example:
{
"results": [
{
"searchingView": 1,
"displayQuery": "NA \"giannini\"",
"from": 1,
"to": 1,
"numFound": 2,
"docs": [
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": "NK 1",
"tagHighlighted": null,
"data": {
"leader": "00215nz 2200097 4500",
"fields": [
{
"001": "000000000001"
},
{
"005": "20200220080126.0"
},
{
"008": "200729 n annnnabbn n2ann und u"
},
{
"040": {
"subfields": [
{
"a": "SCA"
},
{
"b": "eng"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"100": {
"subfields": [
{
"a": "Giannini, Luca."
}
],
"ind1": "1",
"ind2": " "
}
}
]
}
}
]
}
]
}
HTTP status code 400
Bad request
Body
Media type: text/plain
Type: any
Example:
Required String parameter 'lang' is not present
HTTP status code 404
Item with a given ID not found
Body
Media type: text/plain
Type: any
Example:
"searchAuth not found"
HTTP status code 500
Internal server error
Body
Media type: text/plain
Type: any
Example:
Query not supported
delete /marccat/searchAuth
Delete searchAuth item with given {searchAuthId}
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 204
Item deleted successfully
HTTP status code 400
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Body
Media type: text/plain
Type: any
Example:
"unable to delete searchAuth -- constraint violation"
HTTP status code 404
Item with a given ID not found
Body
Media type: text/plain
Type: any
Example:
"searchAuth not found"
HTTP status code 500
Internal server error, e.g. due to misconfiguration
Body
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
put /marccat/searchAuth
Update searchAuth item with given {searchAuthId}
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Search result",
"type": "object",
"description": "search metadata and result list",
"additionalProperties": false,
"properties": {
"searchingView": {
"description": "Type of record inside the result list. 1 for Bibliographic records, -1 for authority",
"type": "integer"
},
"displayQuery": {
"description": "query that produced result list",
"type": "string"
},
"from": {
"description": "Specifies an offset into a query’s result set to begin displaying results from this offset",
"type": "integer"
},
"to": {
"description": "Pagination properties. Specifies the end of offset into a query’s result set to stop displaying results",
"type": "integer"
},
"numFound": {
"description": "count of result founded",
"type": "integer"
},
"docs": {
"description": "result list",
"type": "array",
"items": {
"type": "object",
"properties": {
"recordView": {
"description": "record type. 1 for Bibliographic records, -1 for authority",
"type": "integer",
"pattern": "/[1,-1]{1}/"
},
"countDoc": {
"description": "count of bibliographic records associated to the current record",
"type": "integer"
},
"queryForAssociatedDoc": {
"description": "query to retrieve records associated to the current one",
"type": "string"
}
},
"tagHighlighted": {
"description": "list of tag in which query terms are present",
"type": "string"
},
"data": {
"description": "marc record",
"type": "object",
"properties": {
"leader": {
"description": "marc leader of the record",
"type": "string"
},
"fields": {
"description": "fields of record",
"type": "array",
"items": {
"type": "object",
"$ref": "field.json"
}
}
}
}
}
}
},
"metadata": {
"description": "Metadata about creation and changes to marc record, provided by the server (client should not provide)",
"type": "object",
"$ref": "../raml-storage/raml-util/schemas/metadata.schema"
}
}
Example:
{
"results": [
{
"searchingView": 1,
"displayQuery": "NA \"giannini\"",
"from": 1,
"to": 1,
"numFound": 2,
"docs": [
{
"recordView": 1,
"countDoc": 0,
"queryForAssociatedDoc": "NK 1",
"tagHighlighted": null,
"data": {
"leader": "00215nz 2200097 4500",
"fields": [
{
"001": "000000000001"
},
{
"005": "20200220080126.0"
},
{
"008": "200729 n annnnabbn n2ann und u"
},
{
"040": {
"subfields": [
{
"a": "SCA"
},
{
"b": "eng"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"100": {
"subfields": [
{
"a": "Giannini, Luca."
}
],
"ind1": "1",
"ind2": " "
}
}
]
}
}
]
}
]
}
HTTP status code 204
Item successfully updated
HTTP status code 400
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Body
Media type: text/plain
Type: any
Example:
"unable to update searchAuth -- malformed JSON at 13:4"
HTTP status code 404
Item with a given ID not found
Body
Media type: text/plain
Type: any
Example:
"searchAuth not found"
HTTP status code 500
Internal server error, e.g. due to misconfiguration
Body
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Entity representing a authority-record
Create authority record
Retrieve authority-record item with given {authority-recordId}
Delete authority-record item with given {authority-recordId}
Update authority-record item with given {authority-recordId}
post /marccat/authority-record
Create authority record
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 201
Authority created
HTTP status code 400
Bad request
Body
Media type: text/plain
Type: any
Example:
Required String parameter 'lang' is not present
HTTP status code 422
Validation errors
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$ref": "error.schema"
}
},
"total_records": {
"type": "integer"
}
}
}
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
HTTP status code 500
Internal server error
Body
Media type: text/plain
Type: any
Example:
Error in validation
get /marccat/authority-record
Retrieve authority-record item with given {authority-recordId}
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 200
Returns item with a given ID
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "authority schema",
"type": "object",
"description": "authority metadata",
"properties": {
"id": {
"type": "integer",
"description": "authority id"
},
"canadianContentIndicator": {
"type": "string",
"description": "MARC organization codes: 0-LOC, 1-Canadian"
},
"verificationLevel": {
"type": "string",
"description": "verification level"
},
"leader": {
"type": "object",
"description": "marc leader of the record",
"properties": {
"code": {
"type": "string",
"description": "marc leader code (000)"
},
"value": {
"type": "string",
"description": "marc leader value"
}
},
"required": [
"code",
"value"
]
},
"fields": {
"description": "fields of record",
"type": "array",
"items": [
{
"type": "object",
"description": "tag description",
"properties": {
"code": {
"type": "string",
"description": "marc tag"
},
"mandatory": {
"type": "boolean",
"description": "tag mandatory or not"
},
"fieldStatus": {
"type": "string",
"description": "status of the tag: unchanged, changed, new, deleted"
},
"fixedField": {
"type": "object",
"description": "control field values",
"$ref": "fixedField.json"
},
"variableField": {
"type": "object",
"description": "variable field values",
"$ref": "variableField.json"
},
"added": {
"type": "boolean",
"description": "tag is new or not"
}
},
"required": [
"code",
"mandatory",
"fieldStatus",
"added"
]
}
]
},
"recordView": {
"type": "integer",
"description": "view of the record"
}
},
"required": [
"id",
"canadianContentIndicator",
"verificationLevel",
"leader",
"fields",
"recordView"
]
}
Example:
{
"id": 0,
"canadianContentIndicator": "0",
"verificationLevel": "1",
"leader": {
"code": "000",
"value": "00215nz 2200097n 4500"
},
"fields": [
{
"code": "001",
"mandatory": true,
"fieldStatus": "unchanged",
"fixedField": {
"categoryCode": 1,
"headerTypeCode": 11,
"code": "001",
"displayValue": "00000000100","sequenceNumber":0,
"attributes": {
}
},
"added": true
},
{
"code": "005",
"mandatory": true,
"fieldStatus": "unchanged",
"fixedField": {
"categoryCode": 1,
"description": "005 Data/hour of transaction",
"headerTypeCode": 41,
"code": "005",
"displayValue": "20200901111027.",
"sequenceNumber": 0,
"attributes": {
}
},
"added": false
},
{
"code": "008",
"mandatory": true,
"fieldStatus": "unchanged",
"fixedField": {
"categoryCode": 1,
"headerTypeCode": 31,
"code": "008",
"displayValue": "201001 n acanaaabn n aaa u",
"sequenceNumber": 0,
"attributes": {
}
},
"added": true
},
{
"code": "040",
"mandatory": true,
"fieldStatus": "unchanged",
"variableField": {
"categoryCode": 1,
"ind1": " ",
"ind2": " ",
"code": "040",
"displayValue": "\u001faSCA\u001fbeng",
"subfields": [],
"sequenceNumber": 0,
"skipInFiling": 0
},
"added": true
},
{
"code": "100",
"mandatory": false,
"fieldStatus": "new",
"variableField": {
"keyNumber": -1,
"categoryCode": 2,
"headingTypeCode": "1",
"itemTypeCode": "2",
"functionCode": "-1",
"ind1": "1",
"ind2": " ",
"code": "100",
"displayValue": "\u001faIbaiScanbit",
"subfields": [],
"sequenceNumber": 0,
"skipInFiling": 0
},
"added": false
}
],
"recordView": 0
}
HTTP status code 404
Item with a given ID not found
Body
Media type: text/plain
Type: any
Example:
"authority-record not found"
HTTP status code 500
Internal server error, e.g. due to misconfiguration
Body
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
delete /marccat/authority-record
Delete authority-record item with given {authority-recordId}
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 204
Item deleted successfully
HTTP status code 400
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Body
Media type: text/plain
Type: any
Example:
"unable to delete authority-record -- constraint violation"
HTTP status code 404
Item with a given ID not found
Body
Media type: text/plain
Type: any
Example:
"authority-record not found"
HTTP status code 500
Internal server error, e.g. due to misconfiguration
Body
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
put /marccat/authority-record
Update authority-record item with given {authority-recordId}
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "authority schema",
"type": "object",
"description": "authority metadata",
"properties": {
"id": {
"type": "integer",
"description": "authority id"
},
"canadianContentIndicator": {
"type": "string",
"description": "MARC organization codes: 0-LOC, 1-Canadian"
},
"verificationLevel": {
"type": "string",
"description": "verification level"
},
"leader": {
"type": "object",
"description": "marc leader of the record",
"properties": {
"code": {
"type": "string",
"description": "marc leader code (000)"
},
"value": {
"type": "string",
"description": "marc leader value"
}
},
"required": [
"code",
"value"
]
},
"fields": {
"description": "fields of record",
"type": "array",
"items": [
{
"type": "object",
"description": "tag description",
"properties": {
"code": {
"type": "string",
"description": "marc tag"
},
"mandatory": {
"type": "boolean",
"description": "tag mandatory or not"
},
"fieldStatus": {
"type": "string",
"description": "status of the tag: unchanged, changed, new, deleted"
},
"fixedField": {
"type": "object",
"description": "control field values",
"$ref": "fixedField.json"
},
"variableField": {
"type": "object",
"description": "variable field values",
"$ref": "variableField.json"
},
"added": {
"type": "boolean",
"description": "tag is new or not"
}
},
"required": [
"code",
"mandatory",
"fieldStatus",
"added"
]
}
]
},
"recordView": {
"type": "integer",
"description": "view of the record"
}
},
"required": [
"id",
"canadianContentIndicator",
"verificationLevel",
"leader",
"fields",
"recordView"
]
}
Example:
{
"id": 0,
"canadianContentIndicator": "0",
"verificationLevel": "1",
"leader": {
"code": "000",
"value": "00215nz 2200097n 4500"
},
"fields": [
{
"code": "001",
"mandatory": true,
"fieldStatus": "unchanged",
"fixedField": {
"categoryCode": 1,
"headerTypeCode": 11,
"code": "001",
"displayValue": "00000000100","sequenceNumber":0,
"attributes": {
}
},
"added": true
},
{
"code": "005",
"mandatory": true,
"fieldStatus": "unchanged",
"fixedField": {
"categoryCode": 1,
"description": "005 Data/hour of transaction",
"headerTypeCode": 41,
"code": "005",
"displayValue": "20200901111027.",
"sequenceNumber": 0,
"attributes": {
}
},
"added": false
},
{
"code": "008",
"mandatory": true,
"fieldStatus": "unchanged",
"fixedField": {
"categoryCode": 1,
"headerTypeCode": 31,
"code": "008",
"displayValue": "201001 n acanaaabn n aaa u",
"sequenceNumber": 0,
"attributes": {
}
},
"added": true
},
{
"code": "040",
"mandatory": true,
"fieldStatus": "unchanged",
"variableField": {
"categoryCode": 1,
"ind1": " ",
"ind2": " ",
"code": "040",
"displayValue": "\u001faSCA\u001fbeng",
"subfields": [],
"sequenceNumber": 0,
"skipInFiling": 0
},
"added": true
},
{
"code": "100",
"mandatory": false,
"fieldStatus": "new",
"variableField": {
"keyNumber": -1,
"categoryCode": 2,
"headingTypeCode": "1",
"itemTypeCode": "2",
"functionCode": "-1",
"ind1": "1",
"ind2": " ",
"code": "100",
"displayValue": "\u001faIbaiScanbit",
"subfields": [],
"sequenceNumber": 0,
"skipInFiling": 0
},
"added": false
}
],
"recordView": 0
}
HTTP status code 204
Item successfully updated
HTTP status code 400
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Body
Media type: text/plain
Type: any
Example:
"unable to update authority-record -- malformed JSON at 13:4"
HTTP status code 404
Item with a given ID not found
Body
Media type: text/plain
Type: any
Example:
"authority-record not found"
HTTP status code 500
Internal server error, e.g. due to misconfiguration
Body
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Collection of authority-record items.
Get authority record
Retrieve a list of authority-record items.
post /marccat/authority-record/{idRecord}
Get authority record
URI Parameters
- idRecord: required(string)
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 200
Return an authority record
HTTP status code 400
Bad request
Body
Media type: text/plain
Type: any
Example:
Required String parameter 'lang' is not present
HTTP status code 422
Validation errors
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$ref": "error.schema"
}
},
"total_records": {
"type": "integer"
}
}
}
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
HTTP status code 500
Internal server error
Body
Media type: text/plain
Type: any
Example:
Error in validation
get /marccat/authority-record/{idRecord}
Retrieve a list of authority-record items.
URI Parameters
- idRecord: required(string)
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 200
Returns a list of authority-record items
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "authority schema",
"type": "object",
"description": "authority metadata",
"properties": {
"id": {
"type": "integer",
"description": "authority id"
},
"canadianContentIndicator": {
"type": "string",
"description": "MARC organization codes: 0-LOC, 1-Canadian"
},
"verificationLevel": {
"type": "string",
"description": "verification level"
},
"leader": {
"type": "object",
"description": "marc leader of the record",
"properties": {
"code": {
"type": "string",
"description": "marc leader code (000)"
},
"value": {
"type": "string",
"description": "marc leader value"
}
},
"required": [
"code",
"value"
]
},
"fields": {
"description": "fields of record",
"type": "array",
"items": [
{
"type": "object",
"description": "tag description",
"properties": {
"code": {
"type": "string",
"description": "marc tag"
},
"mandatory": {
"type": "boolean",
"description": "tag mandatory or not"
},
"fieldStatus": {
"type": "string",
"description": "status of the tag: unchanged, changed, new, deleted"
},
"fixedField": {
"type": "object",
"description": "control field values",
"$ref": "fixedField.json"
},
"variableField": {
"type": "object",
"description": "variable field values",
"$ref": "variableField.json"
},
"added": {
"type": "boolean",
"description": "tag is new or not"
}
},
"required": [
"code",
"mandatory",
"fieldStatus",
"added"
]
}
]
},
"recordView": {
"type": "integer",
"description": "view of the record"
}
},
"required": [
"id",
"canadianContentIndicator",
"verificationLevel",
"leader",
"fields",
"recordView"
]
}
Example:
{
"authorityRecord": {
"id": 282,
"canadianContentIndicator": "0",
"verificationLevel": "1",
"leader": {
"code": "000",
"value": "00000nz 2200000n 4500"
},
"fields": [
{
"code": "001",
"mandatory": true,
"fieldStatus": "unchanged",
"fixedField": {
"keyNumber": 0,
"categoryCode": 1,
"headerTypeCode": 11,
"code": "001",
"displayValue": "000000000282",
"sequenceNumber": 0,
"attributes": {
}
},
"added": false
},
{
"code": "005",
"mandatory": false,
"fieldStatus": "unchanged",
"fixedField": {
"keyNumber": 0,
"categoryCode": 1,
"headerTypeCode": 12,
"code": "005",
"displayValue": "20201014123504.715",
"sequenceNumber": 0,
"attributes": {
}
},
"added": false
},
{
"code": "008",
"mandatory": true,
"fieldStatus": "unchanged",
"fixedField": {
"keyNumber": 0,
"categoryCode": 1,
"headerTypeCode": 10,
"code": "008",
"displayValue": "201001 n acanaaabn n aaa d",
"sequenceNumber": 0,
"attributes": {
}
},
"added": false
},
{
"code": "040",
"mandatory": true,
"fieldStatus": "unchanged",
"variableField": {
"keyNumber": 0,
"categoryCode": 1,
"headingTypeCode": "1",
"itemTypeCode": "-1",
"functionCode": "-1",
"ind1": " ",
"ind2": " ",
"code": "040",
"displayValue": "aSCAbeng",
"subfields": [],
"sequenceNumber": 0,
"skipInFiling": 0
},
"added": false
},
{
"code": "100",
"mandatory": false,
"fieldStatus": "unchanged",
"variableField": {
"keyNumber": 0,
"categoryCode": 2,
"headingTypeCode": "2",
"itemTypeCode": "3",
"functionCode": "-1",
"ind1": "1",
"ind2": " ",
"code": "100",
"displayValue": "aIbaiScanbit2",
"subfields": [],
"sequenceNumber": 0,
"skipInFiling": 0
},
"added": false
},
{
"code": "400",
"mandatory": false,
"fieldStatus": "unchanged",
"variableField": {
"keyNumber": 0,
"categoryCode": 2,
"headingTypeCode": "2",
"itemTypeCode": "5",
"functionCode": "2",
"ind1": "3",
"ind2": " ",
"code": "400",
"displayValue": "wnaxnaScanbit",
"subfields": [],
"sequenceNumber": 0,
"skipInFiling": 0
},
"added": false
},
{
"code": "400",
"mandatory": false,
"fieldStatus": "unchanged",
"variableField": {
"keyNumber": 0,
"categoryCode": 2,
"headingTypeCode": "2",
"itemTypeCode": "3",
"functionCode": "2",
"ind1": "1",
"ind2": " ",
"code": "400",
"displayValue": "aVitoria",
"subfields": [],
"sequenceNumber": 0,
"skipInFiling": 0
},
"added": false
},
{
"code": "670",
"mandatory": false,
"fieldStatus": "unchanged",
"variableField": {
"keyNumber": 51,
"categoryCode": 7,
"headingTypeCode": "21",
"itemTypeCode": "-1",
"functionCode": "-1",
"ind1": " ",
"ind2": " ",
"code": "670",
"displayValue": "aEmpresa",
"subfields": [],
"sequenceNumber": 0,
"skipInFiling": 0
},
"added": false
}
],
"recordView": -1
}
}
HTTP status code 400
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Body
Media type: text/plain
Type: any
Example:
unable to list authority-record -- malformed parameter 'query', syntax error at column 6
HTTP status code 500
Internal server error, e.g. due to misconfiguration
Body
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Collection of from-template items.
Get authority record template
get /marccat/authority-record/from-template/{idTemplate}
Get authority record template
URI Parameters
- idTemplate: required(string)
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 200
Return an authority template
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "authority schema",
"type": "object",
"description": "authority metadata",
"properties": {
"id": {
"type": "integer",
"description": "authority id"
},
"canadianContentIndicator": {
"type": "string",
"description": "MARC organization codes: 0-LOC, 1-Canadian"
},
"verificationLevel": {
"type": "string",
"description": "verification level"
},
"leader": {
"type": "object",
"description": "marc leader of the record",
"properties": {
"code": {
"type": "string",
"description": "marc leader code (000)"
},
"value": {
"type": "string",
"description": "marc leader value"
}
},
"required": [
"code",
"value"
]
},
"fields": {
"description": "fields of record",
"type": "array",
"items": [
{
"type": "object",
"description": "tag description",
"properties": {
"code": {
"type": "string",
"description": "marc tag"
},
"mandatory": {
"type": "boolean",
"description": "tag mandatory or not"
},
"fieldStatus": {
"type": "string",
"description": "status of the tag: unchanged, changed, new, deleted"
},
"fixedField": {
"type": "object",
"description": "control field values",
"$ref": "fixedField.json"
},
"variableField": {
"type": "object",
"description": "variable field values",
"$ref": "variableField.json"
},
"added": {
"type": "boolean",
"description": "tag is new or not"
}
},
"required": [
"code",
"mandatory",
"fieldStatus",
"added"
]
}
]
},
"recordView": {
"type": "integer",
"description": "view of the record"
}
},
"required": [
"id",
"canadianContentIndicator",
"verificationLevel",
"leader",
"fields",
"recordView"
]
}
Example:
{
"id": 362,
"canadianContentIndicator": "0",
"verificationLevel": "1",
"leader": {
"code": "000",
"value": "00215nz 2200097n 4500"
},
"fields": [
{
"code": "001",
"mandatory": true,
"fieldStatus": "unchanged",
"fixedField": {
"keyNumber": 0,
"categoryCode": 1,
"headerTypeCode": 11,
"code": "001",
"displayValue": "00000000362",
"sequenceNumber": 0,
"attributes": {
}
},
"added": false
},
{
"code": "005",
"mandatory": true,
"fieldStatus": "unchanged",
"fixedField": {
"categoryCode": 1,
"description": "046 Special Coded Dates",
"headerTypeCode": 12,
"code": "005",
"displayValue": "20201026102004.",
"sequenceNumber": 0,
"attributes": {
}
},
"added": false
},
{
"code": "008",
"mandatory": true,
"fieldStatus": "unchanged",
"fixedField": {
"keyNumber": 0,
"categoryCode": 1,
"headerTypeCode": 10,
"code": "008",
"displayValue": "201026 n acanaaabn n aaa u",
"dateEnteredOnFile": "201026",
"sequenceNumber": 0,
"attributes": {
"dateEnteredOnFile": "201026"
}
},
"added": false
},
{
"code": "040",
"mandatory": true,
"fieldStatus": "unchanged",
"variableField": {
"keyNumber": 0,
"categoryCode": 1,
"headingTypeCode": "1",
"itemTypeCode": "-1",
"functionCode": "-1",
"ind1": " ",
"ind2": " ",
"code": "040",
"displayValue": "\u001faSCA\u001fbeng",
"subfields": [],
"sequenceNumber": 0,
"skipInFiling": 0
},
"added": false
}
],
"recordView": 0
}
HTTP status code 400
Bad request
Body
Media type: text/plain
Type: any
Example:
Required String parameter 'lang' is not present
HTTP status code 422
Validation errors
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$ref": "error.schema"
}
},
"total_records": {
"type": "integer"
}
}
}
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
HTTP status code 500
Internal server error
Body
Media type: text/plain
Type: any
Example:
Error in validation
Collection of fixed-field-display-value items.
Change the display value for 008 tag
Retrieve a list of fixed-field-display-value items.
post /marccat/authority-record/fixed-field-display-value
Change the display value for 008 tag
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 201
Display value for 008 changed
HTTP status code 400
Bad request
Body
Media type: text/plain
Type: any
Example:
Required String parameter 'lang' is not present
HTTP status code 422
Validation errors
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$ref": "error.schema"
}
},
"total_records": {
"type": "integer"
}
}
}
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
HTTP status code 500
Internal server error
Body
Media type: text/plain
Type: any
Example:
Error in validation
get /marccat/authority-record/fixed-field-display-value
Retrieve a list of fixed-field-display-value items.
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 200
Returns a list of fixed-field-display-value items
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "authority schema",
"type": "object",
"description": "authority metadata",
"properties": {
"id": {
"type": "integer",
"description": "authority id"
},
"canadianContentIndicator": {
"type": "string",
"description": "MARC organization codes: 0-LOC, 1-Canadian"
},
"verificationLevel": {
"type": "string",
"description": "verification level"
},
"leader": {
"type": "object",
"description": "marc leader of the record",
"properties": {
"code": {
"type": "string",
"description": "marc leader code (000)"
},
"value": {
"type": "string",
"description": "marc leader value"
}
},
"required": [
"code",
"value"
]
},
"fields": {
"description": "fields of record",
"type": "array",
"items": [
{
"type": "object",
"description": "tag description",
"properties": {
"code": {
"type": "string",
"description": "marc tag"
},
"mandatory": {
"type": "boolean",
"description": "tag mandatory or not"
},
"fieldStatus": {
"type": "string",
"description": "status of the tag: unchanged, changed, new, deleted"
},
"fixedField": {
"type": "object",
"description": "control field values",
"$ref": "fixedField.json"
},
"variableField": {
"type": "object",
"description": "variable field values",
"$ref": "variableField.json"
},
"added": {
"type": "boolean",
"description": "tag is new or not"
}
},
"required": [
"code",
"mandatory",
"fieldStatus",
"added"
]
}
]
},
"recordView": {
"type": "integer",
"description": "view of the record"
}
},
"required": [
"id",
"canadianContentIndicator",
"verificationLevel",
"leader",
"fields",
"recordView"
]
}
Example:
{
"categoryCode": 1,
"headerTypeCode": 10,
"code": "008",
"displayValue": "201027 n acanaaabn n aaa u",
"dateEnteredOnFile": "201027",
"subjectDescriptor": " ",
"romanizationScheme": "n",
"bilingualUsage": " ",
"recordType": "a",
"cataloguingRules": "c",
"subjectSystem": "a",
"seriesType": "n",
"seriesNumbering": "a",
"mainAddedEntryIndicator": "a",
"subjectEntryIndicator": "a",
"seriesEntryIndicator": "b",
"subDivisionType": "n",
"governmentAgency": " ",
"referenceStatus": "n",
"recordRevision": "a",
"nonUniqueName": "a",
"headingStatus": "a",
"recordModification": " ",
"cataloguingSourceCode": "u",
"sequenceNumber": 0,
"attributes": {
"subjectDescriptor": " ",
"romanizationScheme": "n",
"bilingualUsage": " ",
"recordType": "a",
"cataloguingRules": "c",
"subjectSystem": "a",
"seriesType": "n",
"seriesNumbering": "a",
"mainAddedEntryIndicator": "a",
"subjectEntryIndicator": "a",
"seriesEntryIndicator": "b",
"subDivisionType": "n",
"governmentAgency": " ",
"referenceStatus": "n",
"recordRevision": "a",
"nonUniqueName": "a",
"headingStatus": "a",
"recordModification": " ",
"cataloguingSourceCode": "u"
}
}
HTTP status code 400
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Body
Media type: text/plain
Type: any
Example:
unable to list fixed-field-display-value -- malformed parameter 'query', syntax error at column 6
HTTP status code 500
Internal server error, e.g. due to misconfiguration
Body
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Collection of auth-fixed-fields-code-group items.
Get authority control fields values
Retrieve a list of auth-fixed-fields-code-group items.
post /marccat/auth-fixed-fields-code-groups
Get authority control fields values
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 200
Return the fixed values for authority
HTTP status code 400
Bad request
Body
Media type: text/plain
Type: any
Example:
Required String parameter 'lang' is not present
HTTP status code 422
Validation errors
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$ref": "error.schema"
}
},
"total_records": {
"type": "integer"
}
}
}
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
HTTP status code 500
Internal server error
Body
Media type: text/plain
Type: any
Example:
Error in validation
get /marccat/auth-fixed-fields-code-groups
Retrieve a list of auth-fixed-fields-code-group items.
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 200
Returns a list of auth-fixed-fields-code-group items
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "authority schema",
"type": "object",
"description": "authority metadata",
"properties": {
"id": {
"type": "integer",
"description": "authority id"
},
"canadianContentIndicator": {
"type": "string",
"description": "MARC organization codes: 0-LOC, 1-Canadian"
},
"verificationLevel": {
"type": "string",
"description": "verification level"
},
"leader": {
"type": "object",
"description": "marc leader of the record",
"properties": {
"code": {
"type": "string",
"description": "marc leader code (000)"
},
"value": {
"type": "string",
"description": "marc leader value"
}
},
"required": [
"code",
"value"
]
},
"fields": {
"description": "fields of record",
"type": "array",
"items": [
{
"type": "object",
"description": "tag description",
"properties": {
"code": {
"type": "string",
"description": "marc tag"
},
"mandatory": {
"type": "boolean",
"description": "tag mandatory or not"
},
"fieldStatus": {
"type": "string",
"description": "status of the tag: unchanged, changed, new, deleted"
},
"fixedField": {
"type": "object",
"description": "control field values",
"$ref": "fixedField.json"
},
"variableField": {
"type": "object",
"description": "variable field values",
"$ref": "variableField.json"
},
"added": {
"type": "boolean",
"description": "tag is new or not"
}
},
"required": [
"code",
"mandatory",
"fieldStatus",
"added"
]
}
]
},
"recordView": {
"type": "integer",
"description": "view of the record"
}
},
"required": [
"id",
"canadianContentIndicator",
"verificationLevel",
"leader",
"fields",
"recordView"
]
}
Example:
{
"headerTypeCode": 10,
"results": {
"subjectDescriptor": {
"name": "subjectDescriptor",
"defaultValue": " ",
"dropdownSelect": [
{
"value": " ",
"label": "Not subdivided geographically"
},
{
"value": "|",
"label": "No attempt to code"
},
{
"value": "d",
"label": "Direct"
},
{
"value": "i",
"label": "Indirect"
},
{
"value": "n",
"label": "Not applicable"
}
]
},
"romanizationScheme": {
"name": "romanizationScheme",
"defaultValue": "n",
"dropdownSelect": [
{
"value": "|",
"label": "No attempt to code"
},
{
"value": "a",
"label": "International Standard"
},
{
"value": "b",
"label": "National Standard"
},
{
"value": "c",
"label": "Nat Lib assoc standard"
},
{
"value": "d",
"label": "National Library Standard"
},
{
"value": "e",
"label": "Local Standard"
},
{
"value": "f",
"label": "Unknown"
},
{
"value": "g",
"label": "Conv name in lang of cat"
},
{
"value": "n",
"label": "Not applicable"
}
]
},
"bilingualUsage": {
"name": "bilingualUsage",
"defaultValue": "n",
"dropdownSelect": [
{
"value": " ",
"label": "No information provided"
},
{
"value": "|",
"label": "No attempt to code"
},
{
"value": "b",
"label": "English and French"
},
{
"value": "e",
"label": "English only"
},
{
"value": "f",
"label": "French only"
}
]
},
"recordType": {
"name": "recordType",
"defaultValue": "a",
"dropdownSelect": [
{
"value": "|",
"label": "No attempt to code"
},
{
"value": "a",
"label": "Authorized heading record"
},
{
"value": "b",
"label": "Untraced reference record"
},
{
"value": "c",
"label": "Traced reference record"
},
{
"value": "d",
"label": "Subdivision record"
},
{
"value": "e",
"label": "Node label record"
},
{
"value": "f",
"label": "Auth. heading/subdivision"
},
{
"value": "g",
"label": "Ref/subdivision record"
}
]
},
"cataloguingRules": {
"name": "cataloguingRules",
"defaultValue": "n",
"dropdownSelect": [
{
"value": "|",
"label": "No attempt to code"
},
{
"value": "a",
"label": "Earlier rules"
},
{
"value": "b",
"label": "AACR1"
},
{
"value": "c",
"label": "AACR2"
},
{
"value": "d",
"label": "AACR2 Compatible"
},
{
"value": "n",
"label": "Not applicable"
},
{
"value": "z",
"label": "Other"
}
]
},
"subjectSystem": {
"name": "subjectSystem",
"defaultValue": "n",
"dropdownSelect": [
{
"value": "|",
"label": "No attempt to code"
},
{
"value": "a",
"label": "Library of Congress"
},
{
"value": "b",
"label": "LC Children's Literature"
},
{
"value": "c",
"label": "US Nat Lib of Medicine(MESH)"
},
{
"value": "d",
"label": "National agriculture Lib sbjct authority file"
},
{
"value": "k",
"label": "Canadian"
},
{
"value": "n",
"label": "Not applicable"
},
{
"value": "r",
"label": "Arts and Arch Thesaurus"
},
{
"value": "s",
"label": "Sears List"
},
{
"value": "v",
"label": "Rep de vedettes-matiere"
},
{
"value": "z",
"label": "Other"
}
]
},
"seriesType": {
"name": "seriesType",
"defaultValue": "n",
"dropdownSelect": [
{
"value": "|",
"label": "No attempt to code"
},
{
"value": "a",
"label": "Monographic series"
},
{
"value": "b",
"label": "Multipart item"
},
{
"value": "c",
"label": "Series-like phrase"
},
{
"value": "n",
"label": "Not applicable"
},
{
"value": "z",
"label": "Other"
}
]
},
"seriesNumbering": {
"name": "seriesNumbering",
"defaultValue": "n",
"dropdownSelect": [
{
"value": "|",
"label": "No attempt to code"
},
{
"value": "a",
"label": "Numbered series"
},
{
"value": "b",
"label": "Unnumbered series"
},
{
"value": "c",
"label": "Numbering varies-640/641"
},
{
"value": "n",
"label": "Not applicable(not series)"
}
]
},
"mainAddedEntryIndicator": {
"name": "mainAddedEntryIndicator",
"defaultValue": "a",
"dropdownSelect": [
{
"value": "|",
"label": "No attempt to code"
}
]
},
"subjectEntryIndicator": {
"name": "subjectEntryIndicator",
"defaultValue": "b",
"dropdownSelect": [
{
"value": "|",
"label": "No attempt to code"
},
{
"value": "a",
"label": "OK as subject AE"
},
{
"value": "b",
"label": "Not OK as subject AE"
}
]
},
"seriesEntryIndicator": {
"name": "seriesEntryIndicator",
"defaultValue": "b",
"dropdownSelect": [
{
"value": "|",
"label": "No attempt to code"
},
{
"value": "a",
"label": "OK as series AE"
},
{
"value": "b",
"label": "Not OK as series AE"
}
]
},
"subDivisionType": {
"name": "subDivisionType",
"defaultValue": "n",
"dropdownSelect": [
{
"value": " ",
"label": "Value pre def of c.p.(OBS)"
},
{
"value": "|",
"label": "No attempt to code"
},
{
"value": "a",
"label": "Topical subdivision"
},
{
"value": "b",
"label": "Form subdivision"
},
{
"value": "c",
"label": "Period subdivision"
},
{
"value": "d",
"label": "Place subdivision"
},
{
"value": "e",
"label": "Language subdivision"
},
{
"value": "n",
"label": "Not applicable"
}
]
},
"governmentAgency": {
"name": "governmentAgency",
"defaultValue": " ",
"dropdownSelect": [
{
"value": " ",
"label": "Not a govt agency"
},
{
"value": "|",
"label": "No attempt to code"
},
{
"value": "a",
"label": "Autonomous or semi-autonomous components of Malaysia"
},
{
"value": "c",
"label": "Multilocal"
},
{
"value": "f",
"label": "Federal/national"
},
{
"value": "i",
"label": "International intergovernmental"
},
{
"value": "l",
"label": "Local jurisdiction"
},
{
"value": "m",
"label": "Multistate"
},
{
"value": "o",
"label": "Government agency - type undetermined"
},
{
"value": "s",
"label": "State,Provincial,territorial,dependent,etc."
},
{
"value": "u",
"label": "Unknown"
},
{
"value": "z",
"label": "Other"
}
]
},
"referenceStatus": {
"name": "referenceStatus",
"defaultValue": "n",
"dropdownSelect": [
{
"value": " ",
"label": "Value already used"
},
{
"value": "a",
"label": "References have been evaluated"
},
{
"value": "b",
"label": "Refs not been evaluated"
},
{
"value": "n",
"label": "Not applicable"
}
]
},
"recordRevision": {
"name": "recordRevision",
"defaultValue": "a",
"dropdownSelect": [
{
"value": "|",
"label": "No attempt to code"
},
{
"value": "a",
"label": "Record can be used"
},
{
"value": "b",
"label": "Record not usable"
}
]
},
"nonUniqueName": {
"name": "nonUniqueName",
"defaultValue": "n",
"dropdownSelect": [
{
"value": "|",
"label": "No attempt to code"
},
{
"value": "a",
"label": "Unique name"
},
{
"value": "b",
"label": "Nonunique name"
},
{
"value": "n",
"label": "Not applicable"
}
]
},
"headingStatus": {
"name": "headingStatus",
"defaultValue": "n",
"dropdownSelect": [
{
"value": "|",
"label": "No attempt to code"
},
{
"value": "a",
"label": "Fully established heading"
},
{
"value": "b",
"label": "Memorandum"
},
{
"value": "c",
"label": "Provisional"
},
{
"value": "d",
"label": "Preliminary"
},
{
"value": "n",
"label": "Not applicable"
}
]
},
"recordModification": {
"name": "recordModification",
"defaultValue": " ",
"dropdownSelect": [
{
"value": " ",
"label": "Record not modified"
},
{
"value": "s",
"label": "Record shortened"
},
{
"value": "x",
"label": "Non input chars. present"
}
]
},
"cataloguingSourceCode": {
"name": "cataloguingSourceCode",
"defaultValue": "u",
"dropdownSelect": [
{
"value": " ",
"label": "National bibliographic agency"
},
{
"value": "c",
"label": "Co-operative cataloguing programmes"
}
]
}
}
}
HTTP status code 400
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Body
Media type: text/plain
Type: any
Example:
unable to list auth-fixed-fields-code-groups -- malformed parameter 'query', syntax error at column 6
HTTP status code 500
Internal server error, e.g. due to misconfiguration
Body
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Collection of auth-header-type items.
Get the value for the header type of 008 authority tag
get /marccat/auth-header-types
Get the value for the header type of 008 authority tag
Query Parameters
- lang: (string - default: en - pattern: [a-zA-Z]{2})
Requested language. Optional. [lang=en]
HTTP status code 200
Return the header type values
Body
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "authority header type for 008 tag",
"type": "object",
"description": "the values for header type for the code 008 tag",
"properties": {
"headingTypes": {
"type": "array",
"description": "list of heading types values",
"items": [
{
"type": "object",
"description": "heading types for 008 tag",
"properties": {
"value": {
"type": "integer",
"description": "the header type value"
},
"label": {
"type": "string",
"description": "the header type label"
}
},
"required": [
"value",
"label"
]
}
]
}
},
"required": [
"headingTypes"
]
}
Example:
{
"headingTypes": [
{
"value": 10,
"label": "008"
}
]
}
HTTP status code 400
Bad request
Body
Media type: text/plain
Type: any
Example:
Required String parameter 'lang' is not present
HTTP status code 500
Internal server error
Body
Media type: text/plain
Type: any
Example:
Error in validation