Example #1
0
 /**
  * Get all refereed data
  * 
  * @return array of Refereed objects
  */
 public function getAllRefereed()
 {
     $arrPeer = array();
     $arrResults = $this->select("SELECT * FROM xerxes_refereed");
     foreach ($arrResults as $arrResult) {
         $objPeer = new Refereed();
         $objPeer->load($arrResult);
         array_push($arrPeer, $objPeer);
     }
     return $arrPeer;
 }
Example #2
0
 /**
  * Add a peer-reviewed indicator for refereed journals
  */
 public function markRefereed()
 {
     // extract all the issns from the available records in one
     // single shot to make this more efficient
     $issns = $this->extractISSNs();
     if (count($issns) > 0) {
         // get all from our peer-reviewed list
         $data_map = new DataMapRefereed();
         $refereed_list = $data_map->getRefereed($issns);
         // now mark the records that matched
         foreach ($this->records as $record) {
             $xerxes_record = $record->getXerxesRecord();
             // check if the issn matched
             foreach ($refereed_list as $refereed) {
                 if (in_array($refereed->issn, $xerxes_record->getAllISSN())) {
                     // not if it is a review
                     if (stripos($xerxes_record->format()->getPublicFormat(), 'review') === false) {
                         $xerxes_record->setRefereed(true);
                     }
                 }
             }
         }
     }
 }