Customizing the display for Collection Discovery in Primo VE

Answer

Ex Libris Documentation: Configuring the Display of Collections


CSS Tips and Tricks:

The Collection Discovery area of Primo VE does not automatically inherit the CSS color scheme that you've set up for your views. 

Background:

To adjust the background color for the Collections header, use: 

prm-collection-gallery-header .collection-header-inner {
    background-color: yourcolorcode

 


Thumbnails

General info:

  • Image files must be in .jpg, .jpeg, or .png format with a maximum size of 500 KB.
  • If you do not define any thumbnails, the system displays a maximum of four images, which includes the logo plus the first 3 images found from the collection's sub-collections and items.
  • If you don't load any images, Ex Libris will provide you with a default image, which you may not like. You can design and add your own thumbnails, even just solid color blocks.
  • Keep accessibility in mind as you're designing your images

Katie Utschig from the Wisconsin SWITCH Consortium shared some excellent best practices on the Alma-L (10/26/20), including:

  • The horizontal middle-third of an image is what will be used if it's the page banner OR the tile banner if you're using multiple images
  • Remember that the name of your collection will show up on top of the image. According to Katie's findings, "If the image is the only image in the tile, the text overlays the middle. If the image is the tile banner, it will overlay the bottom. If the image is a secondary image, it will overlay the top of the image."

Adding images:

There are multiple places to add images in a collection and they work in different ways.

General Tab: a thumbnail loaded on the General tab will be used if no images have been added to the Discovery tab:

general tab


Discovery Tab:

If you choose to add images to the Discovery tab, those will take precedence over what's in the General tab. 

discovery tab

  • The system uses the first image in the Manage Discovery Thumbnails list for the banner on the collection's page.
  • You can define up to 20 images, but the system will display a maximum of four images in the collection's tile, starting from the top of the Manage Discovery Thumbnails list. Katie notes, "It is easy to move images around to keep the tiles looking fresh and different."

from Ex Libris documentation - image order

  • Sub-collections: Sometimes the top level collection will just be a holder for several sub-collections. If that's the case, according to Katie, "A single image in the Discovery Tab will fill the entire tile and the middle horizontal third will be the page banner. Two or more images in the Discovery Tab will split the tile. The top half will be the horizontal middle-third of the first image in the Discovery Tab."
  • Contents: if your collection or sub-collection has items, the tile will be automatically be split. According to Katie, "If there are no images in the Discovery Tab, Primo will use the horizontal middle-third of the image in the General Tab for the top-half of the tile and the default image icon for three images in the bottom half of the tile. THEREFORE: If the Collection/Sub-Collection has items, be sure to upload an image(s) in the Discovery Tab to control the visual."
  • Banner: 
    • The first image in your Discovery list becomes the background for the Banner
    • Katie notes that you need to focus on the middle third of the image, and, "You can use PowerPoint (or other software) to create your own basic images and they can be quite effective and used to tie a "theme" together."

Upstate collection banner
Banner example from Upstate's collections


COR Primo Customizations:

Here are CSS modifications that COR is using in their collections portal:

/* Collections changes */

/*make collection pins red not default color  prm-icon md-icon.md-primoExplore-theme, change for color of scrolling top/pins buttons*/

.is-grid-view prm-gallery-item .collection-element .item-actions .md-button, .is-grid-view prm-gallery-item .collection-element .item-actions button, prm-icon md-icon, .result-item-actions .pin-button md-icon {

                color: #B91000!important;

                }

               

/*collection gallery gray to our colors then fix pins/top colors links from aqua to black  , md-backdrop.md-opaque*/

prm-collection-gallery-header .collection-header-inner.has-transparent-topbar, collection-header-inner has-transparent-topbar layout-column has-backdrop-image, prm-collection-gallery-header .collection-header-inner.has-backdrop-image::before, prm-collection-gallery .padded-container

{

   background-color: #E7E3DB;

                color: #000000;

               

                }

              

prm-collection-discovery-view-switcher .md-button.is-active, prm-collection-discovery-view-switcher .md-button.is-active:focus, prm-collection-discovery-view-switcher .md-button.is-active:hover, prm-collection-navigation-breadcrumbs-item.root-item .md-button span, prm-collection-navigation-breadcrumbs-item .md-button.button-as-link.link-alt-color {

                background-color: #E7E3DB;

                color: #000000;

}

/*--------Top Banner ---------------*/

/* collection add topbar */

.prm-explore-main .header .transparent-top-bar div, prm-explore-main .header, prm-explore-main .header .transparent-top-bar:before, prm-search-bookmark-filter .md-button {

                background-color: #B91000;

                color: #FFFFFF;

                }

 

 /* try to make logo transparent background jep 20190317 - use white to mimic transparency */

/* add product-logo for collections */

prm-topbar prm-logo, prm-logo .product-logo, prm-collection-search md-toolbar.default-toolbar  {

    background-color: white;

/* end collections changes */                                                                                                    

 

/* collection wrapper*/

md-backdrop.md-opaque

{

                background-color: #8A2A2B !important;

                opacity: 1;

}

 

Topics

  • Last Updated Jul 20, 2023
  • Views 2885
  • Answered By Michelle Eichelberger

FAQ Actions

Was this helpful? 8 0

Comments (1)

  1. Thank you for this. I would like to add that all changes in collection discovery can take a while to show up. Code to add author and year: js https://primoviews.org/js-snippets/#collection-discovery CSS https://primoviews.org/css-snippets/css-collection-discovery (which links back to here)
    by Manuela Schwendener on Mar 03, 2023