-
Notifications
You must be signed in to change notification settings - Fork 0
sortFields
nvolk edited this page May 21, 2024
·
1 revision
sortFields.js
Originally fully in from marc-record.js. Non-NatLibFi specific sorting rules are still there (though used by this validator.) This validator/fixer handles various sorting cases:
- Sort by tag (numerically). Also Aleph's non-numeric tags as well (semantically, not alphabetically)
- Sort alphabetically (applies only to LOW and SID fields)
- Sort by index term (applies to certain 6XX fields). Certain indicator and $2 values precede other values (NatLibFi preference order)
- Sort by relator term. People with certain relator terms are more important than others.
- Sort by subfield $6 occurrence number
- Prefer $9 FENNI (Finnish lexicon hack)
- Sort by $8 link and sequence number (Field with $8 1.1\x preceds field with $8 1.2\x and field with $8 2.1\x etc)