| window.KorAP = window.KorAP || {}; |
| KorAP.annotationHelper = KorAP.annotationHelper || { '-' : [] }; |
| define(["util"], function () { |
| const ah = KorAP.annotationHelper; |
| ah.getDesc = function (foundryLayer, value) { |
| let anno = this[foundryLayer]; |
| if (!value.includes(':')) { |
| // Iterate over all annotations and add the descriptions |
| // This is a classic hash-lookup-case, but we have |
| // to deal with lists ... |
| for (var i = 0; i < anno.length; i++) { |
| const v = value.split(":"); |
| for (let i = 0; i < anno.length; i++) { |
| anno = this[foundryLayer + l1]; |
| for (let i = 0; i < anno.length; i++) { |
| text += ': ' + anno[i][2]; |