ulb-sachsen-anhalt / digital-derivans

Derive new digitals from existing ones
MIT License
6 stars 2 forks source link

Provide PDF label via CLI #58

Closed M3ssman closed 1 day ago

M3ssman commented 6 months ago

Description

Currently there are several mechanisms at work to determine the final PDF's name like using what's in the METS or the directory name. Especially the METS implementation is somewhat arcane since it make assumptions about the MODS contents or preferred ways of using catalogue or system identifiers which differ between data sets and projects of one single or even several organizations.

To increase the user's control concerning this it's way easier just to pass the desired name as CLI arg at call time.

M3ssman commented 6 months ago

First draft in branch feat/name-pdf can be build via mvn clean package -DskipTests and afterwards called

java -jar digital-derivans-1.8.8.jar -n your-pdf ~/02-Testpool/02-derivans-pdf/derivate-testset-kitodo2-5674939622/mets.xml