- solr.xslt autor and author_sort are now sorted by @SortOrder
- composer updates - new artisan command 'update:dataset {dataset : The ID of the dataset}' for updating solr index for specific datasets - DatasetExtension.php: alaso svae 'sort_order' for authors and contributors - twice solr.xslt: sort authors also in solr index
This commit is contained in:
parent
30afb3b1f8
commit
390b2396eb
8 changed files with 226 additions and 89 deletions
|
@ -95,7 +95,7 @@ class SolariumAdapter
|
|||
|
||||
foreach ($documents as $document) {
|
||||
if (!($document instanceof Dataset)) {
|
||||
throw new InvalidArgumentException("invalid dataset in provided set");
|
||||
throw new \InvalidArgumentException("invalid dataset in provided set");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ trait DatasetExtension
|
|||
'PersonAuthor' => array(
|
||||
'model' => Person::class,
|
||||
'through' => 'link_documents_persons',
|
||||
'pivot' => array('role' => 'author'),
|
||||
'pivot' => array('role' => 'author', 'sort_order' => 'sort_order'),
|
||||
//'sort_order' => array('sort_order' => 'ASC'), // <-- We need a sorted authors list.
|
||||
//'sort_field' => 'SortOrder',
|
||||
'relation' => 'persons',
|
||||
|
@ -59,7 +59,7 @@ trait DatasetExtension
|
|||
'PersonContributor' => array(
|
||||
'model' => Person::class,
|
||||
'through' => 'link_documents_persons',
|
||||
'pivot' => array('role' => 'contributor', 'contributor_type' => 'contributor_type'),
|
||||
'pivot' => array('role' => 'contributor', 'contributor_type' => 'contributor_type', 'sort_order' => 'sort_order'),
|
||||
// 'sort_order' => array('sort_order' => 'ASC'), // <-- We need a sorted authors list.
|
||||
//'sort_field' => 'SortOrder',
|
||||
'relation' => 'persons',
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue