Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move away from mods parsing in search results #2042

Merged
merged 1 commit into from
Nov 13, 2018
Merged

Conversation

mejackreed
Copy link
Contributor

@mejackreed mejackreed commented Oct 10, 2018

In conjunction with sul-dlss/searchworks_traject_indexer#224 this fixes #1987

This approach could be controversial, so I'll outline my rationale:

To keep current functionality we would need to create/invent a custom data structure that should be understood by both the indexer and SearchWorks. This seemed potentially brittle given that the mods logic could change and without knowing if we have changing future requirements. Though this approach assumes that the content is indexed and displayed with the same version of the ModsDisplay gem.

If the ModsDisplay gem is updated in SearchWorks, the change will also need to happen in the indexer. Need to discuss w/ @jvine about the ModsDisplay updates and how the name may change.

UPDATE 11/13/2018

This PR is updated now to be backwards compatible with an index that does not yet have the new fields. As these new fields are added, the view will look for those fields instead of parsing the mods. Finally, after the entire new index is in place, we can remove the TODO blocks.

Local example: http://127.0.0.1:3000/catalog?utf8=%E2%9C%93&search_field=search&q=47

screen shot 2018-11-13 at 1 07 57 pm

@coveralls
Copy link

coveralls commented Oct 10, 2018

Coverage Status

Coverage remained the same at 96.823% when pulling 7bc90a6 on no-mods-parsing into 863c26b on master.

@cbeer cbeer merged commit d8d5258 into master Nov 13, 2018
@cbeer cbeer deleted the no-mods-parsing branch November 13, 2018 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stop parsing MODS in search results
3 participants