client/app/search/search.html
changeset 7 e70f1c4785f3
parent 6 4be9f21f2df1
child 8 824c87a9084c
--- a/client/app/search/search.html	Mon Oct 06 12:59:13 2014 +0200
+++ b/client/app/search/search.html	Mon Oct 06 17:36:47 2014 +0200
@@ -3,18 +3,18 @@
 <div ng-if="results.nhits>0">
   <div class="row search-item" ng-repeat="h in results.hits" ng-init="h.imgbig=false">
       <div ng-class="{'col-md-5': h.imgbig, 'col-md-3': !h.imgbig}">
-        <img src="{{ h.url }}" ng-class="{'search-img-max': !h.imgbig}"/>
+        <img src="{{ h.metas_dict.images }}" ng-class="{'search-img-max': !h.imgbig}"/>
       </div>
       <div ng-class="{'col-md-5': h.imgbig, 'col-md-7': !h.imgbig}">
-	      <p><strong>Nom&nbsp;:</strong> {{ h.metas|meta:"name" }}</p>
-	      <p><strong>Description&nbsp;:</strong> {{ h.metas|meta:"description" }}</p>
+	      <p><strong>Nom&nbsp;:</strong> {{ h.metas_dict.name }}</p>
+	      <p><strong>Description&nbsp;:</strong> {{ h.metas_dict.description }}</p>
 	      <div ng-show="h.imgbig">
-		      <p><small><strong>Classification&nbsp;:</strong> {{ h.metas|meta:"classification" }}</small></p>
-		      <p><small><strong>Current Custody&nbsp;:</strong> {{ h.metas|meta:"currentcustody" }}</small></p>
-		      <p><small><strong>Former Custody&nbsp;:</strong> {{ h.metas|meta:"formercustody" }}</small></p>
-		      <p><small><strong>Mesures&nbsp;:</strong> {{ h.metas|meta:"measures" }}</small></p>
-		      <p><small><strong>Acteurs&nbsp;:</strong> {{ h.metas|meta:"actors" }}</small></p>
-		      <p><small><strong>Lieux&nbsp;:</strong> {{ h.metas|meta:"places" }}</small></p>
+		      <p><small><strong>Classification&nbsp;:</strong> {{ h.metas_dict.classification }}</small></p>
+		      <p><small><strong>PropriƩtaire actuel&nbsp;:</strong> {{ h.metas_dict.currentcustody }}</small></p>
+		      <p><small><strong>Ancien propriƩtaire&nbsp;:</strong> {{ h.metas_dict.formercustody }}</small></p>
+		      <p><small><strong>Mesures&nbsp;:</strong> {{ h.metas_dict.measures }}</small></p>
+		      <p><small><strong>Acteurs&nbsp;:</strong> {{ h.metas_dict.actors }}</small></p>
+		      <p><small><strong>Lieux&nbsp;:</strong> {{ h.metas_dict.places }}</small></p>
 	      </div>
       </div>
       <div class="col-md-1">