Author: sevein
Date: Wed Aug 17 15:50:41 2011
New Revision: 9526
Log:
Add link to digital object edition fielset
Modified:
trunk/apps/qubit/modules/digitalobject/templates/_rights.php
Modified: trunk/apps/qubit/modules/digitalobject/templates/_rights.php
==============================================================================
--- trunk/apps/qubit/modules/digitalobject/templates/_rights.php Wed Aug
17 15:26:54 2011 (r9525)
+++ trunk/apps/qubit/modules/digitalobject/templates/_rights.php Wed Aug
17 15:50:41 2011 (r9526)
@@ -1,6 +1,6 @@
<div class="section">
- <h2><?php echo __('Digital object (%1%) rights area', array('%1%' =>
$resource->usage)) ?></h2>
+ <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user,
'informationObject'), '<h2>'.__('Digital object (%1%) rights area', array('%1%'
=> $resource->usage)).'</h2>', array($resource, 'module' => 'digitalobject',
'action' => 'edit'), array('title' => __('Edit digital object'))) ?>
<?php foreach ($resource->getRights() as $item): ?>
@@ -14,7 +14,7 @@
<?php if ($child = $resource->getChildByUsageId(QubitTerm::REFERENCE_ID)): ?>
- <h2><?php echo __('Digital object (%1%) rights area', array('%1%' =>
$child->usage)) ?></h2>
+ <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user,
'informationObject'), '<h2>'.__('Digital object (%1%) rights area', array('%1%'
=> $child->usage)).'</h2>', array($resource, 'module' => 'digitalobject',
'action' => 'edit'), array('title' => __('Edit digital object'))) ?>
<?php foreach ($child->getRights() as $item): ?>
@@ -30,7 +30,7 @@
<?php if ($child = $resource->getChildByUsageId(QubitTerm::THUMBNAIL_ID)): ?>
- <h2><?php echo __('Digital object (%1%) rights area', array('%1%' =>
$child->usage)) ?></h2>
+ <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user,
'informationObject'), '<h2>'.__('Digital object (%1%) rights area', array('%1%'
=> $child->usage)).'</h2>', array($resource, 'module' => 'digitalobject',
'action' => 'edit'), array('title' => __('Edit digital object'))) ?>
<?php foreach ($child->getRights() as $item): ?>
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.