Author: sevein
Date: Wed Aug 17 16:31:23 2011
New Revision: 9530
Log:
Show rightsholder field only if available
Modified:
trunk/apps/qubit/modules/right/templates/_right.php
Modified: trunk/apps/qubit/modules/right/templates/_right.php
==============================================================================
--- trunk/apps/qubit/modules/right/templates/_right.php Wed Aug 17 16:30:17
2011 (r9529)
+++ trunk/apps/qubit/modules/right/templates/_right.php Wed Aug 17 16:31:23
2011 (r9530)
@@ -14,7 +14,9 @@
<?php echo render_show(__('End date'), render_value($resource->endDate)) ?>
- <?php echo render_show(__('Rights holder'),
render_value($resource->rightsHolder)) ?>
+ <?php if (isset($resource->rightsHolder)): ?>
+ <?php echo render_show(__('Rights holder'),
link_to(render_value($resource->rightsHolder), array($resource->rightsHolder,
'module' => 'rightsholder'))) ?>
+ <?php endif; ?>
<?php echo render_show(__('Right note'),
render_value($resource->getRightNote(array('cultureFallback' => true)))) ?>
--
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.