diff --git a/docs-web/src/main/webapp/src/app/docs/controller/DocumentEdit.js b/docs-web/src/main/webapp/src/app/docs/controller/DocumentEdit.js index 139689ef..653133a0 100644 --- a/docs-web/src/main/webapp/src/app/docs/controller/DocumentEdit.js +++ b/docs-web/src/main/webapp/src/app/docs/controller/DocumentEdit.js @@ -7,6 +7,9 @@ angular.module('docs').controller('DocumentEdit', function($rootScope, $scope, $ // Alerts $scope.alerts = []; + // Vocabularies + $scope.vocabularies = []; + // Orphan files to add $scope.orphanFiles = $stateParams.files ? $stateParams.files.split(',') : []; @@ -219,4 +222,14 @@ angular.module('docs').controller('DocumentEdit', function($rootScope, $scope, $ } else { $scope.resetForm(); } + + // Load vocabularies + $scope.loadVocabulary = function(name) { + Restangular.one('vocabulary', name).get().then(function(result) { + $scope.vocabularies[name] = result.entries; + }); + }; + $scope.loadVocabulary('type'); + $scope.loadVocabulary('coverage'); + $scope.loadVocabulary('rights'); }); \ No newline at end of file diff --git a/docs-web/src/main/webapp/src/partial/docs/document.edit.html b/docs-web/src/main/webapp/src/partial/docs/document.edit.html index f25c1be5..5a147655 100644 --- a/docs-web/src/main/webapp/src/partial/docs/document.edit.html +++ b/docs-web/src/main/webapp/src/partial/docs/document.edit.html @@ -93,6 +93,31 @@ placeholder="A related resource from which the described resource is derived" name="source" ng-model="document.source" ng-disabled="fileIsUploading" /> + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
diff --git a/docs-web/src/main/webapp/src/partial/docs/document.view.content.html b/docs-web/src/main/webapp/src/partial/docs/document.view.content.html index 41b78fb7..0e3e7d2b 100644 --- a/docs-web/src/main/webapp/src/partial/docs/document.view.content.html +++ b/docs-web/src/main/webapp/src/partial/docs/document.view.content.html @@ -10,6 +10,12 @@
{{ document.format }}
Source
{{ document.source }}
+
Type
+
{{ document.type }}
+
Coverage
+
{{ document.coverage }}
+
rights
+
{{ document.rights }}