adds a toggle to hide/show other institutions that own the item on the primo-explore details page.
npm install @orbis-cascade/primo-explore-toggle-institutions
cd primo-explore/custom/MY_VIEW_ID
`
3. If you do not already have a package.json file in this directory, create one:
`
npm init -y
`
4. Install this package:
`
npm install primo-explore-toggle-institutions
`alternatively, just copy
dist/module.js into your package's custom.js file.Usage
First, add toggleInstitutions as a dependency for your local view module definition.`js
var app = angular.module('viewCustom', ['toggleInstitutions'])
`
Then, enable the customization by embedding it in the prmAlmaMoreInstAfter hook:
`js
app.component('prmAlmaMoreInstAfter', {template: ' '})
`
#### Configuration
The default is to initially collapse the list. If you wish to keep it open initially, you can replace the above with:
`js
app.component('prmAlmaMoreInstAfter', {template: ' '})
`