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

Fields displayed on search results come from config #1954

Merged
merged 1 commit into from May 2, 2016

Conversation

jcoyne
Copy link
Contributor

@jcoyne jcoyne commented May 2, 2016

@projecthydra/sufia-code-reviewers

Instead of requiring implementers to override a view template to change
the values that display on the search results page, use the Blacklight
configuration as it was intended. This will pave the way for dynamic
configuration features in the future.

There are also a few changes here that make the views more agnostic
about the model type by moving generic_work partials default partials

Fixes #1947

@jcoyne jcoyne force-pushed the no_hard_code_attributes branch 2 times, most recently from 4898712 to 469e1e9 Compare May 2, 2016 17:21
Instead of requiring implementers to override a view template to change
the values that display on the search results page, use the blacklight
configuration as it was intended. This will pave the way for dynamic
configuration features in the future.

There are also a few changes here that make the views more agnostic
about the model type by moving generic_work partials default partials

Fixes #1947
<tr>
<th><span class="attribute-label h4">Depositor:</span></th>
<td>
<% if work.proxy_depositor %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this logic in the new stuff?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presently it's just displaying proxy_depositor as Depositor if it exists. If it doesn't exist, it only displays the Owner field. I think that makes sense. Why do we want to see the depositor if it's the same as the owner?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency, but I'm not that attached to this behavior.

@mjgiarlo mjgiarlo merged commit 4c6d26c into master May 2, 2016
@mjgiarlo mjgiarlo deleted the no_hard_code_attributes branch May 2, 2016 18:32
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.

None yet

2 participants