Dewey call number normalizer does not recognize 3 digit dewey numbers that follow a prefix
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Undecided
|
Unassigned | ||
2.2 |
Won't Fix
|
Undecided
|
Unassigned | ||
2.3 |
Fix Released
|
Undecided
|
Unassigned | ||
2.4 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Version 2.3
With these call numbers:
357.61 MAG
357 MAG
E 357.61 MAG
E 357 MAG
The dewey call number normalizer gives the following keys:
357_00000000000
357_61000000000
E_357_610000000
E_0000000000000
Note the treatment of the 3 digit whole number changing drastically when it follows a prefix.
The result of this behavior, combined with the result of another dewey normalizer bug (#1131895), can produce a sort order like this:
call number sortkey
DVD 2012 | DVD_00000000000
DVD 211 RELIG | DVD_00000000000
DVD 419 AMERI | DVD_00000000000
DVD 570 LIFE | DVD_00000000000
DVD 635 REBEC | DVD_00000000000
DVD 775 POINT | DVD_00000000000
DVD 956 BUDRU | DVD_00000000000
DVD BREAK 1 | DVD_00000000000
DVD BREAK 2 | DVD_00000000000
DVD GLEE 1 | DVD_00000000000
DVD OFFIC 1 | DVD_00000000000
DVD OFFIC 2 | DVD_00000000000
DVD 001.942 LIES | DVD_001_
DVD 229.913 WALKI | DVD_229_
DVD 305.235 BILLY | DVD_305_
DVD 30 2 | DVD_30_
DVD 30 3 | DVD_30_
DVD 355.8 RADIO | DVD_355_
DVD 419.7 AMERI | DVD_419_
DVD 612.63 LIFES | DVD_612_
DVD 613.7192 PILAT | DVD_613_
DVD 704.086 CATS | DVD_704_
DVD 808.51 LEARN | DVD_808_
DVD 973.931 SEVEN | DVD_973_
DVD ABYSS | DVD_ABYSS
DVD BATMA | DVD_BATMA
DVD EXORC | DVD_EXORC
DVD FARGO | DVD_FARGO
DVD GODFA | DVD_GODFA
DVD IRON | DVD_IRON
DVD NERO 2 PT.3 | DVD_NERO_
DVD NERO 2 PT.4 | DVD_NERO_
DVD PROME | DVD_PROME
Whereas we would expect to see something more like this:
DVD 001.942 LIES | DVD_001_
DVD 211 RELIG | DVD_211_
DVD 229.913 WALKI | DVD_229_
DVD 305.235 BILLY | DVD_305_
DVD 355.8 RADIO | DVD_355_
DVD 419 AMERI | DVD_419_
DVD 419.7 AMERI | DVD_419_
DVD 570 LIFE | DVD_570_
DVD 612.63 LIFES | DVD_612_
DVD 613.7192 PILAT | DVD_613_
DVD 635 REBEC | DVD_635_
DVD 704.086 CATS | DVD_704_
DVD 775 POINT | DVD_775_
DVD 808.51 LEARN | DVD_808_
DVD 956 BUDRU | DVD_956_
DVD 973.931 SEVEN | DVD_973_
DVD ABYSS | DVD_ABYSS
DVD BATMA | DVD_BATMA
DVD BREAK 1 | DVD_BREAK_1
DVD BREAK 2 | DVD_BREAK_2
DVD EXORC | DVD_EXORC
DVD FARGO | DVD_FARGO
DVD GLEE 1 | DVD_GLEE_1
DVD GODFA | DVD_GODFA
DVD IRON | DVD_IRON
DVD NERO 2 PT.3 | DVD_NERO_2_PT_3
DVD NERO 2 PT.4 | DVD_NERO_2_PT_4
DVD OFFIC 1 | DVD_OFFIC_1
DVD OFFIC 2 | DVD_OFFIC_2
DVD PROME | DVD_PROME
Pulled these out separately, as I'm not really sure what we could expect from tricky ones like these (movie title 2012, television title 30 rock seasons 2 & 3)
DVD 2012
DVD 30 2
DVD 30 3
Changed in evergreen: | |
milestone: | 2.4.0-beta → 2.4.0-rc |
Changed in evergreen: | |
milestone: | 2.4.0-rc → none |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
What happens if you put the prefix for the call number into the call number's "Prefix" column, instead of prepending it directly to the call number label? I think the Dewey normalizer is expecting to normalize Dewey call numbers; having strings dumped in front of the Dewey call number makes it not be a Dewey call number.