diff --git a/js/browseMgr.js b/js/browseMgr.js index b641a6b..8c45618 100644 --- a/js/browseMgr.js +++ b/js/browseMgr.js @@ -1913,9 +1913,14 @@ $(document).ready(function() { if (binding.has('sentence')) sentenceid=binding.get('sentence').value.replace(hdnNamespace, '') - if (pos > 0 && !result.has(pos)) { - - result.add(pos) + if (pos && !result.has(pos)) { + if (pos.includes(';')){ + var posses=pos.slice(0,-1).split(';') + for (po in posses) + result.add(posses[po]) + } + else + result.add(pos) resultsInCantica.push(cantica); resultsInCanto.push(cantica + canto) } diff --git a/js/utilsMgr.js b/js/utilsMgr.js index 307acdd..6765f25 100644 --- a/js/utilsMgr.js +++ b/js/utilsMgr.js @@ -311,6 +311,7 @@ function buildSPQuery(guiquery) { multipleCondSpQuery.where.push(occBindConcatStatement) if (posBindConcatStatement['expression']['args'].length){ multipleCondSpQuery.where.push(posBindConcatStatement) + multipleCondSpQuery.variables.push(JSON.parse(sentencetarget_posVariable)) //multipleCondSpQuery.where.push(sentencetargetstatement_posCoalesce) }