author | ymh <ymh.work@gmail.com> |
Wed, 22 Feb 2017 17:58:25 +0100 | |
changeset 521 | b3c738a20af8 |
parent 513 | dad9471f0d63 |
child 529 | 5d9eacbd5794 |
permissions | -rw-r--r-- |
416
6e6b7363f45f
Simplify notice component and add permalink
ymh <ymh.work@gmail.com>
parents:
339
diff
changeset
|
1 |
<h2>{{ item.title }}</h2> |
502
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
2 |
{{#if item.alternativeTitle }} |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
3 |
<h3>{{ item.alternativeTitle }}</h3> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
4 |
{{/if}} |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
5 |
<div class="notice-links"> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
6 |
<h5>{{#if item.id }}<a href={{abs-url-for "document" item.id}} class="notice-permalink" target="_blank">permalien</a>{{/if}}</h5> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
7 |
<h5>{{#if item.cocoonId }}<a href={{noticeCocoonPurlUrl}} class="notice-permalink" target="_blank">notice sur Cocoon</a>{{/if}}</h5> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
8 |
</div> |
217
989b9c36b849
Toolbar and Notice component styles
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
9 |
<table> |
433
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
10 |
<tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
11 |
<td class="title">Editeur{{#if (if-operator item.publishers.length '>' 1)}}s{{/if}}</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
12 |
<td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
13 |
<ul> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
14 |
{{#each item.publishers as |publisher|}} |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
15 |
<li>{{ publisher }}</li> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
16 |
{{/each}} |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
17 |
</ul> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
18 |
</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
19 |
</tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
20 |
<tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
21 |
<td class="title">Langue</td> |
511 | 22 |
<td>{{#each item.languages as |lang index|}}{{if index ", "}}{{ component (get-link-type lang) url=lang class="language" onClick=(action 'addLanguageFilter' lang) displayUrlLink=true}}{{/each}}</td> |
433
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
23 |
</tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
24 |
<tr> |
502
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
25 |
<td class="title">Sujet{{#if (if-operator item.subjects.length '>' 1)}}s{{/if}}</td> |
433
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
26 |
<td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
27 |
<ul> |
447
38d5789e30d0
Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents:
445
diff
changeset
|
28 |
{{#each item.subjects as |subject|}} |
433
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
29 |
<li> |
511 | 30 |
{{component (get-link-type subject) url=subject onClick=(action "addThemeFilter" subject) displayUrlLink=true}} |
433
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
31 |
</li> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
32 |
{{/each}} |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
33 |
</ul> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
34 |
</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
35 |
</tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
36 |
<tr> |
502
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
37 |
<td class="title">Type{{#if (if-operator item.types.length '>' 1)}}s{{/if}}</td> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
38 |
<td> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
39 |
<ul> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
40 |
{{#each item.types as |type|}} |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
41 |
<li> |
511 | 42 |
{{component (get-link-type type) url=type onClick=(action "addThemeFilter" type) displayUrlLink=true}} |
502
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
43 |
</li> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
44 |
{{/each}} |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
45 |
</ul> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
46 |
</td> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
47 |
</tr> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
48 |
<tr> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
49 |
<td class="title">Description</td> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
50 |
<td> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
51 |
{{#each item.descriptions as |description|}} |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
52 |
<p>{{ doc-literal url=description }}</p> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
53 |
{{/each}} |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
54 |
</td> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
55 |
</tr> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
56 |
<tr> |
433
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
57 |
<td class="title">Enregistré en</td> |
513
dad9471f0d63
add filter on created date in notice
ymh <ymh.work@gmail.com>
parents:
511
diff
changeset
|
58 |
<td>{{#if item.created }}{{ doc-created value=item.created action=(action "addCreatedFilter" item.created) class="notice-created"}}{{/if}}</td> |
433
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
59 |
</tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
60 |
<tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
61 |
<td class="title">Participant{{#if (if-operator participants.length '>' 1)}}s{{/if}}</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
62 |
<td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
63 |
<ul> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
64 |
{{#each participants as |participant|}} |
511 | 65 |
<li>{{component (get-link-type participant.identifier) url=participant.identifier }} ({{#each participant.role as |r index| }}{{if index ", "}}{{r}}{{/each}})</li> |
433
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
66 |
{{/each}} |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
67 |
</ul> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
68 |
</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
69 |
</tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
70 |
<tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
71 |
<td class="title">Lieu</td> |
502
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
72 |
<td>{{ notice-location-component geoInfo=item.geoInfo countryCode=item.countryCode }}</td> |
433
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
73 |
</tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
74 |
<tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
75 |
<td class="title">Durée</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
76 |
<td>{{to-minutes item.duration}}</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
77 |
</tr> |
502
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
78 |
<tr> |
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
79 |
<td class="title">Droits</td> |
521
b3c738a20af8
Add transcript right declaration, resolve bug #0026452
ymh <ymh.work@gmail.com>
parents:
513
diff
changeset
|
80 |
<td>{{ doc-rights url=item.rights object="Cette resource est mise à disposition"}}</td> |
502
74fba571487e
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
492
diff
changeset
|
81 |
</tr> |
521
b3c738a20af8
Add transcript right declaration, resolve bug #0026452
ymh <ymh.work@gmail.com>
parents:
513
diff
changeset
|
82 |
{{#if item.transcript }} |
b3c738a20af8
Add transcript right declaration, resolve bug #0026452
ymh <ymh.work@gmail.com>
parents:
513
diff
changeset
|
83 |
<tr> |
b3c738a20af8
Add transcript right declaration, resolve bug #0026452
ymh <ymh.work@gmail.com>
parents:
513
diff
changeset
|
84 |
<td class="title">Droits Transcript</td> |
b3c738a20af8
Add transcript right declaration, resolve bug #0026452
ymh <ymh.work@gmail.com>
parents:
513
diff
changeset
|
85 |
<td>{{ doc-rights url=item.transcript.rights object="Le transcript est mis à disposition"}}</td> |
b3c738a20af8
Add transcript right declaration, resolve bug #0026452
ymh <ymh.work@gmail.com>
parents:
513
diff
changeset
|
86 |
</tr> |
b3c738a20af8
Add transcript right declaration, resolve bug #0026452
ymh <ymh.work@gmail.com>
parents:
513
diff
changeset
|
87 |
{{/if}} |
b3c738a20af8
Add transcript right declaration, resolve bug #0026452
ymh <ymh.work@gmail.com>
parents:
513
diff
changeset
|
88 |
|
217
989b9c36b849
Toolbar and Notice component styles
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
89 |
</table> |