Created by
Jeremy McWilliams, Lewis & Clark College
Description
This customization will show, if available, both the institution MMS ID, and the Network Zone MMS ID, with customizable labels. This capability was lost with the migration to Primo VE.
System Components
Alma Discovery (VE), Customization Package
Skill Set Requirements
Javascript, Alma Discovery (edit Full Record Display Details)
Accessibility
Not tested
Browser Support
Chrome, Firefox, Safari
Mobile Support
Android, iPhone
Implementation
Overview
- Add code to custom.js file in customization package.
- Update section of code to indicate labels, institution code, and last 4 digits of institution code.
- Zip package and load to view in Alma Discovery.
- Suppress or remove mmsid field in Alma Discovery Full Record Services details section.
Steps
- Turn on inheritance from the Central Package.
- Add code to custom.js file:
- Update your app variable so it includes showMmsid:
var app = angular.module('viewCustom', ['angularLoad', 'showMmsid', 'anotherCustomization']);
- Paste the following code inside the anonymous function in custom.js (and after the app declaration above), and update the values. You can find your institution’s 4-digit suffix on the Alliance MMS ID suffixes spreadsheet.
/* Insert show-mmsid component */
app.component('prmServiceDetailsAfter', {
template: '<show-mmsid></show-mmsid>'
});
/* Define custom options for labels, institution-specific trailing 4-digits for IZ MMS ID, and institution code */
app.constant('showMmsidOptions', {
"izLabel": "MMS ID (IZ)", /* Field value for IZ MMS ID */
"nzLabel": "MMS ID (NZ)", /* Field value for NZ MMS ID */
"izSuffix": "xxxx", /*institution-specific trailing 4 digits*/
"instCode":"01ALLIANCE_XXX" /* e.g. 01ALLIANCE_LCC*/
});
- Update your app variable so it includes showMmsid:
- Zip your customization package, load it to Alma Discovery, and save your view.
- If your view already displays MMSID, you may want to consider suppressing it, as it is unnecessary with this customization. To do so:
- In Alma, navigate to Discovery->Configure Views, and edit your view.
- In the Full Record Services tab, configure the “details” section.
- Find the code for mms, and either delete or deactivate it.