...
- 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.
- customUresolver – replaces Get It Menu with one of our own design.
- hideRapdio – hide Rapido offers when full-text is available.
...
var app = angular.module('viewCustom', ['sendSms','reportProblem','multipleAnalytics', 'customUresolver', 'angularLoad']);
Note: Do not do this for the hideRapido feature. That is not implemented as a module.
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'
});
...
Set showCompact
to true
if you want the item display to always be 'collapsed' when there is more than one item.
Set showRequestInViewIt
to true
if you want to show request options when there is no physical holdings (when there is a view it menu only, should result in an illiad link).
Set requestShowOptions
to true
if you want to display options for requests placed - these are dynamically pulled from the original Alma request form and should be configured there.
illURL
should be your ILLiad URL.
locateURL is the url used for the item/holding locate button. The replaceable variables must include the curly brackets. These variables are the same ones used by Primo in the default maps/locate settings:
- {library_code}
- {location_code}
- {location_name}
- {call_number}
- {title}
app.constant('customUresolver', {
enabled: true, //required -- default is false
showCompact: false, //optional -- default is false
showRequestInViewIt: false, //optional -- default is false
requestShowOptions: false, //optional -- default is false
illURL: 'https://illiad.example.edu/illiad/illiad.dll', //required -- default is ''
locateURL: 'http://www.library.edu/primo-location-maps/{library_code}/{location_code}/{call_number}' //optional -- default is ''
});
hideRapido
To hide the Rapido tile when full-text is available, simply add this to your local package:
...