Author: david
Date: Mon Aug 31 12:20:38 2009
New Revision: 3130
Log:
Add equivalent terms for place access points to search index.
Modified:
trunk/lib/model/QubitInformationObject.php
Modified: trunk/lib/model/QubitInformationObject.php
==============================================================================
--- trunk/lib/model/QubitInformationObject.php Mon Aug 31 00:02:46 2009
(r3129)
+++ trunk/lib/model/QubitInformationObject.php Mon Aug 31 12:20:38 2009
(r3130)
@@ -944,16 +944,28 @@
public function getPlacesString($language)
{
$placeString = '';
+ $places = array();
- $places = $this->getPlaceAccessPoints();
- if ($places)
+ $placeAps = $this->getPlaceAccessPoints();
+ if ($placeAps)
{
- foreach ($places as $place)
+ foreach ($placeAps as $placeAp)
{
- $placeString .= $place->getTerm(array('culture' => $language)).' ';
+ $placeTerm = $placeAp->getTerm();
+ $places[] = $placeTerm->getName(array('culture' => $language));
+
+ if (0 < count($equivalentTerms =
$placeTerm->getEquivalentTerms(array('direction' => 'subjectToObject'))))
+ {
+ foreach ($equivalentTerms as $eqTerm)
+ {
+ $places[] = $eqTerm->getName(array('culture' => $language));
+ }
+ }
}
}
+ $placeString = implode(' ', $places);
+
return $placeString;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---