Replace several codes with flags when codes can be repeated and replace ranges such as 0-9 with patterns or explicit lists of codes. This makes the schema valid Avram 0.9.6 as tested with avram-js 0.6.6.
@gegic This requires to also extend UnimarcSchemaReader method getPositions to support:
pattern to specify a position (121$b/02-03 and 135$a/05-07)
flags alternative to codes when a code must be repeated to fill a position (extend getPositions)
groups to document pattern groups (this can be ignored as it is only for documentation, not for validation)
and
support referenced codelists (codes with string value referencing a codelist defined via root element codelists)
By the way in qa-catalogue MARC validaton flags are internally stored like codes with an additional boolean flag repeatableContents.
Replace several
codes
withflags
when codes can be repeated and replace ranges such as0-9
with patterns or explicit lists of codes. This makes the schema valid Avram 0.9.6 as tested with avram-js 0.6.6.@gegic This requires to also extend
UnimarcSchemaReader
methodgetPositions
to support:pattern
to specify a position (121$b/02-03
and135$a/05-07
)flags
alternative tocodes
when a code must be repeated to fill a position (extendgetPositions
)groups
to document pattern groups (this can be ignored as it is only for documentation, not for validation)and
codes
with string value referencing a codelist defined via root elementcodelists
)By the way in qa-catalogue MARC validaton
flags
are internally stored likecodes
with an additional boolean flagrepeatableContents
.