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

7.x solr thumbnail #663

Merged
merged 5 commits into from Jan 10, 2017

Conversation

Projects
None yet
5 participants
@MorganDawe
Copy link

commented Dec 12, 2016

JIRA Ticket: (https://jira.duraspace.org/browse/ISLANDORA-1870)

What does this Pull Request do?

Basic fix for SPARQL and SOLR thumbnail display width.

What's new?

Add a max-width to thumbnails using the SOLR Backend display

Example:

  • Added .islandora-object img max-width rule

How should this be tested?

  • Add a large .png as a thumbnail for an object (large as in 'width')
  • View object in a collection grid using the SOLR backend display (maintains aspect)
  • View object in a collection grid using SPARQL Legacy display (maintains aspect)

Note

Related in part to this ticket: https://jira.duraspace.org/browse/ISLANDORA-1609, i believe the ultimate solution is to ensure both displays are run thru the same preprocess functions, using the same HTML and CSS as each other. However, that may be to dramatic of a change outside of a major release.

Interested parties

Tag @Islandora/7-x-1-x-committers

@adam-vessey
Copy link

left a comment

Just a typo in the comment; otherwise, looks good and worked.

* does not exceed that of its parent container (ex: 20%).
*
* img styling (max-height) - Avoid making assumptions on max height here, allowing auto
* height based on max-width of 100%. Consider overrideing this file in your theme,

This comment has been minimized.

Copy link
@adam-vessey

adam-vessey Dec 14, 2016

s/overrideing/overriding/

This comment has been minimized.

Copy link
@MorganDawe

MorganDawe Dec 14, 2016

Author

Me fail English, that's unpossible

@MorganDawe

This comment has been minimized.

Copy link
Author

commented Jan 4, 2017

1 similar comment
@MorganDawe

This comment has been minimized.

Copy link
Author

commented Jan 10, 2017

@jordandukart

This comment has been minimized.

Copy link
Member

commented Jan 10, 2017

@DiegoPino

This comment has been minimized.

Copy link

commented Jan 10, 2017

@MorganDawe just quick, because I don't see any harm to make max with 100% (means I'm ok): does this addresses the note about unifying the CSS approach? or is this a temporary solution? I see that specific CSS islandora-object class not being used that broadly, so how this affects/fixes the problem?

@dannylamb

This comment has been minimized.

Copy link

commented Jan 10, 2017

@DiegoPino If you would like to see a unified approach, feel free to make a ticket in JIRA and we'll address it.

@dannylamb dannylamb merged commit 3452767 into Islandora:7.x Jan 10, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@DiegoPino

This comment has been minimized.

Copy link

commented Jan 10, 2017

@dannylamb thanks for your suggestion. The unified approach was discussed in the comitters call as the way to go as noted here https://jira.duraspace.org/browse/ISLANDORA-1870?focusedCommentId=53300&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-53300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.