Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Concept.php |
— | — | @@ -18,6 +18,9 @@ |
19 | 19 | /** |
20 | 20 | * Method for handling the ask concept function. |
21 | 21 | * |
| 22 | + * @todo The possible use of this in an HTML or Specal page context needs to be revisited. The code mentions it, but can this actually happen? |
| 23 | + * @todo The escaping of symbols in concept queries needs to be revisited. |
| 24 | + * |
22 | 25 | * @since 1.5.3 |
23 | 26 | * |
24 | 27 | * @param Parser $parser |
— | — | @@ -54,11 +57,9 @@ |
55 | 58 | $query = SMWQueryProcessor::createQuery( $concept_input, array( 'limit' => 20, 'format' => 'list' ), SMWQueryProcessor::CONCEPT_DESC ); |
56 | 59 | $concept_text = $query->getDescription()->getQueryString(); |
57 | 60 | |
58 | | - $dv = SMWDataValueFactory::newPropertyObjectValue( $pconc ); |
59 | | - $dv->setValues( $concept_text, $concept_docu, $query->getDescription()->getQueryFeatures(), $query->getDescription()->getSize(), $query->getDescription()->getDepth() ); |
60 | | - |
61 | 61 | if ( SMWParseData::getSMWData( $parser ) !== null ) { |
62 | | - SMWParseData::getSMWData( $parser )->addPropertyObjectValue( $pconc, $dv ); |
| 62 | + $diConcept = new SMWDIConcept( $concept_text, $concept_docu, $query->getDescription()->getQueryFeatures(), $query->getDescription()->getSize(), $query->getDescription()->getDepth() ); |
| 63 | + SMWParseData::getSMWData( $parser )->addPropertyObjectValue( $pconc, $diConcept ); |
63 | 64 | } |
64 | 65 | |
65 | 66 | // display concept box: |