Author: david
Date: Wed Sep 30 15:55:28 2009
New Revision: 3622

Log:
Revert to link_to_if() tag for ISAD title (removed in r3621). Duplicate access 
changes for RAD, MODS and DC templates.

Modified:
   trunk/apps/qubit/modules/informationobject/templates/showDcSuccess.php
   trunk/apps/qubit/modules/informationobject/templates/showIsadSuccess.php
   trunk/apps/qubit/modules/informationobject/templates/showModsSuccess.php
   trunk/apps/qubit/modules/informationobject/templates/showRadSuccess.php

Modified: trunk/apps/qubit/modules/informationobject/templates/showDcSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/showDcSuccess.php      
Wed Sep 30 15:32:26 2009        (r3621)
+++ trunk/apps/qubit/modules/informationobject/templates/showDcSuccess.php      
Wed Sep 30 15:55:28 2009        (r3622)
@@ -5,7 +5,7 @@
 
 <tr>
   <td colspan="2" class="headerCell">
-    <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user, 
'informationObject'), render_title(QubitDc::getLabel($informationObject)), 
array('module' => 'informationobject', 'action' => 'edit', 'id' => 
$informationObject->id), array('title' => __('Edit resource metadata'))) ?>
+    <?php echo link_to_if(QubitAcl::check($informationObject, 
QubitAclAction::UPDATE_ID), 
render_title(QubitDc::getLabel($informationObject)), array('module' => 
'informationobject', 'action' => 'edit', 'id' => $informationObject->id), 
array('title' => __('Edit resource metadata'))) ?>
   </td>
 </tr>
 

Modified: 
trunk/apps/qubit/modules/informationobject/templates/showIsadSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/showIsadSuccess.php    
Wed Sep 30 15:32:26 2009        (r3621)
+++ trunk/apps/qubit/modules/informationobject/templates/showIsadSuccess.php    
Wed Sep 30 15:55:28 2009        (r3622)
@@ -5,11 +5,7 @@
 
 <tr>
   <td colspan="2" class="headerCell">
-  <?php if (QubitAcl::check($informationObject, QubitAclAction::UPDATE_ID)): ?>
-    <?php echo link_to(render_title(QubitIsad::getLabel($informationObject)), 
array('module' => 'informationobject', 'action' => 'edit', 'id' => 
$informationObject->id), array('title' => __('Edit archival description'))) ?>
-  <?php else: ?>
-    <?php echo render_title(QubitIsad::getLabel($informationObject)) ?>
-  <?php endif; ?>
+    <?php echo link_to_if(QubitAcl::check($informationObject, 
QubitAclAction::UPDATE_ID), 
render_title(QubitIsad::getLabel($informationObject)), array('module' => 
'informationobject', 'action' => 'edit', 'id' => $informationObject->id), 
array('title' => __('Edit archival description'))) ?>
   </td>
 </tr>
 

Modified: 
trunk/apps/qubit/modules/informationobject/templates/showModsSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/showModsSuccess.php    
Wed Sep 30 15:32:26 2009        (r3621)
+++ trunk/apps/qubit/modules/informationobject/templates/showModsSuccess.php    
Wed Sep 30 15:55:28 2009        (r3622)
@@ -5,7 +5,7 @@
 
 <tr>
   <td colspan="2" class="headerCell">
-    <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user, 
'informationObject'), render_title(QubitMods::getLabel($informationObject)), 
array('module' => 'informationobject', 'action' => 'edit', 'id' => 
$informationObject->id), array('title' => __('Edit resource metadata'))) ?>
+    <?php echo link_to_if(QubitAcl::check($informationObject, 
QubitAclAction::UPDATE_ID), 
render_title(QubitMods::getLabel($informationObject)), array('module' => 
'informationobject', 'action' => 'edit', 'id' => $informationObject->id), 
array('title' => __('Edit resource metadata'))) ?>
   </td>
 </tr>
 

Modified: 
trunk/apps/qubit/modules/informationobject/templates/showRadSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/showRadSuccess.php     
Wed Sep 30 15:32:26 2009        (r3621)
+++ trunk/apps/qubit/modules/informationobject/templates/showRadSuccess.php     
Wed Sep 30 15:55:28 2009        (r3622)
@@ -5,7 +5,7 @@
 
 <tr>
   <td colspan="2" class="headerCell">
-    <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user, 
'informationObject'), render_title(QubitRad::getLabel($informationObject)), 
array('module' => 'informationobject', 'action' => 'edit', 'id' => 
$informationObject->id), array('title' => __('Edit archival description'))) ?>
+    <?php echo link_to_if(QubitAcl::check($informationObject, 
QubitAclAction::UPDATE_ID), 
render_title(QubitRad::getLabel($informationObject)), array('module' => 
'informationobject', 'action' => 'edit', 'id' => $informationObject->id), 
array('title' => __('Edit archival description'))) ?>
   </td>
 </tr>
 

--~--~---------~--~----~------------~-------~--~----~
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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to