Löschen von URNs

Hallo,

ich würde gerne aus einigen Vorgängen die URNs löschen. Alle betroffenen Werke sind noch nicht im Goobi viewer gelandet. Ist das mithilfe von Goobi Scripts möglich?

Vielen Dank und viele Grüße,
Andreas

Hallo Andreas,

habt ihr URNs für Werke oder URN granular für jede Seite vergeben? Wenn ihr nur Werke ausgezeichnet habt, müsste sich das mittels GoobiScript metadataDelete löschen lassen, das betroffene Feld ist “_urn”.
Bei URN granular klappt dies jedoch nicht, hier müssten die Daten direkt aus den METS Dateien entfernt werden.

Viele Grüße
Robert

1 „Gefällt mir“

Hallo Robert,
danke für die schnelle Antwort. Wir vergeben die URNs granular, also für Werke und für Seiten. Dann liegt genau dort das Problem.

In dem Script wird ja abgefragt:
"Define where in the hierarchy of the METS file the searched term shall be replaced. Possible values are: work top child any"
Deswegen hatte ich gehofft, dass auch seitenbezogene URNs entfernt werden könnten.

Folgendes habe ich nun probiert, um zumindest die werkbezogenen URNs zu löschen:

This GoobiScript allows to delete an existing metadata from the METS file.
action: metadataDelete

Internal name of the metadata field to be used. Use the internal name here (e.g. TitleDocMain), not the translated display name (e.g. Main title) here.
field: _urn

Define the value that the metadata shall have. Only if the value is the same the metadata will be deleted.
value:

Define where in the hierarchy of the METS file the searched term shall be replaced. Possible values are: work top child any
position: any

Set this parameter to true if the deletion of the metadata shall take place independent of the current metadata value. In this case all metadata that match the defined field will be deleted.
ignoreValue: true

Allerdings startet das Script nicht. Die Ursache dafür liegt wahrscheinlich nicht hier https://docs.goobi.io/goobi-workflow-digests-de/2021/05#anpassungen-an-der-funktionalitaet-von-goobiscript , oder?