Revised: July 18, 2023
Each View created for Primo VE can be customized with a Customization Package. The Customization Package allows for both simple customizations like logos, colors, and the homepage HTML cards, and for more advanced customizations like custom CSS and JavaScript code. The Shared Customization Code section of this page links to pages with CSS and JavaScript code customizations that I-Share institutions may wish to implement in their own Primo VE Views.
If you have questions or need assistance implementing these solutions, or have CSS/JavaScript customizations to share with other institutions, please contact CARLI Support.
/* This collapses "Get It From Other Institutions" dropdown by default in full record. GJC 12/15/2020 */
Here is a basic overview of how to work with a Customization Package:
zip –r [target file].zip [my_view] -x "*.DS_Store"
See also theEx Libris documentation on Creating a Customization Package for Primo VE.
Each share customization described below requires code be added to one or two of the default files in the Primo VE Customization Package:
The custom1.css can be edited manually and is also customized by Primo Studio. If you used Primo Studio to customize your Primo VE view, the system will likely have inserted a large block of CSS to the custom1.css file starting with the comment /* primary color hook */. Leave anything you find in the file there, and to add new CSS customizations to the custom1.css file, paste the new commented-out description and new active code block into the file above or below any other existing CSS customization code blocks.
The default custom.js file comes with the basic structure necessary for the file function. Do not delete any of the existing text shown in black below, though some customizations like the Primo VE HathiTrust Add-On linked below may require you to EDIT the existing text***. Insert new JavaScript customization in the area indicated in blue below in the custom.js file:
(function () {
"use strict";
'use strict';
var app = angular.module('viewCustom', ['angularLoad']);
/* INSERT CUSTOM COMMENTS AND JAVASCRIPT CODE BLOCKS HERE */
}) ();
***If you are using more than one Angular module in the custom.js file, include them all in the single "var app" definition in bracket section separated by commas. For example:
var app = angular.module('viewCustom', ['angularLoad', 'hathiTrustAvailability', 'anotherModule']);
Hide RefWorks in Primo VE Dropdown Menu - CSS
Show Menu Links on Primo VE Services Pages - CSS
Collapse Get It from the Other Institutions section of the Full Record page - JavaScript - UPDATED 11/7/2022 for Angular 1.8
Primo VE HathiTrust Add-On - CSS and JavaScript
Add a Top Warning Bar to Primo VE - CSS
Add a Custom "Report a Problem" button to the "Send To" Actions - JavaScript
Change Color of Yellow Alert Bar in Primo VE - CSS