The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 67201fcf authored by Demian Katz's avatar Demian Katz
Browse files

When generating Dewey sortables, don't skip invalid values.

- Resolves VUFIND-1021.
parent 8294a2f2
No related merge requests found
......@@ -136,6 +136,11 @@ public List getDeweySortables(Record record, String fieldSpec) {
// If this is a valid Dewey number, return the sortable shelf key:
if (CallNumUtils.isValidDewey(current)) {
result.add(CallNumUtils.getDeweyShelfKey(current));
} else {
// If the number is invalid, we can't normalize it, but we still want
// to put an entry in the sort list so that things don't get out of sync
// for the AlphaBrowse indexer -- we'll just use the raw string
result.add(current);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment