UNPKG

@natlibfi/marc-record

Version:

MARC record implementation in JavaScript

22 lines (21 loc) 751 B
{ "description": "Should return empty array if no tags match", "skip": false, "input": { "leader": "02848ccm a22005894i 4500", "fields": [ {"tag": "001", "value": "A"}, {"tag": "001", "value": "B"}, {"tag": "003", "value": "A"}, {"tag": "100", "ind1": " ", "ind2": " ", "subfields": [{"code": "a", "value": "A"}]}, {"tag": "245", "ind1": " ", "ind2": " ", "subfields": [{"code": "a", "value": "A"}, {"code": "b", "value": "B"}]}, {"tag": "245", "ind1": " ", "ind2": " ", "subfields": [{"code": "a", "value": "A"}, {"code": "b", "value": "B"}, {"code": "c", "value": "C"}]} ] }, "operations": [ { "name": "getFields", "args": {"tag": "246"}} ], "returns": [], "immutable": true }