}
}
} else if (kind == ONE_FROM_REPOS) {
SourceRepoDialog sdlg = new SourceRepoDialog();
if (sdlg.getAPIA() != null) {
RepositoryInfo repoinfo =
sdlg.getAPIA().describeRepository();
String sourceExportFormat = Ingest.getExportFormat(repoinfo);
String pid = JOptionPane.
showInputDialog("Enter the PID of the object to ingest.");
if (pid != null && !pid.equals("")) {
pid =
Ingest.oneFromRepository(sdlg.getAPIA(),
sdlg.getAPIM(),
sourceExportFormat,
pid,
Administrator.APIA,
Administrator.APIM,
null);
JOptionPane.showMessageDialog(Administrator
.getDesktop(), "Ingest succeeded. PID=" + pid);
}
}
} else if (kind == MULTI_FROM_REPOS) {
wasMultiple = true;
SourceRepoDialog sdlg = new SourceRepoDialog();
if (sdlg.getAPIA() != null) {
RepositoryInfo repoinfo =
sdlg.getAPIA().describeRepository();
String sourceExportFormat = Ingest.getExportFormat(repoinfo);
// looks ok... do the request
long st = System.currentTimeMillis();
logRootName = "ingest-from-repos";