sul-dlss / cocina-models

Cocina repository data model (implemented in Ruby)
https://sul-dlss.github.io/cocina-models/
3 stars 0 forks source link

Fix nonsorting #381

Closed justinlittman closed 2 years ago

justinlittman commented 2 years ago

Currently, if a nonsorting note is found, the nonsorting characters are padded to the length in that note. Otherwise, the nonsorting characters are not padded.

Change so that if a nonsorting note is not found, the nonsorting characters are padded by one unless the nonsorting characters ends with an apostrophe or a hyphen.

cc @arcadiafalcone