Revision 47692
Added by Alessia Bardi almost 7 years ago
modules/dnet-modular-repositories-ui/trunk/src/main/resources/eu/dnetlib/web/resources/html/ngRepoNameCell.html | ||
---|---|---|
5 | 5 |
{{row.getProperty('compliance')}} |
6 | 6 |
</span> |
7 | 7 |
<a href="javascript:void(0)" ng-click="showApi(row.getProperty('repoId'), row.getProperty('id'))" ng-hide="m.deleting"> |
8 |
{{row.getProperty(col.field)}} |
|
8 |
{{row.getProperty(col.field)}} ({{shortId}})
|
|
9 | 9 |
</a> |
10 | 10 |
|
11 | 11 |
</div> |
modules/dnet-modular-repositories-ui/trunk/src/main/resources/eu/dnetlib/web/resources/js/repos.js | ||
---|---|---|
49 | 49 |
module.directive('ngReponameCell', function() { |
50 | 50 |
return { |
51 | 51 |
restrict: 'E', |
52 |
templateUrl: '../resources/html/ngRepoNameCell.html' |
|
52 |
templateUrl: '../resources/html/ngRepoNameCell.html', |
|
53 |
link: function(scope, elem, attrs) { |
|
54 |
var n = scope.row.getProperty('id').lastIndexOf('::'); |
|
55 |
scope.shortId = scope.row.getProperty('id').substring(n + 2); |
|
56 |
} |
|
53 | 57 |
} |
54 | 58 |
}); |
55 | 59 |
|
modules/dnet-modular-repositories-ui/trunk/src/main/resources/eu/dnetlib/web/resources/js/repoControllers.js | ||
---|---|---|
72 | 72 |
columnDefs: [ |
73 | 73 |
{field: 'repoCountry' , displayName: 'Country', width: '80px', headerClass: 'text-center', cellTemplate: '<ng-repo-country-cell />' }, |
74 | 74 |
{field: 'repoName' , displayName: 'Datasource Api', cellTemplate: '<ng-reponame-cell />' }, |
75 |
{field: 'repoPrefix' , displayName: 'Namespace Prefix', width: '150px', headerClass: 'text-center', cellClass: 'text-center' },
|
|
75 |
{field: 'repoPrefix' , displayName: 'Namespace Prefix', width: '150px', headerClass: 'text-center', cellClass: 'text-center' },
|
|
76 | 76 |
{field: 'protocol' , displayName: 'Protocol', width: '160px', headerClass: 'text-center', cellClass: 'text-center' }, |
77 | 77 |
{field: 'aggrDate' , displayName: 'Last Aggregation Date', width: '200px', headerClass: 'text-center', cellTemplate: '<ng-aggr-date-cell />' }, |
78 | 78 |
{field: 'aggrTotal' , displayName: 'Total', width: '80px', headerClass: 'text-center', cellTemplate: '<ng-aggr-total-cell />' } |
... | ... | |
111 | 111 |
$scope.showApi = function (repoId, ifaceId) { |
112 | 112 |
$scope.go('/api/' + repoId + '/' + ifaceId + "/ALL/ALL"); |
113 | 113 |
} |
114 |
|
|
114 | 115 |
|
115 | 116 |
window.onresize = function() { |
116 | 117 |
var elem = document.getElementById('apisTable'); |
Also available in: Unified diff
Show final part of api id together with the name of the datasource