Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
postprocessing
rico-edm-transformer
Commits
03b662fb
Commit
03b662fb
authored
Apr 07, 2021
by
Günter Hipler
Browse files
fixed error on edm:object property
parent
246c7cc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/scala/ch/memobase/rico2edm/edm/EDM.scala
View file @
03b662fb
...
...
@@ -249,14 +249,14 @@ class EDM {
// noch konsistenter implementieren
//
Try
{
Extractors
.
digitalObjectIdShort
(
graph
)(
digitalObject
)
}
match
{
case
Success
(
value
)
=>
aggregation
.
addIsShownBy
(
value
)
case
Success
(
digiObjIdShort
)
=>
aggregation
.
addIsShownBy
(
digiObjIdShort
)
Extractors
.
ricoType
(
record
)
match
{
case
Some
(
valu
e
)
=>
if
(
valu
e
==
"Foto"
)
{
aggregation
.
addEDMObjectFoto
(
Option
(
value
)
)
case
Some
(
ricoTyp
e
)
=>
if
(
ricoTyp
e
==
"Foto"
)
{
aggregation
.
addEDMObjectFoto
(
digiObjIdShort
)
}
else
{
aggregation
.
addEDMObjectNoFoto
(
Option
(
value
)
)
aggregation
.
addEDMObjectNoFoto
(
digiObjIdShort
)
}
case
None
=>
...
...
src/test/resources/
fuer.silvia
.json
→
src/test/resources/
apf-001-1284.edm.object
.json
View file @
03b662fb
File moved
Write
Preview
Supports
Markdown
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