Skip to content

Commit

Permalink
Rename edit path
Browse files Browse the repository at this point in the history
  • Loading branch information
markusweigelt committed Jun 26, 2023
1 parent 2cb746c commit 540ed9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ public class OCRWorkflowEditView extends BaseForm {
private static final Logger logger = LogManager.getLogger(OCRWorkflowEditView.class);
private OCRWorkflow ocrWorkflow = new OCRWorkflow();

private final String ocrWorkflowEditPath = MessageFormat.format(REDIRECT_PATH, "ocrWorkflowEdit");


/**
* Load import configuration by ID.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,15 @@

package org.kitodo.production.forms;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import javax.enterprise.context.SessionScoped;
import javax.inject.Named;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.kitodo.config.ConfigCore;
import org.kitodo.config.enums.ParameterCore;
import org.kitodo.data.database.beans.OCRWorkflow;
import org.kitodo.data.database.exceptions.DAOException;
import org.kitodo.production.enums.ObjectType;
Expand All @@ -37,9 +29,9 @@
@Named("OCRWorkflowListView")
@SessionScoped
public class OCRWorkflowListView extends BaseForm {
private OCRWorkflow ocrWorkflow;

private static final Logger logger = LogManager.getLogger(OCRWorkflowListView.class);
private final String ocrWorkflowEditPath = MessageFormat.format(REDIRECT_PATH, "ocrWorkflowEdit");
private final String ocrWorkflowCreatePath = MessageFormat.format(REDIRECT_PATH, "ocrWorkflowEdit");


/**
Expand All @@ -59,7 +51,7 @@ public List<OCRWorkflow> getOcrWorkflows() {


public String newOCRWorkflow() {
return ocrWorkflowEditPath;
return ocrWorkflowCreatePath;
}

/**
Expand Down

0 comments on commit 540ed9d

Please sign in to comment.