Goobi can also use variables when performing certain actions. Some of these variables can be used only in specific contexts, e.g. the variables {login}
and {user full name}
when configuring the LDAP.
There are also ‘static’ and ‘dynamic’ variables. These can be used at various points, e.g. when calling scripts or configuring projects.
Static variables are variables with a fixed name and a defined value.
Variable: | {prefs} |
---|---|
Variable: | {processid} |
---|---|
Variable: | {processtitle} |
---|---|
Variable: | {stepid} |
---|---|
As well as static variables, there is a range of dynamic variables that can be used to access all the freely configurable data in Goobi.
Variable: | {stepname} |
---|---|
Variable: | {processpath} |
---|---|
Variable: | {importpath} |
---|---|
Variable | {imagepath} |
---|---|
Variable: | {tifpath} |
---|---|
Variable: | {origpath} |
---|---|
Variable: | {metaFile} |
---|---|
Variable: | {tifurl} |
---|---|
Variable: | {origurl} |
---|---|
Variable: | {sourcepath} |
---|---|
Variable: | {projectid} |
---|---|
Variable: | {projectname} |
---|---|
Variable: | {projectidentifier} |
---|---|
Variable: | {iiifMediaFolder} |
---|---|
Variable: | {iiifMasterFolder} |
---|---|
Variable: | {process.NAME} |
---|---|
Variable: | {product.NAME} |
---|---|
Variable: | {template.NAME} |
---|---|
Variable: | {meta.NAME} |
---|---|
Variable: | {meta.topstruct.NAME} |
---|---|
Variable: | {meta.firstchild.NAME} |
---|---|
Variable: | {db_meta.NAME} |
---|---|
variable: | {datetime.PATTERN} |
---|---|
Sample value:
/opt/digiverso/goobi/rulesets/ruleset.xml
Meaning:
This is the absolute path to the ruleset file specified in the process.
Sample value:
27
Meaning:
This is the internal identifier to which the process is linked in Goobi.
Sample value:
kleiuniv_PPN517154005
Meaning:
This is the process title.
Sample value:
6519
Meaning:
This is the internal identifier to which the workflow step is linked in Goobi. This variable can be used only when calling scripts.
Sample value:
scanning
Meaning:
This is the title of the workflow step. This variable can be used only when calling scripts.
Sample value:
/opt/digiverso/goobi/metadata/27/
Meaning:
The absolute path to the folder in which all the process data are located.
Sample value:
/opt/digiverso/goobi/metadata/27/import
Meaning:
The absolute path to the import folder for the process. This is a subfolder of {processpath}. It contains the files that were generated or imported when performing an import.
Sample value:
/opt/digiverso/goobi/metadata/27/images
Meaning:
The absolute path to the image folder for the process. This is a subfolder of {processpath}. It contains various folders for each item of digitised material.
Sample value:
/opt/digiverso/goobi/metadata/27/images/kleiuniv_PPN517154005_media
Meaning:
The absolute path to the media folder for the process. This is a subfolder of {imagepath}. It contains the optimised digital images. This folder is usually exported at the end of the workflow.
Sample value:
/opt/digiverso/goobi/metadata/27/images/master_kleiuniv_PPN517154005_media
Meaning:
The absolute path to the media folder for the process. This is a subfolder of {imagepath}. It contains the scanned images. Derivatives for other folders are usually generated from this folder.
Sample value:
/opt/digiverso/goobi/metadata/27/meta.xml
Meaning:
The absolute path to the metadata file in Goobi. This file can be present in a range of formats.
Sample value:
Meaning:
The path for {tifpath} as a valid URL.
Sample value:
Meaning:
The path for {origpath} as a valid URL.
Sample value:
/opt/digiverso/goobi/metadata/27/images/kleiuniv_PPN517154005_source/
Meaning:
The path to the source folder for the process. This folder can be used to store files that are to be included in exports to the Goobi viewer.
Sample value:
4
Meaning:
The internal ID of the project within the Goobi workflow database.
Sample value:
Monographs 1850-1950
Meaning:
The name of the project within the Goobi workflow database.
Sample value:
M1850-1950
Meaning:
The speaking identifier that was additionally given to the project independent of the database ID.
Sample value:
Meaning:
Listing of IIIF URLs to all images from the media
directory of a process
Sample value:
Meaning:
Listing of IIIF URLs to all images from the master
directory of a process
Example:
{process.b-number}
Sample value:
b20057465
Meaning:
This variable can be used to access the value of every process attribute.
Example:
{product.Artist}
Sample value:
Niedersächsische Staats- und Universitätsbibliothek Göttingen, Germany
Meaning:
This variable can be used to access the value of every workpiece attribute.
Example:
{template.Shelfmark}
Sample value:
8 HLP II, 8726
Meaning:
This variable can be used to access the value of every template attribute.
Example:
{meta.PlaceOfPublication}
Sample value:
Göttingen
Meaning:
This variable allows you to use the value of an item of metadata. The metadata file is searched recursively, and the first value found is used.
Example:
{meta.topstruct.CatalogId Digital}
Sample value:
517154005
Meaning:
This variable allows you to use the value of an item of metadata. Only the highest structure element is searched for the metadata.
Example:
{meta.firstchild.CurrentNo}
Sample value:
12
Meaning:
This variable allows you to use the value of an item of metadata located in the first sub-element of the main element. This is particularly useful in the case of multi-volume or periodical structures.
Example:
{db_meta.DocStruct}
Sample value:
Monograph
Meaning:
With this variable the value of a metadata can be used. This is not read from the METS file itself in this case, but instead comes from the cached version from the database.
Example:
{datetime.yyyy-MM-dd}
Example value:
2024-08-13
Meaning:
This variable can be used to generate the current date and time in any format. The format PATTERN
can contain all permitted symbols for date and time formatting in Java. You can find more information on this at: https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html