Author: david
Date: Mon Sep 26 14:20:51 2011
New Revision: 9833
Log:
Print 'none' if no access conditions specified
Modified:
trunk/apps/qubit/modules/physicalobject/templates/boxListSuccess.php
Modified: trunk/apps/qubit/modules/physicalobject/templates/boxListSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/physicalobject/templates/boxListSuccess.php
Mon Sep 26 14:09:36 2011 (r9832)
+++ trunk/apps/qubit/modules/physicalobject/templates/boxListSuccess.php
Mon Sep 26 14:20:51 2011 (r9833)
@@ -51,7 +51,11 @@
<?php echo render_title($item->getCollectionRoot()) ?>
<?php endif; ?>
</td><td>
- <?php echo
render_value($item->getAccessConditions(array('cultureFallback' => true))) ?>
+ <?php if (null != ($accessConditions =
$item->getAccessConditions(array('cultureFallback' => true)))): ?>
+ <?php echo render_value($accessConditions) ?>
+ <?php else: ?>
+ <?php echo _('None') ?>
+ <?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
--
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.