-
Notifications
You must be signed in to change notification settings - Fork 348
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
Make MARC subject heading sort behavior configurable #3644
Make MARC subject heading sort behavior configurable #3644
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work, @rominail -- thank you for the contribution!
I have just a couple of minor stylistic suggestions below (and please feel free to disagree with me if you have strong feelings to the contrary).
It might also be nice to add a test case to SolrMarcTest.php to cover the new scenario. I'm happy to help with that if you need me to!
module/VuFind/src/VuFind/RecordDriver/Feature/MarcAdvancedTrait.php
Outdated
Show resolved
Hide resolved
module/VuFind/src/VuFind/RecordDriver/Feature/MarcAdvancedTrait.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @rominail -- a few more very minor points of style.
Please let me know if you'd like me to add a test for you, or if you plan to work on that. Once we have test coverage, this should be just about ready to merge.
module/VuFind/src/VuFind/RecordDriver/Feature/MarcAdvancedTrait.php
Outdated
Show resolved
Hide resolved
module/VuFind/src/VuFind/RecordDriver/Feature/MarcAdvancedTrait.php
Outdated
Show resolved
Hide resolved
module/VuFind/src/VuFind/RecordDriver/Feature/MarcAdvancedTrait.php
Outdated
Show resolved
Hide resolved
I made all the modifications |
Thanks, @rominail. If you have an example MARC record containing out-of-sequence subject headings, we could create a new test fixture by indexing it and then capturing the Solr response for a request to retrieve it. We could add the test fixture to the fixtures directory and adjust the test case to use it. It would also probably make sense to use a If you're not sure how best to set up the fixture, I'm also happy to help with that, but if you could at least provide a suitable MARC record that would be a useful starting point. |
I made the test, let me know what you think of it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @rominail, the test looks great! My last thought is simply that we might want to rename the new config setting for clarity; see below. Please let me know what you think about that (and my related comments), and once that detail is settled, this can be merged.
Thanks, @rominail -- sorry for breaking your PR. I was trying to save you some time by making small fixes via GitHub while my test VM was tied up with another process, but I clearly didn't quite do everything correctly. :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of proposed finishing touches:
module/VuFind/src/VuFind/RecordDriver/Feature/MarcAdvancedTrait.php
Outdated
Show resolved
Hide resolved
NP, thanks for helping :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working as expected now. Thanks again!
Subjects appear in item display in the same order they appear in the MARC record, e.g. if a 651 is entered before a 650, the display matches that.
Example : https://catalog.lib.msu.edu/Record/folio.in00006796642#details
TODO