Author: jablko
Date: Thu Oct 28 03:04:26 2010
New Revision: 8623

Log:
Use render_title()

Modified:
   trunk/plugins/sfDcPlugin/modules/sfDcPlugin/templates/indexSuccess.php
   trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php
   trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/indexSuccess.php
   trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/indexSuccess.php

Modified: trunk/plugins/sfDcPlugin/modules/sfDcPlugin/templates/indexSuccess.php
==============================================================================
--- trunk/plugins/sfDcPlugin/modules/sfDcPlugin/templates/indexSuccess.php      
Thu Oct 28 02:52:16 2010        (r8622)
+++ trunk/plugins/sfDcPlugin/modules/sfDcPlugin/templates/indexSuccess.php      
Thu Oct 28 03:04:26 2010        (r8623)
@@ -13,7 +13,7 @@
 <?php endif; ?>
 
 <?php if (0 < count($resource->digitalObjects)): ?>
-  <?php echo get_component('digitalobject', 'show', array('digitalObject' => 
$resource->digitalObjects[0], 'usageType' => QubitTerm::REFERENCE_ID, 'link' => 
$digitalObjectLink)) ?>
+  <?php echo get_component('digitalobject', 'show', array('link' => 
$digitalObjectLink, 'resource' => $resource->digitalObjects[0], 'usageType' => 
QubitTerm::REFERENCE_ID)) ?>
 <?php endif; ?>
 
 <?php echo render_show(__('Identifier'), render_value($resource->identifier)) 
?>
@@ -78,7 +78,7 @@
 <?php echo render_show(__('Rights'), 
render_value($resource->getAccessConditions(array('cultureFallback' => true)))) 
?>
 
 <?php if (0 < count($resource->digitalObjects)): ?>
-  <?php echo get_partial('digitalobject/metadata', array('digitalObject' => 
$resource->digitalObjects[0])) ?>
+  <?php echo get_partial('digitalobject/metadata', array('resource' => 
$resource->digitalObjects[0])) ?>
 <?php endif; ?>
 
 <?php echo get_partial('informationobject/actions', array('resource' => 
$resource)) ?>

Modified: 
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php
==============================================================================
--- trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php  
Thu Oct 28 02:52:16 2010        (r8622)
+++ trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php  
Thu Oct 28 03:04:26 2010        (r8623)
@@ -13,7 +13,7 @@
 <?php endif; ?>
 
 <?php if (0 < count($resource->digitalObjects)): ?>
-  <?php echo get_component('digitalobject', 'show', array('digitalObject' => 
$resource->digitalObjects[0], 'usageType' => QubitTerm::REFERENCE_ID, 'link' => 
$digitalObjectLink)) ?>
+  <?php echo get_component('digitalobject', 'show', array('link' => 
$digitalObjectLink, 'resource' => $resource->digitalObjects[0], 'usageType' => 
QubitTerm::REFERENCE_ID)) ?>
 <?php endif; ?>
 
 <div class="section" id="identityArea">
@@ -56,7 +56,7 @@
     <div class="field">
       <h3><?php echo __('Related function')?></h3>
       <div>
-        <?php echo link_to($item->subject->getLabel(), array($item->subject, 
'module' => 'function')) ?>
+        <?php echo link_to(render_title($item->subject->getLabel()), 
array($item->subject, 'module' => 'function')) ?>
       </div>
     </div>
   <?php endforeach; ?>
@@ -204,7 +204,7 @@
 </div> <!-- /.section#descriptionControlArea -->
 
 <?php if (0 < count($resource->digitalObjects)): ?>
-  <?php echo get_partial('digitalobject/metadata', array('digitalObject' => 
$resource->digitalObjects[0])) ?>
+  <?php echo get_partial('digitalobject/metadata', array('resource' => 
$resource->digitalObjects[0])) ?>
 <?php endif; ?>
 
 <?php echo get_partial('informationobject/actions', array('resource' => 
$resource)) ?>

Modified: 
trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/indexSuccess.php
==============================================================================
--- trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/indexSuccess.php  
Thu Oct 28 02:52:16 2010        (r8622)
+++ trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/indexSuccess.php  
Thu Oct 28 03:04:26 2010        (r8623)
@@ -3,7 +3,7 @@
 <?php echo link_to_if(QubitAcl::check($resource, 'update'), '<h1 
class="label">'.render_title($mods).'</h1>', array($resource, 'module' => 
'informationobject', 'action' => 'edit'), array('title' => __('Edit resource 
metadata'))) ?>
 
 <?php if (0 < count($resource->digitalObjects)): ?>
-  <?php echo get_component('digitalobject', 'show', array('digitalObject' => 
$resource->digitalObjects[0], 'usageType' => QubitTerm::REFERENCE_ID, 'link' => 
$digitalObjectLink)) ?>
+  <?php echo get_component('digitalobject', 'show', array('link' => 
$digitalObjectLink, 'resource' => $resource->digitalObjects[0], 'usageType' => 
QubitTerm::REFERENCE_ID)) ?>
 <?php endif; ?>
 
 <?php echo render_show(__('Identifier'), render_value($resource->identifier)) 
?>
@@ -72,7 +72,7 @@
 </div>
 
 <?php if (0 < count($resource->digitalObjects)): ?>
-  <?php echo get_partial('digitalobject/metadata', array('digitalObject' => 
$resource->digitalObjects[0])) ?>
+  <?php echo get_partial('digitalobject/metadata', array('resource' => 
$resource->digitalObjects[0])) ?>
 <?php endif; ?>
 
 <?php echo get_partial('informationobject/actions', array('resource' => 
$resource)) ?>

Modified: 
trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/indexSuccess.php
==============================================================================
--- trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/indexSuccess.php    
Thu Oct 28 02:52:16 2010        (r8622)
+++ trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/indexSuccess.php    
Thu Oct 28 03:04:26 2010        (r8623)
@@ -13,7 +13,7 @@
 <?php endif; ?>
 
 <?php if (0 < count($resource->digitalObjects)): ?>
-  <?php echo get_component('digitalobject', 'show', array( 'digitalObject' => 
$resource->digitalObjects[0], 'usageType' => QubitTerm::REFERENCE_ID, 'link' => 
$digitalObjectLink)) ?>
+  <?php echo get_component('digitalobject', 'show', array('link' => 
$digitalObjectLink, 'resource' => $resource->digitalObjects[0], 'usageType' => 
QubitTerm::REFERENCE_ID)) ?>
 <?php endif; ?>
 
 <div class="section" id="titleAndStatementOfResponsibilityArea">
@@ -254,7 +254,7 @@
 </div> <!-- /.section -->
 
 <?php if (0 < count($resource->digitalObjects)): ?>
-  <?php echo get_partial('digitalobject/metadata', array('digitalObject' => 
$resource->digitalObjects[0])) ?>
+  <?php echo get_partial('digitalobject/metadata', array('resource' => 
$resource->digitalObjects[0])) ?>
 <?php endif; ?>
 
 <?php echo get_partial('informationobject/actions', array('resource' => 
$resource)) ?>

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