Zum Hauptinhalt springen
Version: 6.8

Submission

Das Package "submission" beinhaltet Schritte im Zusammenhang mit der Bildung und Anlieferung von SIPs.

Submission: generate agreements overview

Generiert eine Übersicht über die Submission Agreements in einem bestimmten Ordner.

java ch.docuteam.actions.submission.AgreementsOverviewGenerator \
agreements_directory output_type output_directory
ParameterBeschreibung
agreements_directorylocation where the collection of submission agreements can be found
output_typeone of \{ Hierarchy|Flat|CSV \}, defining the structure of the resulting overview file
output_directorytarget location for the created overview file, defaults to the directory, where the agreements are located

Submission: check folder

Überprüft, ob die Grösse eines SIPs, die Dateigrössen und die Dateipfade einen maximalen Wert nicht überschreiten.

java ch.docuteam.actions.submission.CheckFolder \
[/path/to/]folder maxTotalSize maxSingleFileSize maxFilePathLength
ParameterBeschreibung
/path/to/]folderpath of the folder to check; if no path is given, it will be expected to be in the location defined by the actions.workbench.work property
maxTotalSizethe max allowed size the folder may have
maxSingleFileSizethe max allowed size any of the files contained by the sip
maxFilePathLengththe max allowed length of file paths within the folder

Submission: create SIP from CSV

Erstellt ein SIP gemäss dem Matterhorn METS-Profil anhand der Struktur und der beschreibenden Metadaten in einer CSV-Datei.

Voraussetzungen:

Die Anforderungen zur Parametrisierung sowie der CSV-Datei sind in der analogen Aktion von docuteam packer beschrieben.

java ch.docuteam.actions.submission.CreateSIPFromCSV \
--csv=[path/to/CSV] --mappingFile=[path/to/mappingFile] --submissionAgreement=[path/to/submissionAgreement] --dataSubmissionSession=[data submission session id] --outputFolder=[/path/to/folder]
ParameterBeschreibung
--csvlocation of the CSV to create a SIP from
--mappingFilefile from which to read the mapping
--submissionAgreementsubmission agreement file
--dataSubmissionSessionid of the submission session
--outputFolderoptional, indicate the output folder; defaults to actions.workbench.inbox

Submission: create SIP from Excel

Erstellt ein SIP gemäss dem Matterhorn METS-Profil anhand der Struktur und der beschreibenden Metadaten in einem Excel-Tabellenblatt.

Voraussetzungen:

  • Es wird das erste Tabellenblatt berücksichtigt.
  • Dieses Blatt muss eine Spalte path enthalten, die alle Dateien und Ordner auflistet, die in das SIP verpackt werden sollen.
  • Die Datei- und Ordnerpfade können entweder absolut oder relativ angegeben werden. Nicht erlaubt ist eine gemischte Angabe von relativen/absoluten Pfaden.
  • Das Blatt muss ebenfall eine Spalte levelOfDescription enthalten. Hier dürfen nur Werte eingetragen werden, die in der Datei levels.xml als erlaubt angegebn sind.
  • Es dürfen nur Metadatenfelder angegeben werden, die in der Datei levels.xml für die entsprechende Beschreibungsstufe vorgesehen sind. Undefinierte Metadatenfelder werden als Warnung geloggt.
java ch.docuteam.actions.submission.CreateSIPFromExcel \
[path/to/]Excelfile saID dssID [path/to/target/directory]
ParameterBeschreibung
[path/to/]Excelfilename or path without file extension to the excel file; defaults to actions.workbench.preparation if path is omitted
saIDstring that is used to reference a submission agreement
dssIDstring that is used to reference a data submission session within the submission agreement
[path/to/target/directory]path to the directory, where the SIP should be placed; optional, defaults to actions.workbench.preparation

Submission: create SIPs from file or folder

Generiert ein SIP aus einer Datei oder einem Ordner. Falls ein Ordner angegeben ist, kann über einen Parameter gesteuert werden, ob ein SIP für den ganzen Ordner kreiert werden soll oder je ein SIP für jede einzelne Datei oder Unterordner in diesem Ordner. Die Action arbeitet rekursiv und fügt dem SIP auch Dateien in Unterordnern hinzu.

java ch.docuteam.actions.submission.CreateSIPsFromFileOrFolder \
source split saID dssID author zipped [outputDir]
ParameterBeschreibung
sourcefile or folder from which an SIP should be generated; if a relative path is given, it is assumed to be within the folder defined by the property actions.workbench.preparation
splitif true, a separate SIP will be created for each file/folder within the source (assuming the source is a folder)
saIDvalue to use for referencing a submission agreement in the SIP. The action will skip file formats not allowed in the submission agreement.
dssIDvalue to use for referencing a data submission session of the respective submission agreement
authorvalue to use as the creator for the SIP
zippedif true, create zipped SIPs
[outputDir]optional location where to put the SIPs; if omitted the property actions.workbench.work will be used

Submission: rename by date and owner

Benennt einen Ordner um. Dem Ordnername wird Datum und Eigentümer in der Form "yyyyMMdd_[file owner]_" vorangestellt.

java ch.docuteam.actions.submission.RenameByDateAndOwner \
[/path/to/]folder
ParameterBeschreibung
[/path/to/]foldername of the folder to rename; if no path or a relative path is given, it will be expected to be in the location defined by the actions.workbench.inbox property"

Submission: submit SIPs from folder

Wählt SIPs aus und übergibt diese über die REST-Schnittstelle an docuteam feeder-Workflows.

java ch.docuteam.actions.submission.SubmitSIPsFromFolder \
inbox errorbox filter feeder_url workflows user password \
useAbsolutePaths checkEmptyQueue [maxNumberSIPs]
ParameterBeschreibung
inboxpath to the folder containing the SIPs
errorboxpath to the folder where to put unsuccessful SIPs
filterregex filter string for the SIPs within the inbox; put the regex expression into quotation marks!
feeder_urlURL pointing to the feeder main page, e.g. http://localhost/feeder
workflowscomma separated list of workflows to execute on each SIP
userusername for feeder
passwordpassword for feeder
useAbsolutePathstrue/false, indicating whether to submit SIPs by absolute paths or just their filenames
checkEmptyQueuetrue/false, indicating whether to check if the queue is empty before submitting new SIPs
[maxNumberSIPs](optional): maximum number of SIPs to send to feeder; if omitted, all SIPs matching the filter string will be submitted