getServerState() !== 'published') { // if ($model->getServerState() !== 'temporary') { // $this->removeDocumentFromIndexById($model->getId()); // } // return; // } $this->addDatasetToIndex($dataset); } /** * Handle the dataset "deleted" event. * * @param \App\Models\Dataset $dataset * @return void */ public function deleted(Dataset $dataset) { // } /** * Handle the dataset "restored" event. * * @param \App\Models\Dataset $dataset * @return void */ public function restored(Dataset $dataset) { // } /** * Handle the dataset "force deleted" event. * * @param \App\Models\Dataset $dataset * @return void */ public function forceDeleted(Dataset $dataset) { // } /** * Helper method to add dataset to index. * * @param Opus_Document $document * @return void */ private function addDatasetToIndex(Dataset $dataset) { $datasetId = $dataset->id; Log::debug(__METHOD__ . ': ' . 'Adding index job for document ' . $datasetId . '.'); } }