CSU Library Website Customization
- Home
- Exlibris Primo VE Customization
- Exlibris Primo New UI Customization at CSU
- Customize Get It Section
- Moving Send To bar
- Change the hover text for the main menu
- "Expand my results" when there are no results
- Add print journals to E-journals A-Z
- Change "Citation Linker" to "Citation Finder"
- Extra g in front of subject
- Change FRBR setting
- Citation doesn't always pull publisher information
- Availability text change
- Primo Search Logo
- Featured Result Bar
- Resource Recommender
- DOI Search
- BrowZine Primo Integration
- DSpace name change
- Remove "Available at" from Show Only Facet
- DSpace Date Display
- Display MARC 242 field
- Change Brief and Full View Labels
- Customize 5XX Fields
- Add Help Section to Primo Full View
- Add Almetrics to Full View
- Display DSpace Thumbnails in Primo
- Hide Showing expanded results box
- Pre-filter Search for Ebooks
- Create Digital Collections in Primo
- Citation Linker Customization
- SpringShare LibGuides Customization
- Microsoft Office Related
- Colorado Encyclopedia
- Omeka - Creating Avenir Site
Primo Search Logo: app.component('prmSearchBarAfter'
Goal:
Similar to California State University-Bakersfield and other institutions, the best solution is to split the Primo logo and the CSU Libraries’ logo, rather than combining them. A combined logo would decrease the proportions of the Ram’s Head and Libraries’ logo text to an unreadable size. Splitting the location of the logos allows the Libraries’ logo to retain its integrity and the Primo logo to receive the visual weight needed.
Source code studied and borrowed: CSU Bakersfield’s source code and The Primo New UI Customization Workflow Development Environment.
Solution:
Step 1: Add app.component('prmSearchBarAfter' to custom.js
app.component('prmSearchBarAfter', {
bindings: {parentCtrl: '<'},
template: '<div class="primo-search-logo"><a href="https://colostate-primosb.hosted.exlibrisgroup.com/primo-explore/search?vid=01COLSU&lang=en_US&sortby=rank"><img ng-src="custom/01COLSU/img/primo_logo.png" src="custom/01COLSU/img/primo_logo.png" alt="Primo Search"></a></div>'
});
Note: change href="YourURL" ng-src="path to your logo in custom/image folder" src="path to your logo in custom/image folder"
Step 2. logo file location
Add a logo file to your custom’s image folder. Our path for that image is custom/01COLSU/img/primo_logo.png
Step 3. Customize CSS
Code in step 1 will put the logo under the search box. Use CSS to put the logo to the left of the search box. Add the following code to custom1.css
@media (max-width: 970px) {
.primo-search-logo { display: none; }
}
@media (min-width: 970px) {
.search-wrapper { margin-left: 25%; }
.search-wrapper .flex-lg-10 { display: none; }
.search-wrapper .flex-lg-65 { max-width: 80%; }
.primo-search-logo {
display: block;
width: 25%;
text-align: center;
top: 35px; // Depend on your logo size, you need adjust the # of px here to make it center vertically to the search box
position: absolute;
}
.primo-search-logo img {
width: 90%;
max-width: 226px;
}
}
Step 4. Deploy
Zip the custom folder, make sure the Thumbs.db (if you use Windows) file in the img folder is deleted before you upload to Primo back office. Deploy. Refresh browser.