--- a/cms/app-client/app/templates/components/notice-component.hbs Mon Feb 06 16:05:02 2017 +0100
+++ b/cms/app-client/app/templates/components/notice-component.hbs Wed Feb 08 15:25:24 2017 +0100
@@ -1,5 +1,11 @@
<h2>{{ item.title }}</h2>
-<h5>{{#if item.id }}<a href={{abs-url-for "document" item.id}} class="notice-permalink" target="_blank">permalien</a>{{/if}}</h5>
+{{#if item.alternativeTitle }}
+<h3>{{ item.alternativeTitle }}</h3>
+{{/if}}
+<div class="notice-links">
+ <h5>{{#if item.id }}<a href={{abs-url-for "document" item.id}} class="notice-permalink" target="_blank">permalien</a>{{/if}}</h5>
+ <h5>{{#if item.cocoonId }}<a href={{noticeCocoonPurlUrl}} class="notice-permalink" target="_blank">notice sur Cocoon</a>{{/if}}</h5>
+</div>
<table>
<tr>
<td class="title">Editeur{{#if (if-operator item.publishers.length '>' 1)}}s{{/if}}</td>
@@ -16,7 +22,7 @@
<td>{{#each item.languages as |lang index|}}{{if index ", "}}{{ component (getLinkType lang) url=lang class="language" onClick=(action 'addLanguageFilter' lang) displayUrlLink=true}}{{/each}}</td>
</tr>
<tr>
- <td class="title">Sujet{{#if (if-operator item.computedSubjects.length '>' 1)}}s{{/if}}</td>
+ <td class="title">Sujet{{#if (if-operator item.subjects.length '>' 1)}}s{{/if}}</td>
<td>
<ul>
{{#each item.subjects as |subject|}}
@@ -28,6 +34,26 @@
</td>
</tr>
<tr>
+ <td class="title">Type{{#if (if-operator item.types.length '>' 1)}}s{{/if}}</td>
+ <td>
+ <ul>
+ {{#each item.types as |type|}}
+ <li>
+ {{component (getLinkType type) url=type onClick=(action "addThemeFilter" type) displayUrlLink=true}}
+ </li>
+ {{/each}}
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td class="title">Description</td>
+ <td>
+ {{#each item.descriptions as |description|}}
+ <p>{{ doc-literal url=description }}</p>
+ {{/each}}
+ </td>
+ </tr>
+ <tr>
<td class="title">Enregistré en</td>
<td>{{ doc-created value=item.created }}</td>
</tr>
@@ -43,10 +69,14 @@
</tr>
<tr>
<td class="title">Lieu</td>
- <td>{{ notice-location-component geoInfo=item.geoInfo }}</td>
+ <td>{{ notice-location-component geoInfo=item.geoInfo countryCode=item.countryCode }}</td>
</tr>
<tr>
<td class="title">Durée</td>
<td>{{to-minutes item.duration}}</td>
</tr>
+ <tr>
+ <td class="title">Droits</td>
+ <td>{{ doc-rights url=item.rights }}</td>
+ </tr>
</table>
\ No newline at end of file