uoregon-libraries / uolib-primo-nui

University of Oregon Libraries implementation of the Primo New UI
0 stars 0 forks source link

VE - Show/Hide Summit Libraries #46

Closed MargaretA-UO closed 2 years ago

MargaretA-UO commented 2 years ago

Working in Primo, not in VE. See Alliance customization: https://www.orbiscascade.org/programs/systems/pcsg/primo-ve-toolkit/collapse-other-institutions/

Implementation In your custom.js, you should have the following line to define the app variable. There may be other modules listed in the brackets.

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

Paste in the following code:

app.component("prmAlmaOtherMembersAfter", { bindings: { parentCtrl: "<", }, controller: [ function () { var ctrl = this; ctrl.parentCtrl.isCollapsed = true; }, ], });

jechols commented 2 years ago

Can you let me know how to see this on the current site so I know what's missing? I'm seeing this on VE, so I'm not sure what precisely needs to be there instead:

image

MargaretA-UO commented 2 years ago

We would like the list of Summit Libraries to be collapsed by default. Here it is in Primo: image

jechols commented 2 years ago

Fixed this - will deploy later for QA

MargaretA-UO commented 2 years ago

Confirmed working.