Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
metsimporter
Commits
29fd9021
Commit
29fd9021
authored
Jul 22, 2021
by
Joerg-Holger Panzer
Browse files
Remove export
iiif manifest and citation infos not used in NLH
parent
3f6609d3
Pipeline
#214818
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
indexer/indexer.go
View file @
29fd9021
...
...
@@ -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)
}
...
...
indexer/mets/mets.go
View file @
29fd9021
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment