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
02a7dc89
Commit
02a7dc89
authored
Jan 14, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
indexer/export/iiif.go
View file @
02a7dc89
...
@@ -245,8 +245,16 @@ func CreateIiifManifest(mythread int) {
...
@@ -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
{
if
(
esLog
.
PublishInfos
!=
nil
)
&&
len
(
esLog
.
PublishInfos
.
Place
)
>
0
{
metadata
=
append
(
metadata
,
types
.
Metadata
{
metadata
=
append
(
metadata
,
types
.
Metadata
{
Label
:
"Ort"
,
Label
:
"Ort"
,
...
@@ -270,6 +278,7 @@ func CreateIiifManifest(mythread int) {
...
@@ -270,6 +278,7 @@ func CreateIiifManifest(mythread int) {
})
})
}
}
//--- []metadata -> classification
if
len
(
esLog
.
Dc
)
>
0
{
if
len
(
esLog
.
Dc
)
>
0
{
var
dcs
[]
string
var
dcs
[]
string
for
_
,
dc
:=
range
esLog
.
Dc
{
for
_
,
dc
:=
range
esLog
.
Dc
{
...
@@ -306,6 +315,20 @@ func CreateIiifManifest(mythread int) {
...
@@ -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
//--- []metadata -> ISSN
if
esLog
.
Issn
!=
""
{
if
esLog
.
Issn
!=
""
{
...
@@ -329,38 +352,6 @@ func CreateIiifManifest(mythread int) {
...
@@ -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
//--- year digitization
/* remove year of digitization
/* remove year of digitization
if esLog.DigitizationInfos != nil {
if esLog.DigitizationInfos != nil {
...
...
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