annotate openmindattribute/templates/openmindattribute_PERSON.tpl.php @ 9:cf772424f725

changed representation of relations in template. relations have source and target now.
author casties
date Mon, 22 Jun 2015 19:02:34 +0200
parents f651752ee9ad
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
124ef8f3b22d initial
Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
parents:
diff changeset
1 <h3 class="openmindattribute-header">Details</h3>
7
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
2
0
124ef8f3b22d initial
Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
parents:
diff changeset
3 <table class="openmindattribute-table" >
124ef8f3b22d initial
Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
parents:
diff changeset
4 <tr class="openmindattribute-row">
124ef8f3b22d initial
Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
parents:
diff changeset
5 <td class="openmindattribute-cell openmindattribute-name">Name</td>
7
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
6 <td class="openmindattribute-cell"><?php print $attributes['name']['ov'] ?><br/>
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
7 <?php print $attributes['name_translit']['romanization']?></td>
0
124ef8f3b22d initial
Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
parents:
diff changeset
8 </tr>
124ef8f3b22d initial
Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
parents:
diff changeset
9
9
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
10 <?php if (isset($attributes['birth_date_text']['ov'])): ?>
7
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
11 <tr class="openmindattribute-row">
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
12 <td class="openmindattribute-cell openmindattribute-name">Birth Date</td>
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
13 <td class="openmindattribute-cell"><?php print $attributes['birth_date_text']['ov'] ?></td>
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
14 </tr>
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
15 <?php endif; ?>
0
124ef8f3b22d initial
Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
parents:
diff changeset
16
7
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
17 <?php if (isset($relations['was_born_in'])): ?>
0
124ef8f3b22d initial
Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
parents:
diff changeset
18 <tr class="openmindattribute-row">
7
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
19 <td class="openmindattribute-cell openmindattribute-name">Place of Birth</td>
9
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
20 <td class="openmindattribute-cell"><?php print $relations['was_born_in'][0]['target']->title ?></td>
0
124ef8f3b22d initial
Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
parents:
diff changeset
21 </tr>
7
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
22 <?php endif; ?>
0
124ef8f3b22d initial
Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
parents:
diff changeset
23
9
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
24 <?php if (isset($attributes['death_date_text']['ov'])): ?>
7
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
25 <tr class="openmindattribute-row">
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
26 <td class="openmindattribute-cell openmindattribute-name">Death Date</td>
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
27 <td class="openmindattribute-cell"><?php print $attributes['death_date_text']['ov'] ?></td>
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
28 </tr>
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
29 <?php endif; ?>
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
30
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
31 <?php if (isset($relations['died_in'])): ?>
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
32 <tr class="openmindattribute-row">
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
33 <td class="openmindattribute-cell openmindattribute-name">Place of Death</td>
9
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
34 <td class="openmindattribute-cell"><?php print $relations['died_in'][0]['target']->title ?></td>
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
35 </tr>
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
36 <?php endif; ?>
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
37
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
38 <?php if (isset($relations['was_student_of'])): ?>
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
39 <tr class="openmindattribute-row">
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
40 <td class="openmindattribute-cell openmindattribute-name">Teachers</td>
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
41 <td class="openmindattribute-cell"><?php print $relations['was_student_of'][0]['target']->title ?></td>
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
42 </tr>
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
43 <?php endif; ?>
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
44
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
45 <?php if (isset($attributes['notes']['ov'])): ?>
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
46 <tr class="openmindattribute-row">
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
47 <td class="openmindattribute-cell openmindattribute-name">Notes</td>
cf772424f725 changed representation of relations in template. relations have source and target now.
casties
parents: 7
diff changeset
48 <td class="openmindattribute-cell"><?php print $attributes['notes']['ov'] ?></td>
7
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
49 </tr>
f651752ee9ad add relations to openmindattribute template variables. use relations for person template.
casties
parents: 0
diff changeset
50 <?php endif; ?>
0
124ef8f3b22d initial
Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
parents:
diff changeset
51
124ef8f3b22d initial
Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
parents:
diff changeset
52 </table>