Title browse has display and sorting issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The title browse currently displays all the data from our custom <titleNonfiling> tag in MODS32. Since the "title" portion isn't currently being run through "chopPunctuation", we get whatever punctuation happened to be in the MARC field (e.g. "Linux pocket guide /"). Unfortunately, if we do use chopPunctuation on the title, we then end up losing the punctuation needed to separate subtitles from titles (e.g. "vi editor : pocket reference" becomes "vi editor pocket reference"), which is also un-good.
There are a lot of paths to fixing this, but I think the simplest would be to further customize our already custom <titleNonfiling> field and have it pull double-duty. Basically, since we already got rid of <nonSort>, let's complete the process and dump <subTitle> as well, essentially treating the <title> as a preformatted display field. This would leave us with something very simple, like:
I think we should have a broader discussion about how we are using/customizing the MODS32 stylesheet, but short term, does anyone see a problem with this? I couldn't find any code which referenced or used <subTitle> directly, so I believe this accomplishes what we need without side-effects.
I'd really like to get this into 2.5.0-rc, since it would involve a lot of reingesting to fix later.
Thoughts? Thanks!
summary: |
- Browse display has trailing punctuation + Title browse has display and sorting issues |
tags: | added: 2.5-release-blocker |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Ok, I am hijacking my own bug, because the problem goes a little deeper than this. Since the title browse is currently being populated from <titleNonfiling>, and the browse_sort_xpath can only narrow the main metabib_field xpath used for display, the current title browse sorting is including the non-filing characters. I am pretty sure that isn't what we want, since that kinda defeats the purpose of non-filing characters.
What it comes down to is that we cannot use a single metabib_field entry for both search and browse of titles, since we are purposely adding the non-filing characters in the <titleNonfiling> node in a non-separable way, yet we need to separate them off for the browse sorting.
In short, I think we need to properly re-add a 'Title Proper (Browse)' configuration to the default metabib_field entries, and have it configured for browse alone, and turn off the browse settings on 'Title Proper'. Doing so removes the need to change <titleNonfiling> as outlined above, since we can go back to the stock MODS title field, but I think we might want to take the above steps anyway to help out anyone using <titleNonfiling> for display (including our future selves).
Thoughts?