--- a/web/thdProject/apps/frontend/modules/partials/templates/_filmItem.php Thu Apr 29 03:08:10 2010 +0200
+++ b/web/thdProject/apps/frontend/modules/partials/templates/_filmItem.php Thu Apr 29 11:57:20 2010 +0200
@@ -1,4 +1,12 @@
-<div id="player-<?php echo $film->getRef(); ?>" class="player-item player-item-<?php echo ((isset($size) && $size == 'big') ? 'big' : 'mini');?>" style="background:transparent url('<?php echo uc_url_for_scimage(film_image_path($imageFilename), $thumbWidth, $thumbHeight); ?>') no-repeat;" href="<?php echo film_video_path($videoFilename);?>">
+<?php
+try {
+ $uc_url = uc_url_for_scimage(film_image_path($imageFilename), $thumbWidth, $thumbHeight);
+}
+catch(Exception $e) {
+ $uc_url = "";
+}
+?>
+<div id="player-<?php echo $film->getRef(); ?>" class="player-item player-item-<?php echo ((isset($size) && $size == 'big') ? 'big' : 'mini');?>" style="background:transparent url('<?php echo "$uc_url"; ?>') no-repeat;" href="<?php echo film_video_path($videoFilename);?>">
<div class="infos">
<a href="<?php echo $actionUri; ?>" class="title" target="_top"><?php echo $film->getTitle(); ?></a> <span class="film-infos">De <?php echo thd_render_flat_list($film->getDirectorsArray(), 'name'); ?></span>
</div>
--- a/web/thdProject/lib/core/ThdUtil.php Thu Apr 29 03:08:10 2010 +0200
+++ b/web/thdProject/lib/core/ThdUtil.php Thu Apr 29 11:57:20 2010 +0200
@@ -88,6 +88,15 @@
->orderBy("count(T.id) DESC")
->limit($limit);
+
+ //facet=true&facet.limit=-1&facet.field=tags
+ //$parameters = Array('facet'=>'true', 'facet.limit'=>"$limit", 'facet.field'=>'tags' );
+
+ //$solr = uvmcSolrServicesManager::getInstance()->getService();
+ //$response = $solr->search("hello", 0, 10);
+ //$result = unserialize($response->getRawResponse());
+ //sfContext::getInstance()->getLogger()->info("SOLR FACET QUERY " . print_r($result,true));
+
foreach ($query->execute() as $item) {
$tags[] = Array('tag' => $item->getTag(), 'count' => (int) $item->count);
}
--- a/web/thdProject/lib/model/doctrine/ThdTagTable.class.php Thu Apr 29 03:08:10 2010 +0200
+++ b/web/thdProject/lib/model/doctrine/ThdTagTable.class.php Thu Apr 29 11:57:20 2010 +0200
@@ -4,5 +4,4 @@
*/
class ThdTagTable extends Doctrine_Table
{
-//http://localhost:8080/solr/select?q=*%3A*&rows=0&facet=true&facet.limit=-1&facet.field=tags
}
\ No newline at end of file