@natlibfi/marc-record
Version:
MARC record implementation in JavaScript
26 lines (25 loc) • 776 B
JSON
{
"description": "Should return control fields (fields with value)",
"skip": false,
"input": {
"leader": "02848ccm a22005894i 4500",
"fields":
[
{"tag": "001", "value": "bar"},
{"tag": "002", "value": "bar"},
{"tag": "003", "value": "bar"},
{"tag": "504", "ind1": " ", "ind2": " ", "subfields": [{"code": "a", "value": "bar"}]},
{"tag": "502", "ind1": " ", "ind2": " ", "subfields": [{"code": "a", "value": "bar"}]},
{"tag": "506", "ind1": " ", "ind2": " ", "subfields": [{"code": "a", "value": "bar"}]}
]
},
"operations": [
{ "name": "getControlfields" }
],
"returns": [
{"tag": "001", "value": "bar"},
{"tag": "002", "value": "bar"},
{"tag": "003", "value": "bar"}
],
"immutable": true
}