Permalink
Browse files

- chg: revert the last revert

  • Loading branch information...
1 parent 7ea0c0b commit ad90986c9b4df1a79e1ff35b0ff8c27003bd1bf2 @larseidam larseidam committed Nov 28, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 jshtmlplugins/alsfrsquestion.phtml
View
6 jshtmlplugins/alsfrsquestion.phtml
@@ -17,6 +17,7 @@ $topic = $this->selectedModel->sparqlQuery(
<'. $element ['predicateuri'] .'> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://als.dispedia.info/frs/o/Topic> .
<'. $element ['predicateuri'] .'> <http://www.w3.org/2000/01/rdf-schema#label> ?label .
<'. $element ['predicateuri'] .'> <http://als.dispedia.info/frs/o/suggestedQuestion> ?suggestedQuestion .
+ FILTER (langmatches(lang(?label), "'. $this->selectedLanguage .'"))
};'
);
@@ -34,12 +35,13 @@ foreach ( $element ['typeparameter']['options'] as $option ) {
?optionUri <http://www.w3.org/2000/01/rdf-schema#label> ?label .
<'. $option .'> <http://www.w3.org/2000/01/rdf-schema#label> ?label .
<'. $option .'> <http://als.dispedia.info/frs/o/hasScore> ?score .
+ FILTER (langmatches(lang(?label), "'. $this->selectedLanguage .'"))
}
ORDER BY ?score;'
);
- $o [1] ['optionValue'] = $option;
- $element ['outputOptions'][] = $o [1];
+ $o [0] ['optionValue'] = $option;
+ $element ['outputOptions'][] = $o [0];
}
$entrySelected = false;

0 comments on commit ad90986

Please sign in to comment.