Skip to content
This repository was archived by the owner on Apr 22, 2022. It is now read-only.

Commit bce5f39

Browse files
committed
changed limes html and add missing controllers
1 parent 32056cf commit bce5f39

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

src/main/webapp/js/services/graph-service.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ module.factory("GraphService", function ($http, $q, Config, AccountService) {
4242
for (var resource in data) {
4343
var namedGraph = data[resource];
4444
// be sure that is named one
45-
console.log(namedGraph);
4645
if(namedGraph["sd:name"] == undefined) continue;
4746
//skip own graphs (if needs)
4847
if (skipOwn && namedGraph["acl:owner"] == AccountService.getAccountURI())

src/main/webapp/js/workbench/linking-and-fusing/limes-controller.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
* LIMES Controller
66
*
77
***************************************************************************************************/
8-
var LimesCtrl = function($scope, $http, ConfigurationService, flash, ServerErrorResponse, $window, GraphService){
8+
var LimesCtrl = function($scope, $http, ConfigurationService, flash, ServerErrorResponse, $window, GraphService, AccountService){
99

10+
$scope.component = ConfigurationService.getComponent(":Limes");
1011
var services = ConfigurationService.getComponentServices(":Limes");
1112
var serviceUrl = services[0].serviceUrl;
1213

@@ -65,6 +66,13 @@ var LimesCtrl = function($scope, $http, ConfigurationService, flash, ServerError
6566
}]
6667
}];
6768

69+
$scope.component.offline = false;
70+
71+
$http.get(serviceUrl).then( function ( response ) {
72+
}, function ( response ) {
73+
$scope.component.offline = true;
74+
});
75+
6876
$scope.appendInput = function(source, target){
6977
idx++;
7078
$scope.props[0].inputs.push({
@@ -234,6 +242,7 @@ $scope.LaunchLimes = function(){
234242

235243
window.$windowScope = $scope;
236244
var newWindow = $window.open('popup.html#/popup-limes', 'frame', 'resizeable,height=600,width=800');
245+
console.log(params);
237246
newWindow.params = params;
238247
};
239248

src/main/webapp/js/workbench/linking-and-fusing/limes.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@
66
dataset="{{}}"></save>
77

88
<!-- Subscribe to all flash messages. -->
9-
<div flash-alert active-class="in alert" class="fade" duration="0">
9+
<!-- <div flash-alert active-class="in alert" class="fade" duration="0">
1010
<button type="button" class="close" ng-click="hide()">&times;</button>
1111
<span class="alert-message">{{flash.message}}</span>
12-
</div>
12+
</div> -->
1313

14-
<h3 class="green bold">LIMES</h3>
15-
<b>Link Discovery Framework for Metric Spaces</b>
16-
<br>
17-
<br>
14+
<h3 class="green bold">{{component.label}} <span ng-show="component.offline" class="glyphicon glyphicon-warning-sign btn-sm red"></span></h3>
15+
<dl class="dl-horizontal">
16+
<dt>Version:</dt><dd>{{component.version}}</dd>
17+
<dt>Homepage:</dt><dd>{{component.homepage}}</dd>
18+
</dl>
19+
<p>Link Discovery Framework for Metric Spaces</p>
1820
<p>To get started either upload a configuration file, choose an example, or fill in the options form.</p>
1921

2022
<form class="form-inline InputForm col-xs-11" role="form" ng-show="inputForm">

src/main/webapp/popup.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,15 @@
5959
<script src="lib/modal-master/bootstrap-modal.js"></script>
6060
<script src="lib/modal-master/bootstrap-modalmanager.js"></script>
6161
<script src="js/app.js"></script>
62-
<!-- services for the different modules/pages -->
62+
<!-- services for the different modules/pages -->
6363
<script src="js/services/config.js"></script>
6464
<script src="js/services/services.js"></script>
6565
<script src="js/services/configuration-service.js"></script>
6666
<script src="js/services/graph-service.js"></script>
6767
<script src="js/services/account-service.js"></script>
6868
<script src="js/services/login-service.js"></script>
6969
<script src="js/services/graph-group-service.js"></script>
70+
<script src="js/services/users-service.js"></script>
7071
<!-- controllers for the different modules/pages -->
7172
<script src="js/controllers.js"></script>
7273
<script src="js/login-controller.js"></script>

0 commit comments

Comments
 (0)