Beispiel #1
0
 static function loadDescription($eContentRecord)
 {
     global $interface;
     global $configArray;
     global $library;
     global $timer;
     $marc = MarcLoader::loadEContentMarcRecord($eContentRecord);
     $descriptionArray = array();
     //Load the description
     if (strlen($eContentRecord->description) > 0) {
         $descriptionArray['description'] = EcontentRecord_Description::trimDescription($eContentRecord->description);
     } else {
         //TODO: Check syndetics for eContent
         $descriptionArray['description'] = "Description Not Provided";
     }
     //Load publisher
     $descriptionArray['publisher'] = $eContentRecord->publisher;
     if ($descriptionArray) {
         return $descriptionArray;
     }
 }
Beispiel #2
0
 static function loadDescription($eContentRecord, $forSummary = false)
 {
     $descriptionArray = array();
     //Load the description
     if (strlen($eContentRecord->description) > 0) {
         $descriptionArray['description'] = EcontentRecord_Description::trimDescription($eContentRecord->description);
     } else {
         $marc = MarcLoader::loadEContentMarcRecord($eContentRecord);
         require_once ROOT_DIR . '/services/Record/Description.php';
         global $library;
         $allowExternalDescription = true;
         if (isset($library) && $library->preferSyndeticsSummary == 0) {
             $allowExternalDescription = false;
         }
         if ($forSummary) {
             $allowExternalDescription = false;
         }
         $descriptionArray = Record_Description::loadDescriptionFromMarc($marc, $allowExternalDescription);
     }
     //Load publisher
     $descriptionArray['publisher'] = $eContentRecord->publisher;
     return $descriptionArray;
 }