Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
memoriav
M
Memobase 2020
S
services
elastic-services
Search Doc Service
Commits
0beede17
Commit
0beede17
authored
Dec 08, 2020
by
Jonas Waeber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always insert a placeholder institution.
parent
2cbd1199
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/main/kotlin/helpers/InstitutionAndRecordSetExtractionHelper.kt
...kotlin/helpers/InstitutionAndRecordSetExtractionHelper.kt
+6
-1
No files found.
src/main/kotlin/helpers/InstitutionAndRecordSetExtractionHelper.kt
View file @
0beede17
...
...
@@ -30,7 +30,12 @@ object InstitutionAndRecordSetExtractionHelper {
private
val
log
=
LogManager
.
getLogger
(
"InstitutionAndRecordSetExtractionHelper"
)
fun
extractInstitution
(
record
:
JsonObject
):
List
<
FacetContainer
>
{
return
extract
(
KEYS
.
heldBy
,
record
)
val
containers
=
extract
(
KEYS
.
heldBy
,
record
)
return
if
(
containers
.
isNotEmpty
())
{
containers
}
else
{
listOf
(
FacetContainer
.
placeholder
(
"NoInstitutionInRecord"
))
}
}
fun
extractRecordSet
(
record
:
JsonObject
):
FacetContainer
{
...
...
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