Skip to content

Commit

Permalink
fixed expert special case
Browse files Browse the repository at this point in the history
  • Loading branch information
StiftungAusNachlass committed Mar 20, 2024
1 parent 9f349f0 commit d3095a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/webfrontend/CustomDataTypeDante.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ class CustomDataTypeDANTE extends CustomDataTypeWithCommons
type: "match"
mode: "token"
bool: "must",
phrase: false
phrase: true
fields: [ @path() + '.' + @name() + ".conceptAncestors" ]
]
if ! data[@name()]
Expand Down Expand Up @@ -797,7 +797,9 @@ class CustomDataTypeDANTE extends CustomDataTypeWithCommons
else
cdata.conceptName = resultJSKOS.prefLabel[Object.keys(resultJSKOS.prefLabel)[0]]

opts.data[that.name(opts)] = CUI.util.copyObject(cdata)
if opts?.data
opts.data[that.name(opts)] = CUI.util.copyObject(cdata)

if opts?.callfrompoolmanager
if opts.data
cdata = CUI.util.copyObject(cdata)
Expand Down

0 comments on commit d3095a6

Please sign in to comment.