Commit aea51890 by Vishal Kadam

Merge pull request #7 from MPR-Global/HDPDGI-46

Made change to remove splash page
parents 8f64e6af 24c9b7b5
......@@ -23,6 +23,6 @@ angular.module('dgc').config(['$locationProvider', '$urlRouterProvider',
function($locationProvider, $urlRouterProvider) {
$locationProvider.hashPrefix('!');
// For unmatched routes:
$urlRouterProvider.otherwise('/');
$urlRouterProvider.otherwise('/search');
}
]);
......@@ -47,12 +47,12 @@ angular.module('dgc.search').controller('SearchController', ['$scope', '$locatio
$scope.resultRows = $scope.results.rows;
$scope.totalItems = $scope.resultCount;
$scope.transformedResults = {};
$scope.dataTransitioned = false ;
if(response.results.dataType.typeName.indexOf('__') === 0) {
$scope.dataTransitioned = true ;
$scope.dataTransitioned = false;
if (response.results.dataType.typeName.indexOf('__') === 0) {
$scope.dataTransitioned = true;
var attrDef = response.results.dataType.attributeDefinitions;
angular.forEach(attrDef, function(value) {
if(value.dataTypeName === '__IdType') {
if (value.dataTypeName === '__IdType') {
$scope.searchKey = value.name;
}
});
......@@ -88,8 +88,8 @@ angular.module('dgc.search').controller('SearchController', ['$scope', '$locatio
$scope.filterResults = function() {
var res = [];
angular.forEach($scope.resultRows, function(value,key) {
res.push( value[$scope.searchKey] );
angular.forEach($scope.resultRows, function(value) {
res.push(value[$scope.searchKey]);
});
return res;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment