Commit 29fd9021 authored by Joerg-Holger Panzer's avatar Joerg-Holger Panzer
Browse files

Remove export

iiif manifest and citation infos not used in NLH
parent 3f6609d3
Pipeline #214818 failed
......@@ -10,7 +10,6 @@ import (
"github.com/akamensky/argparse"
log "github.com/sirupsen/logrus"
"main/export"
"main/mets"
"main/types"
"main/util"
......@@ -346,8 +345,8 @@ func main() {
go mets.ProcessMetsWorker(w, citationDataChan, manifestDataChan)
// TODO comment in
go export.CreateCitationExport(w, citationDataChan)
go export.CreateIiifManifest(w, manifestDataChan)
//go export.CreateCitationExport(w, citationDataChan)
//go export.CreateIiifManifest(w, manifestDataChan)
}
......
......@@ -771,30 +771,34 @@ func ProcessMetsWorker(mythread int, citationDataChan chan<- types.ExportWork, m
Context: metsObject.Context})
}
var firstLog types.ESLog
for _, esLog := range esLogMap {
/*
var firstLog types.ESLog
for _, esLog := range esLogMap {
if esLog.IsFirst {
firstLog = esLog
break
if esLog.IsFirst {
firstLog = esLog
break
}
}
}
*/
if firstLog.Doctype == "work" {
/*
if firstLog.Doctype == "work" {
citationDataChan <- types.ExportWork{
WorkID: metsObject.WorkID,
Context: metsObject.Context,
ESLogMap: esLogMap,
}
citationDataChan <- types.ExportWork{
WorkID: metsObject.WorkID,
Context: metsObject.Context,
ESLogMap: esLogMap,
}
manifestDataChan <- types.ExportWork{
WorkID: metsObject.WorkID,
Context: metsObject.Context,
ESLogMap: esLogMap,
ESPhysMap: esPhysMap,
manifestDataChan <- types.ExportWork{
WorkID: metsObject.WorkID,
Context: metsObject.Context,
ESLogMap: esLogMap,
ESPhysMap: esPhysMap,
}
}
}
*/
}
elapsed := time.Since(start)
......
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