Beispiel #1
0
 /**
  * Retrieve an RT configuration.
  * @param $journalId int
  * @return RT
  */
 function &getJournalRTByJournal(&$journal)
 {
     $rt = new JournalRT($journal->getId());
     $rt->setEnabled($journal->getSetting('rtEnabled') ? true : false);
     $rt->setVersion((int) $journal->getSetting('rtVersionId'));
     $rt->setAbstract($journal->getSetting('rtAbstract') ? true : false);
     $rt->setCaptureCite($journal->getSetting('rtCaptureCite') ? true : false);
     $rt->setViewMetadata($journal->getSetting('rtViewMetadata') ? true : false);
     $rt->setSupplementaryFiles($journal->getSetting('rtSupplementaryFiles') ? true : false);
     $rt->setPrinterFriendly($journal->getSetting('rtPrinterFriendly') ? true : false);
     $rt->setDefineTerms($journal->getSetting('rtDefineTerms') ? true : false);
     $rt->setEmailAuthor($journal->getSetting('rtEmailAuthor') ? true : false);
     $rt->setEmailOthers($journal->getSetting('rtEmailOthers') ? true : false);
     $rt->setFindingReferences($journal->getSetting('rtFindingReferences') ? true : false);
     $rt->setViewReviewPolicy($journal->getSetting('rtViewReviewPolicy') ? true : false);
     $rt->setSharingEnabled($journal->getSetting("rtSharingEnabled") ? $journal->getSetting("rtSharingEnabled") : "");
     $rt->setSharingUserName($journal->getSetting("rtSharingUserName") ? $journal->getSetting("rtSharingUserName") : "");
     $rt->setSharingButtonStyle($journal->getSetting("rtSharingButtonStyle") ? $journal->getSetting("rtSharingButtonStyle") : "");
     $rt->setSharingDropDownMenu($journal->getSetting("rtSharingDropDownMenu") ? $journal->getSetting("rtSharingDropDownMenu") : "");
     $rt->setSharingBrand($journal->getSetting("rtSharingBrand") ? $journal->getSetting("rtSharingBrand") : "");
     $rt->setSharingDropDown($journal->getSetting("rtSharingDropDown") ? $journal->getSetting("rtSharingDropDown") : "");
     $rt->setSharingLanguage($journal->getSetting("rtSharingLanguage") ? $journal->getSetting("rtSharingLanguage") : "");
     $rt->setSharingLogo($journal->getSetting("rtSharingLogo") ? $journal->getSetting("rtSharingLogo") : "");
     $rt->setSharingLogoBackground($journal->getSetting("rtSharingLogoBackground") ? $journal->getSetting("rtSharingLogoBackground") : "");
     $rt->setSharingLogoColor($journal->getSetting("rtSharingLogoColor") ? $journal->getSetting("rtSharingLogoColor") : "");
     return $rt;
 }