Primary use case MARC data. Could be hard-coded in lib/record. In any case, record types are
[x] either specified for all input records with --type
[ ] or determinde from a plugin function ("recordTypeProvider"), e.g. marc21bibliographicRecordType
Default could be to enable marc21bibliographicRecordType unless --type "" is given.
The provider could be set with -x, --extension [name] where name is a node package or local file. The extension can provide methods detectRecordTypes(fields) as well as rules ( #15), e.g. loadRule returning an object with methods checkRecord, checkField, checkSubfield .
Primary use case MARC data. Could be hard-coded in
lib/record
. In any case, record types are--type
marc21bibliographicRecordType
Default could be to enable marc21bibliographicRecordType unless
--type ""
is given.The provider could be set with
-x, --extension [name]
wherename
is a node package or local file. The extension can provide methodsdetectRecordTypes(fields)
as well as rules ( #15), e.g.loadRule
returning an object with methodscheckRecord
,checkField
,checkSubfield
.