LP1799963: Adjust fix to Staff Default Adv Search user/jboyer/lp1799963-staff-default-adv-search
authorJason Boyer <jboyer@library.in.gov>
Mon, 3 Dec 2018 18:23:39 +0000 (13:23 -0500)
committerJason Boyer <jboyer@library.in.gov>
Mon, 3 Dec 2018 18:23:39 +0000 (13:23 -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>
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js

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