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

Index fields to match ActiveFedora-based models #5548

Closed
wants to merge 12 commits into from

Conversation

cjcolvar
Copy link
Member

@cjcolvar cjcolvar commented Mar 16, 2022

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

# @return [Object] the default model mapper
def default_model_mapper
@default_model_mapper ||= ActiveFedora.model_mapper unless disable_wings
end
Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor

@elrayle elrayle left a 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.

@stale
Copy link

stale bot commented Apr 18, 2022

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.

@stale stale bot added the stale label Apr 18, 2022
@stale stale bot closed this May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hyrax::AdministrativeSet shows 0 Total Items and No entries found under Works in This Set when it has works
2 participants