UNPKG

@natlibfi/marc-record

Version:

MARC record implementation in JavaScript

24 lines (23 loc) 695 B
{ "description": "Should not alter record if remove fails", "skip": false, "input": { "leader": "02848ccm a22005894i 4500", "fields": [ {"tag": "001", "value": "bar"}, {"tag": "002", "value": "bar"}, {"tag": "003", "value": "bar"}, {"tag": "004", "value": "bar"}, {"tag": "002", "value": "foo"}, {"tag": "005", "value": "bar"} ] }, "operations": [ { "name": "removeField", "args": { "string": "002"}}, { "name": "removeField", "args": { "regexp": "002|003"}}, { "name": "removeField", "args": { "field": { "tag": "002", "value": "bar"}} }, { "name": "removeField", "args": { "index": 999}} ], "immutable": true }