@@ -111,9 +111,9 @@ if($this->preview) // module visualize
111
111
<table style='display:block;' id="metadataTable" class="midasTree">
112
112
<thead>
113
113
<tr>
114
- <th ><?php echo $ this ->t ('Element ' );?> </th>
115
- <th ><?php echo $ this ->t ('Qualifier ' );?> </th>
116
- <th ><?php echo $ this ->t ('Value ' );?> </th>
114
+ <th class='elementHeader' ><?php echo $ this ->t ('Element ' );?> </th>
115
+ <th class='qualifierHeader' ><?php echo $ this ->t ('Qualifier ' );?> </th>
116
+ <th class='valueHeader' ><?php echo $ this ->t ('Value ' );?> </th>
117
117
</tr>
118
118
</thead>
119
119
<tbody>
@@ -174,9 +174,7 @@ if($this->preview) // module visualize
174
174
</div>
175
175
<div class="viewSideBar">
176
176
<?php
177
- $ modules = Zend_Registry::get ('modulesEnable ' );
178
- $ statisticsEnabled = in_array ('statistics ' , $ modules );
179
- if ($ this ->preview || $ this ->isModerator ||$ this ->isAdmin || $ statisticsEnabled )
177
+ if ($ this ->preview || $ this ->isModerator || $ this ->isAdmin )
180
178
{?>
181
179
<div class="sideElementFirst viewAction">
182
180
@@ -204,7 +202,7 @@ if($this->preview) // module visualize
204
202
<a href='javascript:;' class='addMetadataLink' ><img alt='' src=' {$ this ->coreWebroot }/public/images/icons/metadata.png'/> {$ this ->t ('Add Metadata ' )}</a>
205
203
</li>
206
204
<li>
207
- <a href='javascript:;' type='item' element=' {$ this ->itemDao ->getKey ()}' class='sharingLink' ><img alt='' src=' {$ this ->coreWebroot }/public/images/icons/share.png'/> {$ this ->t ('Share ' )}</a>
205
+ <a href='javascript:;' type='item' element=' {$ this ->itemDao ->getKey ()}' class='sharingLink' ><img alt='' src=' {$ this ->coreWebroot }/public/images/icons/share.png'/> {$ this ->t ('Permissions ' )}</a>
208
206
</li>
209
207
<li>
210
208
<a href='javascript:;' type='item' element=' {$ this ->itemDao ->getKey ()}' class='uploadRevisionLink' ><img alt='' src=' {$ this ->coreWebroot }/public/images/icons/upload.png'/> {$ this ->t ('Upload new revision ' )}</a>
@@ -220,10 +218,14 @@ if($this->preview) // module visualize
220
218
</li>
221
219
" ;
222
220
}
223
- echo
224
- "<li>
225
- <a href=' " .$ this ->webroot ."/statistics/item?id= " .$ this ->itemDao ->getKey ()."'><img alt='' src=' {$ this ->coreWebroot }/public/images/icons/metadata.png'/> {$ this ->t ('Statistics ' )}</a>
226
- </li> " ;
221
+ $ htmltArray = Zend_Registry::get ('notifier ' )->callback ("CALLBACK_CORE_ITEM_VIEW_ACTIONMENU " , array ('item ' => $ this ->itemDao , 'isModerator ' => $ this ->isModerator , 'isAdmin ' => $ this ->isAdmin ));
222
+ foreach ($ htmltArray as $ html )
223
+ {
224
+ if (!empty ($ html ))
225
+ {
226
+ echo $ html ;
227
+ }
228
+ }
227
229
?>
228
230
</ul>
229
231
</div>
@@ -262,7 +264,15 @@ if($this->preview) // module visualize
262
264
}
263
265
?>
264
266
</div>
265
- <?php
267
+ <?php
268
+ $ htmltArray = Zend_Registry::get ('notifier ' )->callback ("CALLBACK_CORE_ITEM_VIEW_INFO " , array ('item ' => $ this ->itemDao , 'isModerator ' => $ this ->isModerator , 'isAdmin ' => $ this ->isAdmin ));
269
+ foreach ($ htmltArray as $ html )
270
+ {
271
+ if (!empty ($ html ))
272
+ {
273
+ echo $ html ;
274
+ }
275
+ }
266
276
if (count ($ this ->sameLocation ) > 1 )
267
277
{?>
268
278
<div class='sideElementLast viewSameLocation'>
@@ -282,7 +292,3 @@ if($this->preview) // module visualize
282
292
}
283
293
?>
284
294
</div>
285
-
286
-
287
-
288
-
0 commit comments