Skip to content

Commit

Permalink
Added Idra logo
Browse files Browse the repository at this point in the history
  • Loading branch information
robcalla committed Oct 11, 2018
1 parent a6d94a1 commit 499793b
Show file tree
Hide file tree
Showing 6 changed files with 1,481 additions and 16 deletions.
2 changes: 1 addition & 1 deletion IdraPortal/src/main/webapp/catalogues/Catalogue.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
class="btn btn-primary btn-raised"
ng-click="updateNode($data,node)"
ng-disabled="isEqual(node,nodeToUpdate)">Update</button>
<button ng-if="mode == 'create'" type="button"
<button ng-if="mode == 'create'" ng-disabled='node.nodeType==""' type="button"
class="btn btn-primary btn-raised"
ng-click="createNode($data,node)">Create</button>
</div>
Expand Down
19 changes: 14 additions & 5 deletions IdraPortal/src/main/webapp/catalogues/single_catalogue.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ angular.module("IdraPlatform").controller('CatalogueCtrl',['$scope','$http','con
publisherName: '',
nameInvalid:false,
pubNameInvalid:false,
nodeType:$scope.types[0],
// nodeType:$scope.types[0],
nodeType:"",
federationLevel:$scope.grades[0],
host:'',
hostInvalid:false,
Expand Down Expand Up @@ -253,7 +254,7 @@ angular.module("IdraPlatform").controller('CatalogueCtrl',['$scope','$http','con
$http(req).then(function(value){

$scope.refreshPeriod = value.data.refresh_period;
$scope.node.refreshPeriod = angular.copy($scope.refreshPeriod);
//$scope.node.refreshPeriod = angular.copy($scope.refreshPeriod);

$rootScope.stopSpin();

Expand Down Expand Up @@ -285,13 +286,14 @@ angular.module("IdraPlatform").controller('CatalogueCtrl',['$scope','$http','con
$scope.node={
id:null,
name:'',
nodeType:$scope.types[0],
//nodeType:$scope.types[0],
nodeType:"",
nameInvalid:false,
pubNameInvalid:false,
federationLevel:$scope.grades[0],
host:'',
hostInvalid:false,
refreshPeriod:$scope.refreshPeriod,
refreshPeriod:"",
description:"",
location:"",
dcatProfile:'',
Expand Down Expand Up @@ -488,7 +490,10 @@ angular.module("IdraPlatform").controller('CatalogueCtrl',['$scope','$http','con
node.federationLevel='LEVEL_2';
break;
case 'DCATDUMP':
node.federationLevel='LEVEL_2';
if(node.dumpURL!='')
node.federationLevel='LEVEL_2';
else
node.federationLevel='LEVEL_4';
break;
case 'ORION':
node.federationLevel='LEVEL_4';
Expand All @@ -500,6 +505,10 @@ angular.module("IdraPlatform").controller('CatalogueCtrl',['$scope','$http','con
break;
}

if((node.federationLevel=='LEVEL_3' || node.federationLevel=='LEVEL_2') && node.refreshPeriod==''){
node.refreshPeriod=$scope.refreshPeriod;
}

if(node.nodeType == 'WEB'){
if(angular.equals({}, node.sitemap)){
dialogs.error("File mandatory","Please upload the sitemap file");
Expand Down

0 comments on commit 499793b

Please sign in to comment.