Author: david
Date: Thu Oct 15 11:51:55 2009
New Revision: 3754
Log:
Use getPublicationStatus() method to grab status from ancestors.
Modified:
trunk/apps/qubit/modules/search/templates/recentUpdatesSuccess.php
Modified: trunk/apps/qubit/modules/search/templates/recentUpdatesSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/search/templates/recentUpdatesSuccess.php Thu Oct
15 10:54:11 2009 (r3753)
+++ trunk/apps/qubit/modules/search/templates/recentUpdatesSuccess.php Thu Oct
15 11:51:55 2009 (r3754)
@@ -31,7 +31,7 @@
<?php if ('informationobject' == $objectType): ?>
<?php $title = render_title($result->getTitle(array('cultureFallback' =>
true))) ?>
<?php echo link_to($title, array('module' => 'informationobject',
'action' => 'show', 'id' => $result->getId())) ?>
- <?php $status = $result->getStatus(array('typeId' =>
QubitTerm::STATUS_TYPE_PUBLICATION_ID)) ?>
+ <?php $status = $result->getPublicationStatus() ?>
<?php if ($status->statusId == QubitTerm::PUBLICATION_STATUS_DRAFT_ID):
?><span class="note2"><?php echo ' ('.$status->status.')' ?></span><?php endif;
?>
<?php elseif ('actor' == $objectType || 'repository' == $objectType): ?>
<?php $name =
render_title($result->getAuthorizedFormOfName(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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---