Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

There are currently three optional features in the CSU Central Package that can be enabled in your local package custom.js file.

  • 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

To enable an optional feature, you must do two things:

1. Include the feature name in the array that initializes the app variable at the top of your custom.js file

Currently, you custom.js has this line near the top of the file: 

var app = angular.module('viewCustom', ['angularLoad']);

To add the sendSMS feature, you would add it to the array, like this:

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

Additional features can be added as well, separated by a comma:

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