-
Notifications
You must be signed in to change notification settings - Fork 120
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
Index fields to match ActiveFedora-based models #5548
Conversation
0e05f28
to
f5ddd8c
Compare
7d2c261
to
1fcbdf1
Compare
# @return [Object] the default model mapper | ||
def default_model_mapper | ||
@default_model_mapper ||= ActiveFedora.model_mapper unless disable_wings | ||
end |
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.
What is default_model_mapper if disable_wings is true?
@@ -75,7 +75,7 @@ def work? | |||
end | |||
|
|||
# Method to return the model | |||
def hydra_model(classifier: ActiveFedora.model_mapper) | |||
def hydra_model(classifier: Hyrax.config.default_model_mapper) | |||
first('has_model_ssim')&.safe_constantize || | |||
classifier.classifier(self).best_model |
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.
What happens if default_model_mapper isn't set, which appears to happen if disable_wings is true?
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.
I really like what you've got going here.
9acc610
to
c1c80fa
Compare
This issue has been automatically marked as stale because it has not had activity for 30 days. It will be closed if no further activity occurs within 14 days. Thank you for your contributions. |
Fixes #5497
This PR ballooned and isn't done yet since I'm still working on bringing in some feature tests. This will probably be broken down into smaller more focused PRs.
@samvera/hyrax-code-reviewers