diff --git a/README.md b/README.md index 709b6d4..7069f90 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,6 @@ $ aspace-export --config /path/to/go-aspace.yml --environment your-environment-k * If the `validate` option is set when the running the application any finding aids that fail validation will be written to a subdirectory named `invalid`. * A log file will be created named `aspace-export.log` which will be created in the root of output directory as defined in the --export-location option. * A Report with statistics will be created named `aspace-export-report.txt` will be created in the root of output directory as defined in the --export-location option. -* Validation of MARC21 records is currently failing, do not use the --marc flag in conjunction with the --validate flage - **example output structure**
/path/top/eexport-location/aspace-exports-[timestamp]
@@ -59,8 +57,7 @@ Command-Line Arguments --reformat, tab-reformat ead files (marcxml are tab-formatted by ArchivesSpace), default: `false`
--repository, ID of the repository to be exported, `0` will export all repositories, default: `0`
--resource, ID of the resource to be exported, `0` will export all resources, default: `0`
---timeout, client timout in seconds to, default: `20`
---validate, validate exported finding aids against schema, default: `false`
+--timeout, client timeout in seconds to, default: `20`
--version, print the application and go-aspace client version
--workers, number of concurrent export workers to create, default: `8`
--help, print this help screen
diff --git a/aspace_xport/util.go b/aspace_xport/util.go index 9353835..68c58aa 100644 --- a/aspace_xport/util.go +++ b/aspace_xport/util.go @@ -3,10 +3,11 @@ package aspace_xport import ( "errors" "fmt" - "github.com/nyudlts/go-aspace" "io" "os" "path/filepath" + + "github.com/nyudlts/go-aspace" ) type ResourceInfo struct { @@ -154,7 +155,6 @@ func CreateExportDirectories(workDirPath string, repositoryMap map[string]int, u repositoryDir := filepath.Join(workDirPath, slug) exportDir := filepath.Join(repositoryDir, "exports") - failureDir := filepath.Join(repositoryDir, "invalid") unpublishedDir := filepath.Join(repositoryDir, "unpublished") err := os.Mkdir(repositoryDir, 0755) @@ -170,13 +170,6 @@ func CreateExportDirectories(workDirPath string, repositoryMap map[string]int, u } PrintAndLog(fmt.Sprintf("created export directory %s", exportDir), INFO) - //create the repository failure directory - err = os.Mkdir(failureDir, 0755) - if err != nil { - return err - } - PrintAndLog(fmt.Sprintf("created failure directory %s", failureDir), INFO) - if unpublishedResources == true { err = os.Mkdir(unpublishedDir, 0755) if err != nil {