fix configs for adapt display and views
This commit is contained in:
parent
0ec44091a0
commit
9547f4ce46
3 changed files with 21 additions and 2 deletions
|
|
@ -174,7 +174,7 @@ func (manager *Manager) applyWissKI(ctx context.Context, progress io.Writer, wis
|
||||||
logging.LogMessage(progress, "Enable Wisski modules")
|
logging.LogMessage(progress, "Enable Wisski modules")
|
||||||
{
|
{
|
||||||
if err := manager.dependencies.Drush.Enable(ctx, progress,
|
if err := manager.dependencies.Drush.Enable(ctx, progress,
|
||||||
"colorbox", "devel", "ds", "ds_extras", "ds_switch_view_mode", "file_mdm_exif", "file_mdm_font", "file_mdm", "geofield", "geofield_map", "imce", "leaflet", "leaflet_markercluster", "leaflet_views", "sophron", "sophron_guesser", "wisski", "wisski_linkblock",
|
"colorbox", "conditional_fields", "devel", "ds", "ds_extras", "ds_switch_view_mode", "field_group", "file_mdm_exif", "file_mdm_font", "file_mdm", "geofield", "geofield_map", "imce", "leaflet", "leaflet_markercluster", "leaflet_views", "sophron", "sophron_guesser", "wisski", "wisski_linkblock",
|
||||||
); err != nil {
|
); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
@ -184,6 +184,16 @@ func (manager *Manager) applyWissKI(ctx context.Context, progress io.Writer, wis
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logging.LogMessage(progress, "Use main bundles for display, views for navigation")
|
||||||
|
{
|
||||||
|
if err := manager.dependencies.Drush.Exec(ctx, progress, "config:set", "wisski_core.settings", "wisski_use_only_main_bundles", "1", "--yes"); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if err := manager.dependencies.Drush.Exec(ctx, progress, "config:set", "wisski_core.settings", "wisski_use_views_for_navigate", "1", "--yes"); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
logging.LogMessage(progress, "Performing database updates (if any)")
|
logging.LogMessage(progress, "Performing database updates (if any)")
|
||||||
{
|
{
|
||||||
if err := manager.dependencies.Drush.Exec(ctx, progress, "updatedb", "--yes"); err != nil {
|
if err := manager.dependencies.Drush.Exec(ctx, progress, "updatedb", "--yes"); err != nil {
|
||||||
|
|
@ -191,6 +201,13 @@ func (manager *Manager) applyWissKI(ctx context.Context, progress io.Writer, wis
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logging.LogMessage(progress, "Clearing cache")
|
||||||
|
{
|
||||||
|
if err := manager.dependencies.Drush.Exec(ctx, progress, "cr", "--yes"); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}, progress, "Installing WissKI version %q", wisski)
|
}, progress, "Installing WissKI version %q", wisski)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,10 @@ var (
|
||||||
WissKI: "",
|
WissKI: "",
|
||||||
InstallModules: []string{
|
InstallModules: []string{
|
||||||
"drupal/colorbox",
|
"drupal/colorbox",
|
||||||
|
"drupal/conditional_fields:4.x-dev@dev",
|
||||||
"drupal/devel:^5.0",
|
"drupal/devel:^5.0",
|
||||||
"drupal/ds:^3.22",
|
"drupal/ds:^3.22",
|
||||||
|
"drupal/field_group:3.x-dev@dev",
|
||||||
"drupal/geofield:^1.56",
|
"drupal/geofield:^1.56",
|
||||||
"drupal/geofield_map:^3.0",
|
"drupal/geofield_map:^3.0",
|
||||||
"kint-php/kint:^5",
|
"kint-php/kint:^5",
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ function create_distillery_adapter(string $LABEL, string $MACHINE_NAME, string $
|
||||||
$is_preferred_local_store = TRUE; // is_preferred_local_store
|
$is_preferred_local_store = TRUE; // is_preferred_local_store
|
||||||
$read_url = 'http://triplestore:7200/repositories/' . $GRAPHDB_REPO; // read_url
|
$read_url = 'http://triplestore:7200/repositories/' . $GRAPHDB_REPO; // read_url
|
||||||
$write_url = 'http://triplestore:7200/repositories/' . $GRAPHDB_REPO . '/statements'; // write_url
|
$write_url = 'http://triplestore:7200/repositories/' . $GRAPHDB_REPO . '/statements'; // write_url
|
||||||
$is_federatable = TRUE; // is_federatable
|
$is_federatable = 0; // is_federatable
|
||||||
$default_graph_uri = 'https://' . $INSTANCE_DOMAIN . '/';
|
$default_graph_uri = 'https://' . $INSTANCE_DOMAIN . '/';
|
||||||
$same_as_properties = ['http://www.w3.org/2002/07/owl#sameAs']; // same_as_properties
|
$same_as_properties = ['http://www.w3.org/2002/07/owl#sameAs']; // same_as_properties
|
||||||
$ontology_graphs = []; // ontology_graphs
|
$ontology_graphs = []; // ontology_graphs
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue