/**
  * Print links for the various functions that are possible to do.
  * 
  * @return void
  * @access public
  * @date 8/6/04
  * @static
  */
 static function printFunctionLinks()
 {
     $links = array();
     $harmoni = Harmoni::instance();
     $actionString = $harmoni->getCurrentAction();
     //===== NameBrowse Link =====//
     if ($actionString != "collections.namebrowse") {
         $links[] = "<a href='" . $harmoni->request->quickURL("collections", "namebrowse") . "'>" . _("Browse") . "</a>";
     } else {
         $links[] = _("Browse");
     }
     //===== TypeBrowse Link =====//
     if ($actionString != "collections.typebrowse") {
         $links[] = "<a href='" . $harmoni->request->quickURL("collections", "typebrowse") . "'>" . _("Browse by Type") . "</a>";
     } else {
         $links[] = _("browse by type");
     }
     //===== Search Link =====//
     if ($actionString != "collections.search") {
         $links[] = "<a href='" . $harmoni->request->quickURL("collections", "search") . "'>" . _("Search") . "</a>";
     } else {
         $links[] = _("search");
     }
     //===== Create Link =====//
     require_once MYDIR . "/main/modules/collection/create.act.php";
     $createAction = new createAction();
     if ($createAction->isAuthorizedToExecute()) {
         // 		if (true) {
         $links[] = "<a href='" . $harmoni->request->quickURL("collection", "create") . "'>" . _("Create a new <em>Collection</em>") . "</a>";
         //===== Import Link =====//
         $links[] = "<a href='" . $harmoni->request->quickURL("collections", "import") . "'>" . _("Import <em>Collection(s)</em>") . "</a>";
     }
     print implode("\n\t | ", $links);
 }
Example #2
0
 /**
  * Build the content for this action
  * 
  * @return boolean
  * @access public
  * @since 4/26/05
  */
 function buildContent()
 {
     $actionRows = $this->getActionRows();
     $harmoni = Harmoni::instance();
     ob_start();
     print "<p>";
     print _("<em>Collections</em> are containers for <em>Assets</em>. <em>Assets</em> can in turn contain other Assets. Each collection can have its own cataloging schema.");
     print "</p>\n<ul>";
     print "\n\t<li><a href='";
     print $harmoni->request->quickURL("collections", "namebrowse");
     print "'>";
     print _("Browse <em>Collections</em> by Name");
     print "</a></li>";
     print "\n\t<li><a href='";
     print $harmoni->request->quickURL("collections", "typebrowse");
     print "'>";
     print _("Browse <em>Collections</em> by Type");
     print "</a></li>";
     print "\n\t<li><a href='";
     print $harmoni->request->quickURL("collections", "search");
     print "'>";
     print _("Search <em>Collections</em> for <em> Assets</em>");
     print "</a></li>";
     print "</ul>\n<p>";
     print _("Some <em>Collections</em>, <em>Exhibitions</em>, <em>Assets</em>, and <em>Slide-Shows</em> may be restricted to certain users or groups of users. Log in above to ensure your greatest access to all parts of the system.");
     print "</p>";
     // If the user is authorized, allow them to create a new collection.
     require_once MYDIR . "/main/modules/collection/create.act.php";
     if (createAction::isAuthorizedToExecute()) {
         print "\n<ul>\n<li><a href='";
         print $harmoni->request->quickURL("collection", "create");
         print "'>";
         print _("Create a new <em>Collection</em>");
         print "</a>\n</li>\n</ul>";
     }
     $actionRows->add(new Block(ob_get_contents(), 3), "100%", null, CENTER, CENTER);
     ob_end_clean();
 }