add keywords during publishing
This commit is contained in:
parent
f3f17d9371
commit
d9b26afb3f
13 changed files with 332 additions and 96 deletions
|
@ -7,6 +7,7 @@ use App\Models\License;
|
|||
use App\Models\Person;
|
||||
use App\Models\File;
|
||||
use App\Models\GeolocationBox;
|
||||
use App\Models\Subject;
|
||||
|
||||
/**
|
||||
* DatasetExtension short summary.
|
||||
|
@ -53,6 +54,11 @@ trait DatasetExtension
|
|||
'relation' => 'contributors',
|
||||
'fetch' => 'eager'
|
||||
),
|
||||
'Subject' => array(
|
||||
'model' => Subject::class,
|
||||
'relation' => 'subjects',
|
||||
'fetch' => 'eager'
|
||||
),
|
||||
'File' => array(
|
||||
'model' => File::class,
|
||||
'relation' => 'files',
|
||||
|
|
|
@ -186,7 +186,8 @@ class XmlModel
|
|||
$cache = XmlCache::where('document_id', $dataset->id)->first();
|
||||
return $cache->getDomDocument();
|
||||
} catch (Exception $e) {
|
||||
Log::warning(__METHOD__ . " Access to XML cache failed on " . get_class($dataset) . '#' . $dataset->id . ". Trying to recover.");
|
||||
Log::warning(__METHOD__ . " Access to XML cache failed on " . get_class($dataset) .
|
||||
'#' . $dataset->id . ". Trying to recover.");
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue