The list of institutions that also hold an item in details view is collapsed, and a button to toggle expanding the list appears.
- Make sure you've installed and configured primo-explore-devenv.
- Navigate to your template/central package root directory. For example:
- If you do not already have a
package.jsonfile in this directory, create one:
npm init -y
- Install this package:
npm install primo-explore-toggle-institutions
alternatively, just copy
dist/module.js into your package's
toggleInstitutions as a dependency for your local view module definition.
var app = angular
Then, enable the customization by embedding it in the
The default is to initially collapse the list. If you wish to keep it open initially, you can replace the above with: