Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • sendSMS – adds a send-to option to text the title's call number to a phone number.
  • reportProblem – adds a prominent 'report a problem' link to the service container on the full record page.
  • multipleAnalytics – adds Google or Matomo Analytics to Primo
  • customUResolvercustomUresolver – replaces Get It Menu with one of our own design

...

The section in brackets is an array.  To add the sendSMS feature, for example, you need to add it to the array, like this:

...

var app = angular.module('viewCustom', ['sendSms','reportProblem','multipleAnalytics', 'customUresolver', 'angularLoad']);

This loads the modules into your custom.js file.  Next, you'll configure them.

...

app.constant('analyticsOptions', {
enabled: true,
siteSource: 'ga',
siteId: 'UA-12345678-1',
siteUrl: 'https://www.google-analytics.com/analytics.js',
defaultTitle: 'OneSearch'
});

customUresolver

Set showCompact to true if you want the item display to always be 'collapsed' when there is more than one item.

illURL should be your ILLiad URL.


app.constant('customUresolver', {
enabled: true,
showCompact: false,
illURL: 'https://illiad.example.edu/illiad/illiad.dll'
});