You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
University of Oslo local package for Primo Explore
This is the University of Oslo local customization package for Primo Explore.
It is to be used together with the Bibsys central customization package
(which isn't published and documented openly).
What have we customized?
Current customizations
In PrmSearchAfterController, we move the footer defined in home_xx_xx.html to a new DOM location.
Some light style customization, see main.scss for details.
Former customizations
For one year we had a session logging service known as Slurp. This was used to produce data for the Dewey mapping project. We eventually removed it, both for the reason of the data minimization principle, but also due to the risk of it failing after an upgrade since it depended on many different directives. It would be much cleaner if the logging service could be self-sustained, but at the moment there isn't an open and documented API for Primo Explore apart from the directive hooks. Primo-expolore-dom is an interesting project trying to provide a simple domain object model, but at the moment it seems to depend on a lot of undocumented things that might change between Primo versions. Would be great if Ex Libris could support the project or provide something similar.
See also this Ideas Exchange idea
In PrmSearchBarAfterController, we used to set the search input field to automatically get focus until Unit included that functionality in their central package.
git clone https://github.com/ExLibrisGroup/primo-explore-devenv.git cd primo-explore-devenv npm install
Set PROXY_SERVER in gulp/config.js to this value:
var PROXY_SERVER = 'https://bibsys-almaprimo.hosted.exlibrisgroup.com:443';
Download the central package from Primo Back Office (Primo Utilities > UI customization Package Manager)
into primo-explore/custom and unzip it. Make sure the folder name is CENTRAL_PACKAGE. This contains the modifications from Bibsys. Open question: Do they version control it?
Watching changes in parent scope: $onChanges is generally not useful because
it's only called when the whole object is reassigned, there is no deep checking
for changes to elements inside the object. So in general we're left with
$doCheck and $watch. Both are evaluated at every digest cycle, so we have
to be careful about implementation to avoid degrading performance!