Commit 02a7dc89 authored by Joerg-Holger Panzer's avatar Joerg-Holger Panzer
Browse files

Change order of metadata fields s. DINO-688

parent 91490c68
Pipeline #265934 passed with stages
in 10 minutes and 2 seconds
......@@ -245,8 +245,16 @@ func CreateIiifManifest(mythread int) {
}
//--- []metadata -> place published
//--- []metadata -> volume number
if len(esLog.Currentno) > 0 {
//metadata = append(metadata, Metadata{"Band", []string{strconv.FormatInt(esLog.Currentno[0], 10)}})
metadata = append(metadata, types.Metadata{
Label: "Band",
Value: []string{esLog.Currentno[0]},
})
}
//--- []metadata -> place published
if (esLog.PublishInfos != nil) && len(esLog.PublishInfos.Place) > 0 {
metadata = append(metadata, types.Metadata{
Label: "Ort",
......@@ -270,6 +278,7 @@ func CreateIiifManifest(mythread int) {
})
}
//--- []metadata -> classification
if len(esLog.Dc) > 0 {
var dcs []string
for _, dc := range esLog.Dc {
......@@ -306,6 +315,20 @@ func CreateIiifManifest(mythread int) {
}
//--- []metadata -> host
var ri string
if esLog.Parent != nil {
tt := esLog.Parent.Title.Title
id := esLog.Parent.RecordID
log := esLog.ParentLog
str := fmt.Sprintf(config.IiifManifestURLRelatedDigizeit, id, log)
ri = fmt.Sprintf("<a href=\"%s\">%s</a>", str, tt)
metadata = append(metadata, types.Metadata{
Label: "Übergeordnetes Werk",
Value: []string{ri},
})
}
//--- []metadata -> ISSN
if esLog.Issn != "" {
......@@ -329,38 +352,6 @@ func CreateIiifManifest(mythread int) {
})
}
//--- []metadata -> host
var ri string
if esLog.Parent != nil {
tt := esLog.Parent.Title.Title
id := esLog.Parent.RecordID
log := esLog.ParentLog
str := fmt.Sprintf(config.IiifManifestURLRelatedDigizeit, id, log)
ri = fmt.Sprintf("<a href=\"%s\">%s</a>", str, tt)
metadata = append(metadata, types.Metadata{
Label: "Übergeordnetes Werk",
Value: []string{ri},
})
}
//--- []metadata -> volume PURL
if esLog.Purl != "" {
metadata = append(metadata, types.Metadata{
Label: "PURL",
Value: []string{esLog.Purl},
})
}
//--- []metadata -> volume number
if len(esLog.Currentno) > 0 {
//metadata = append(metadata, Metadata{"Band", []string{strconv.FormatInt(esLog.Currentno[0], 10)}})
metadata = append(metadata, types.Metadata{
Label: "Band",
Value: []string{esLog.Currentno[0]},
})
}
//--- year digitization
/* remove year of digitization
if esLog.DigitizationInfos != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment