/**
  * Print out an Item
  * 
  * @param object $item
  * @param string $viewAction The action to choose when clicking on a tag.
  * @return string
  * @access public
  * @since 11/8/06
  */
 function printTaggedItem(TaggedItem $item, $viewAction)
 {
     print "\n\t<a href='" . $item->getUrl() . "'>";
     if ($item->getThumbnailUrl()) {
         print "\n\t\t<img src='" . $item->getThumbnailUrl() . "' style=' float: right;' class='thumbnail_image' />";
     }
     if ($item->getDisplayName()) {
         print "\n\t\t<strong>" . $item->getDisplayName() . "</strong>";
     } else {
         print "\n\t\t<strong>" . _('untitled') . "</strong>";
     }
     print "\n\t</a>";
     print "\n\t<p>" . $item->getDescription() . "</p>";
     // Tags
     print "\n\t<p style='text-align: justify;'>";
     print "\n\t<strong>" . _('Tags') . ":</strong> ";
     print TagAction::getTagCloudForItem($item, $viewAction, array('font-size: 90%;', 'font-size: 100%;', 'font-size: 110%;'));
     print "\n\t</p>";
     print "\n\t<p><strong>" . _('System') . ":</strong> ";
     if ($item->getSystem() == ARBITRARY_URL) {
         print _("The Internet");
     } else {
         print ucFirst($item->getSystem());
     }
     print "</p>";
 }
 /**
  * Print out an Item
  * 
  * @param object $item
  * @param string $viewAction The action to choose when clicking on a tag.
  * @return string
  * @access public
  * @since 11/8/06
  */
 function printTaggedItem(TaggedItem $item, $viewAction)
 {
     print "\n\t<a href='" . $item->getUrl() . "'>";
     if ($item->getThumbnailUrl()) {
         print "\n\t\t<img src='" . $item->getThumbnailUrl() . "' style=' float: right;' class='thumbnail_image' />";
     }
     if ($item->getDisplayName()) {
         print "\n\t\t<strong>" . $item->getDisplayName() . "</strong>";
     } else {
         print "\n\t\t<strong>" . _('untitled') . "</strong>";
     }
     print "\n\t</a>";
     print "\n\t<p>" . $item->getDescription() . "</p>";
     // Tags
     //	print "\n\t<p style='text-align: justify;'>";
     print "\n\t<strong>" . _('Tags') . ":</strong> ";
     $authZ = Services::getService("AuthZ");
     $idManager = Services::getService("Id");
     if ($authZ->isUserAuthorized($idManager->getId("edu.middlebury.authorization.modify"), $item->getId())) {
         print TagAction::getTagCloudForItem($item, $viewAction, array('font-size: 90%;', 'font-size: 100%;', 'font-size: 110%;'));
     } else {
         print TagAction::getReadOnlyTagCloudForItem($item, $viewAction, array('font-size: 90%;', 'font-size: 100%;', 'font-size: 110%;'));
     }
     //	print "\n\t</p>";
     print "\n\t<p><strong>" . _('System') . ":</strong> ";
     if ($item->getSystem() == ARBITRARY_URL) {
         print _("The Internet");
     } else {
         print ucFirst($item->getSystem());
     }
     print "</p>";
 }