LP1799963: Adjust fix to Staff Default Adv Search
authorJason Boyer <jboyer@library.in.gov>
Mon, 3 Dec 2018 18:23:39 +0000 (13:23 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 18 Feb 2019 18:47:21 +0000 (13:47 -0500)
By moving the only assignment to $scope.catalog_url inside
an if(<url is advanced search>) then only the advanced search
page can load in the opac. By adding a second assignment
inside an else block all opac pages can load again.

Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js

index c8a1a36..7d525c5 100644 (file)
@@ -1926,7 +1926,9 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
 
                 $scope.catalog_url = url;
             });
-        }
+        } else {
+            $scope.catalog_url = url;
+       }
 
     }