Commit 807bc1a0 by Steinberg, Jan

adding setSpec to modal in frontend

parent 6b7c4b9e
......@@ -10,7 +10,7 @@ public interface BundlesStreamSource {
default Set<Metadatum> getAllMetadata(String scopedIdentifier) {
Set<Metadatum> result;
String bundleIdentifier = getReference() + "@@" + scopedIdentifier;
String bundleIdentifier = getReference() + "@@" + scopedIdentifier;
Optional<Bundle> bundleOptional = getBundlesStream().filter( b -> bundleIdentifier.equals( b.getReference() ) ).findFirst();
if ( bundleOptional.isPresent() ) {
result = bundleOptional.get().getMetadata();
......
......@@ -5,6 +5,7 @@ angular.module('ddaApp').controller('PublicationsSourcesXsltOaiPmhAddressCreateD
function($scope, $stateParams, $uibModalInstance, $state, BundlesSource) {
$scope.oaiPmhEndpoint = '';
$scope.setSpec = '';
$scope.metadataPrefix = '';
$scope.xsltContent = '';
$scope.iso8601From = null;
......@@ -25,6 +26,7 @@ angular.module('ddaApp').controller('PublicationsSourcesXsltOaiPmhAddressCreateD
var dataObject = {
oaiPmhEndpoint: $scope.oaiPmhEndpoint,
setSpec: $scope.setSpec,
metadataPrefix2XsltMap: {},
from: {
seconds: fromInSeconds
......
......@@ -10,6 +10,9 @@
<label>OAI-PMH endpoint
<input type="text" name="oaiPmhEndpoint" ng-model="oaiPmhEndpoint">
</label>
<label>SetSpec
<input type="text" name="setSpec" ng-model="setSpec">
</label>
<label>Metadata prefix for XSLT transformation
<input type="text" name="metadataPrefix" ng-model="metadataPrefix" ng-change="changeMap()">
</label>
......
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