Closed jacquerie closed 8 years ago
@lnielsen @jirikuncar any opinions on this? We have this PR https://github.com/inspirehep/inspire-next/pull/1143 that could make use of it.
Or you think it is better to keep the utility just in our overlay?
Note: just to give a bit of context to this proposed addition: this is useful e.g. with MARC, when your input is not perfect and say: it has multiple $a
in one field, rather than multiple fields with a single $a
each. With such decorator it would be much easier to build rules that are able to treat both cases and output consistent JSON.
Here's the thing I was mentioning yesterday on Gitter. Instead of filing an issue I decided to send a PR.
CC: @kaplun