- Ensure Default Browse Sort selector displays existing choice.
Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
Changes to be committed:
modified: Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
}
});
+ $scope.results_sort = 'pubdate';
+ egCore.hatch.getItem('eg.search.browse_sort_default').then(function(val) {
+ $scope.results_sort = val;
+ });
$scope.$watch('results_sort', function(newVal, oldVal) {
if (typeof newVal != 'undefined' && newVal != oldVal) {
egCore.hatch.setItem('eg.search.browse_sort_default', newVal);