Commit f2e19925 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1324: Adapt admin dialogs to view but not change alias

parent a5a9cefd
......@@ -93,21 +93,6 @@ public class CollectionEditorController extends BaseController {
return result;
@RequestMapping(method = RequestMethod.GET, value = "/{epId}/{dmId}/forms/oaiPrefix")
public String getOaiPrefixForm(@PathVariable String cId, @PathVariable String epId, @PathVariable String dmId, Model model) throws Exception {
Endpoint ep = endpointService.findById(cId, epId);
if (ep.getDatasets()!=null) {
for (Dataset ds : ep.getDatasets()) {
if (ds.getId().equals(dmId)) {
model.addAttribute("prefix", ds.getRemoteAlias());
model.addAttribute("actionPath", String.format("/collections/%s/%s/%s/saveOaiPrefix", cId, epId, dmId));
return "collections/forms/oaiPrefix";
@RequestMapping(method=POST, value={"/{epId}/{dmId}/saveOaiPrefix"}, produces = "application/json; charset=utf-8")
public @ResponseBody ModelActionPojo saveOaiPrefix(@PathVariable String cId, @PathVariable String epId, @PathVariable String dmId, @RequestParam String oaiPrefix, Model model) {
Collection c = collectionService.findById(cId);
Supports Markdown
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