Author: sevein
Date: Wed Jul 27 11:58:33 2011
New Revision: 9405

Log:
Use relatedRights component in acession show screen

Modified:
   trunk/plugins/qtAccessionPlugin/modules/accession/templates/indexSuccess.php

Modified: 
trunk/plugins/qtAccessionPlugin/modules/accession/templates/indexSuccess.php
==============================================================================
--- 
trunk/plugins/qtAccessionPlugin/modules/accession/templates/indexSuccess.php    
    Wed Jul 27 11:56:52 2011        (r9404)
+++ 
trunk/plugins/qtAccessionPlugin/modules/accession/templates/indexSuccess.php    
    Wed Jul 27 11:58:33 2011        (r9405)
@@ -76,16 +76,7 @@
 
   <?php echo link_to_if(QubitAcl::check($resource, 'update'), 
'<h2>'.__('Rights area').'</h2>', array($resource, 'module' => 'accession', 
'action' => 'edit'), array('anchor' => 'rightsArea', 'title' => __('Edit rights 
area'))) ?>
 
-  <div class="field">
-    <h3><?php echo __('Related rights') ?></h3>
-    <div>
-      <ul>
-        <?php foreach (QubitRelation::getRelationsBySubjectId($resource->id, 
array('typeId' => QubitTerm::RIGHT_ID)) as $item): ?>
-          <li><?php echo render_title($item->object) ?></li>
-        <?php endforeach; ?>
-      </ul>
-    </div>
-  </div>
+  <?php echo get_component('right', 'relatedRights', array('resource' => 
$resource)) ?>
 
 </div> <!-- /.section#rightsArea -->
 

-- 
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.

Reply via email to