Author: sevein
Date: Sat Apr 28 20:43:16 2012
New Revision: 11536
Log:
Cosmetic changes, save facets only once
Modified:
branches/2.0/apps/qubit/modules/search/actions/indexAction.class.php
Modified: branches/2.0/apps/qubit/modules/search/actions/indexAction.class.php
==============================================================================
--- branches/2.0/apps/qubit/modules/search/actions/indexAction.class.php
Sat Apr 28 00:02:54 2012 (r11535)
+++ branches/2.0/apps/qubit/modules/search/actions/indexAction.class.php
Sat Apr 28 20:43:16 2012 (r11536)
@@ -156,6 +156,7 @@
$facets[strtr($name, '.', '_')]['terms'][$term['term']] =
array('count' => $term['count'],
'term' =>
$reponames[$term['term']]);
}
+
break;
case 'subjects.id':
@@ -174,6 +175,7 @@
$facets[strtr($name, '.', '_')]['terms'][$term['term']] =
array('count' => $term['count'],
'term' =>
$subjectAPnames[$term['term']]);
}
+
break;
case 'digitalObject.mediaTypeId':
@@ -192,6 +194,7 @@
$facets[strtr($name, '.', '_')]['terms'][$term['term']] =
array('count' => $term['count'],
'term' =>
$mediaTypeNames[$term['term']]);
}
+
break;
case 'dates.startDate':
@@ -215,6 +218,7 @@
$facets[strtr($name, '.', '_')]['terms'][$term['term']] =
array('count' => $term['count'],
'term' =>
$placeAPnames[$term['term']]);
}
+
break;
case 'names.id':
@@ -233,6 +237,7 @@
$facets[strtr($name, '.', '_')]['terms'][$term['term']] =
array('count' => $term['count'],
'term' =>
$nameAPnames[$term['term']]);
}
+
break;
case 'i18n.culture':
@@ -241,10 +246,12 @@
$facets[strtr($name, '.', '_')]['terms'][$term['term']] =
array('count' => $term['count'],
'term' =>
sfCultureInfo::getInstance($this->context->user->getCulture())->getLanguage($term['term']));
}
+
break;
}
- $this->pager->facets = $facets;
}
+
+ $this->pager->facets = $facets;
}
}
else if (empty($this->error))
--
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.com/group/qubit-commits?hl=en.