aid in menu, aigrain on the side
[prawokultury.git] / doc / solr-conf / velocity / product-doc.vm
1 <div class="result-title"><b>#field('name')</b><span class="mlt">   #if($params.getBool('mlt', false) == false)<a href="#lensNoQ&q=id:$docId&mlt=true">More Like This</a>#end</span></div>
2 ##do we have a physical store for this product
3 #set($store = $doc.getFieldValue('store'))
4 #if($store)<div class="map"><img src="http://maps.google.com/maps/api/staticmap?&zoom=12&size=150x80&maptype=roadmap&markers=$doc.getFieldValue('store')&sensor=false" /><div><small><a target="_map" href="http://maps.google.com/?q=$store&amp;source=embed">Larger Map</a></small></div></div>#end
5 <div>Id: #field('id')</div>
6 <div>Price: #field('price_c')</div>
7 <div>Features: #field('features')</div>
8 <div>In Stock: #field('inStock')</div>
9 <div class="mlt">
10   #set($mlt = $mltResults.get($docId))
11   #set($mltOn = $params.getBool('mlt'))
12   #if($mltOn == true)<div class="field-name">Similar Items</div>#end
13   #if ($mltOn && $mlt && $mlt.size() > 0)
14   <ul>
15     #foreach($mltHit in $mlt)
16       #set($mltId = $mltHit.getFieldValue('id'))
17       <li><div><a href="#url_for_home?q=id:$mltId">$mltId</a></div><div><span class="field-name">Name:</span> $mltHit.getFieldValue('name')</div>
18         <div><span class="field-name">Price:</span> $!number.currency($mltHit.getFieldValue('price')) <span class="field-name">In Stock:</span> $mltHit.getFieldValue('inStock')</div>
19
20       </li>
21     #end
22   </ul>
23   #elseif($mltOn && $mlt.size() == 0)
24     <div>No Similar Items Found</div>
25   #end
26 </div>
27 #parse('debug.vm')