goobi/goobi-production — pull request #204 by matthias-ronge (2014-09-23 13:02:25+00:00)
Title: Issue 169 2

Production was extended to manage metadata groups.

To use metadata groups, first the metadata and person types that shall be part of the metadata groups must be defined in the rule set, i.e.:
``` xml

ProvPerson
Person
Person

ProvPersonPPN
Verknüpfung zur Person (PPN)
Link to the person (PPN record)

ProvDateTime
Datum, Zeitangabe
Date and time

ProvRemarks
Bemerkungen zur Provenienz
Remarks to the provenience

```
Then, the metadata group must be defined in the rule set as well:
``` xml

Proveniece
Provenienz
Proveniece
ProvPerson
ProvPersonPPN
ProvDateTime
ProvRemarks

```
Third, the metadata group must be added to the `DocStrctType`(s) where it shall be available:
``` xml

Monograph
Monograph
Monographie

Proveniece

```
The kind of input elements to render can optionally be defined in `goobi_metadataDisplayRules.xml`:
``` xml

create

edit

```
If metadata groups shall be imported from PicaPlus, an import mapping has to be provided, i.e.:
``` xml

Proveniece
220B

ProvPerson
220B
8

ProvPersonPPN
220B
9

ProvDateTime
220B
d

ProvRemarks
220B
k

```
If metadata groups shall be exported to METS/MODS, an export mapping has to be provided, i.e.:
``` xml

Proveniece
./mods:mods/#mods:note[@type='custodialHistory']

ProvPerson
./mods:name[@type='ownership']
./mods:namePart[@type='given']
./mods:namePart[@type='family']
./mods:displayForm

ProvPersonPPN
./mods:name[@type='ownership'][@authority='swb-ppn']/@ppn

ProvDateTime
./mods:date[@encoding='YYYY-MM-DD']

ProvRemarks
./mods:note[@type='description']

```