@@ -53,7 +53,39 @@ $this->headScript()->appendFile($this->coreWebroot . '/public/js/item/item.view.
53
53
</tbody>
54
54
</table>
55
55
56
- <h4 style="margin-bottom: 5px;"><?php echo $ this ->t ('Last revision content ' )?> :</h4>
56
+ <h4 style="margin-bottom: 5px;"><?php echo $ this ->t ('Latest revision metadata ' )?> :</h4>
57
+
58
+ <?php if (count ($ this ->metadatavalues ) == 0 )
59
+ {
60
+ echo "No metadata for this revision. " ;
61
+ }
62
+ else
63
+ {
64
+ ?>
65
+ <table id="metadataTable" class="midasTree">
66
+ <thead>
67
+ <tr>
68
+ <th ><?php echo $ this ->t ('Element ' );?> </th>
69
+ <th ><?php echo $ this ->t ('Qualifier ' );?> </th>
70
+ <th ><?php echo $ this ->t ('Value ' );?> </th>
71
+ </tr>
72
+ </thead>
73
+ <tbody>
74
+ <?php
75
+ foreach ($ this ->metadatavalues as $ metadata )
76
+ {
77
+ echo "<tr> " ;
78
+ echo " <td> " .$ metadata ->getElement ()."</td> " ;
79
+ echo " <td> " .$ metadata ->getQualifier ()."</td> " ;
80
+ echo " <td> " .$ metadata ->getValue ()."</td> " ;
81
+ echo "</tr> " ;
82
+ }
83
+ ?>
84
+ </tbody>
85
+ </table>
86
+ <?php } ?>
87
+
88
+ <h4 style="margin-bottom: 5px;"><?php echo $ this ->t ('Latest revision content ' )?> :</h4>
57
89
58
90
<table id="browseTable" class="midasTree">
59
91
<thead>
@@ -69,7 +101,7 @@ $this->headScript()->appendFile($this->coreWebroot . '/public/js/item/item.view.
69
101
foreach ($ bitstreams as $ bitstream )
70
102
{
71
103
echo "<tr> " ;
72
- echo " <td > {$ this ->slicename ($ bitstream ->getName (),50 )}</td> " ;
104
+ echo " <td> {$ this ->slicename ($ bitstream ->getName (),50 )}</td> " ;
73
105
echo " <td> {$ this ->Utility ->formatSize ($ bitstream ->getSizebytes ())} </td> " ;
74
106
echo " <td> {$ bitstream ->getMimetype ()}</td> " ;
75
107
echo "</tr> " ;
@@ -140,7 +172,7 @@ $this->headScript()->appendFile($this->coreWebroot . '/public/js/item/item.view.
140
172
<td><?php echo $ this ->itemDao ->lastrevision ->getRevision ()?> </td>
141
173
</tr>
142
174
<tr>
143
- <td><?php echo $ this ->t ('File ' );?> </td>
175
+ <td><?php echo $ this ->t ('# files ' );?> </td>
144
176
<td><?php echo count ($ this ->itemDao ->lastrevision ->getBitstreams ())?> </td>
145
177
</tr>
146
178
</tbody>
0 commit comments