Skip to content

Add custom text when no records retrieved. Code updated for coming Primo switch to Angular 1.8.

Notifications You must be signed in to change notification settings

cindybowen/primo-custom-no-results-Ang1.8

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

primo-explore-custom-no-results

Add custom text when no records retrieved. (Original code includes link to expand results to PCI, which has been removed for this version.)

The OTB page in the Primo NUI for a no results search looks like this:

No results OTB

The custom js in this package allows you to adjust the text and other links you provide when a user isn't successful in their search. The js has been altered using the Ex Libris tool for bringing custom js into compliance with Angular 1.8, as linked from the upgrade announcement.

Here's how this version looks: NoRecordsCustom-test

If you use the HTML as given in the Angular component, you'll want to suppress the OTB tile in the CSS:

prm-no-search-result > md-card {
    display:none;
}

If you ONLY want to add link(s) to the pre-existing text, you can do so by removing the search suggestion section from the js. Your additions will display below the OTB tile.

About

Add custom text when no records retrieved. Code updated for coming Primo switch to Angular 1.8.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published