Since eg.search.adv_pane is now a server stored WS setting
it needed to be fetched with the proper way in order to work.
Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Angela Kilsdonk <akilsdonk@equinoxinitiative.org>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
// whatever default pane the user has chosen via workstation
// preference
if (url.match(/\/opac\/advanced$/)) {
- var adv_pane = egCore.hatch.getLocalItem('eg.search.adv_pane');
- if (adv_pane) {
- url += '?pane=' + encodeURIComponent(adv_pane);
- }
+ egCore.hatch.getItem('eg.search.adv_pane').then(function(adv_pane_val){
+ if (adv_pane_val) {
+ url += '?pane=' + encodeURIComponent(adv_pane_val);
+ }
+
+ $scope.catalog_url = url;
+ });
}
- $scope.catalog_url = url;
}
function init_parts_url() {