示例#1
0
 function update()
 {
     //Check to see if we are adding copies.
     //If so, we wil need to process the hold queue after
     //The tile is saved
     $currentValue = new EContentRecord();
     $currentValue->id = $this->id;
     $currentValue->find(true);
     //Don't update solr, rely on the nightly reindex
     $ret = parent::update();
     if ($ret) {
         $this->clearCachedCover();
         if ($currentValue->N == 1 && $currentValue->availableCopies != $this->availableCopies) {
             require_once ROOT_DIR . '/Drivers/EContentDriver.php';
             $eContentDriver = new EContentDriver();
             $eContentDriver->processHoldQueue($this->id);
         }
     }
     return $ret;
 }