As a user, I am familiar with online retailers that have buttons for actions like “Add to My Cart” or “Place an Order.” I expect that same experience when I request a book or item in Primo.
Modify CSS to transform the request link in Primo New UI into a button.
- Configuration time: 15 – 30 min
- Configuration difficulty: Low to Medium
- Changes Live in Primo New UI: Immediately
- Primo New UI
- Notepad ++ or your preferred editing tool
Go to Alma>Settings>General>Delivery System Skins
If you haven’t already, create a new skin. There are directions below for creating a new skin specifically for modifying the delivery tabs in Primo.
Branding the Delivery Tabs
The Request link’s appearance in Primo is determined by the div
Below is a modification of this div to change the link into a button, with notes in parentheses and changes in bold.
color: #2D2DFD; (This is the link color)
font-size: 2em; (This determines the size of your font and the button)
border-top: 1px solid #CCCCCC;
border-right: 1px solid #CCCCCC;
border-bottom: 1px solid #CCCCCC;
border-left: 1px solid #CCCCCC;
background-color: #ede49e; (This is the background-color of your button)
The border properties give the link the rectangular button edge.
Ideally, you should test changes to your request link in your browser (using Firefox web developer tools such as Inspector). When you have the look and feel you like for the request button in your browser, copy the div and the changes. Open up the mashup_new.css file, make the changes to the div, and follow the directions in the linked knowledgebase article “Branding the Delivery Tabs” so the new “skin” will appear in the delivery tabs.
If the request link text appears slightly off-center in the button, you need to make slight modifications to the otb_mashup_newversion=May2019 (the css file name displays the current date). This is a separate CSS file. OTB means out of the box.
To access the otb_mashup CSS file you’ll need to go to a browser, right click on the request button and select inspect or inspect element (depending on the browser) and locate the CSS sheet, otb_mashup_newversion=May2019 (current date). Copy the CSS sheet in its entirety into a new CSS file.
The padding of the linked text inside the button is determined by the div
Ideally, you should test padding adjustments in your browser (using Firefox web developer tools such as Inspector) before altering the otb_mashup file. After testing in the browser you can edit the otb_mashup file. After you are done editing, you’ll need to put the otb_mashup file on a server somewhere so that your version of the otb_mashup overrides the default version of this file. One option is to place otb_mashup file into the customization package in the Back Office. Go into the Backoffice>Deploy and Utilities>Customization Manager and download your customization package. Drop your otb_mashup file into the CSS folder in the customization package, and upload the package. Remember to deploy the changes in the Back Office. You can now link to the otb_mashup file in the mashup_new.css file.
Place this line at the top of your mashup_new.css file.
My changes to the otb_mashup file aren’t showing up in Primo
- Test the linking to your otb_mashup file by copying and pasting the link your included in your mashup.css file into a browser
Ex Libris Relevant Guides and Release Notes
- Branding the Delivery Tabs https://knowledge.exlibrisgroup.com/Alma/Product_Documentation/010Alma_Online_Help_(English)/060Alma-Primo_Integration/060Configuring_Alma_Delivery_System/090Branding_the_Delivery_Tabs#Creating_a_New_Skin
- How to Configure a CSS Skin for the Alma Services Page in Primo? https://knowledge.exlibrisgroup.com/Alma/Knowledge_Articles/How_to_Configure_a_CSS_Skin_for_the_Alma_Services_Page_in_Primo%3F