islandora/islandora_defaults

此包已被 弃用 并不再维护。作者建议使用 islandora/islandora-starter-site 包。

Islandora Defaults

安装次数: 89,639

依赖项: 4

建议者: 0

安全性: 0

星标: 2

关注者: 36

分支: 26

类型:drupal-module

3.0.1 2022-10-31 12:08 UTC

README

Islandora Defaults

Build Status Contribution Guidelines LICENSE

未来开发

Islandora Defaults 已不再积极开发,并正在被弃用。其核心目的是被(并且已经被)创建一个示例启动站点的项目所取代,该项目存在于 islandora-starter-site 仓库中。您可以在此处查看公告 here

弃用/移除准备

为了减轻从现有安装中移除此模块的难度,我们已经实现了一个更新后钩子,该钩子应该会从它安装的配置实体中删除对此模块的任何引用。要使用它,您应该更新到您的 Drupal 项目的 islandora/islandora_defaults 包,使其包含新钩子,并运行它。在 CLI 中,这可能看起来像这样

# Navigate to the root of your Composer project; for example:
cd /var/www/html/drupal

# Update islandora/islandora_defaults to "3.0.1" so that it has the post-update hooks
# available. 
composer require "islandora/islandora_defaults:^3.0.1"
# A caveat exists in that, if `islandora/islandora_defaults` is required by any
# other Composer package, then those packages may have to be updated first; for
# example, it is known that there exist Drupal installation profiles that
# specify a dependency on `islandora/islandora_defaults` (such as https://github.com/Islandora-Devops/islandora_install_profile_demo/blob/181a53bb230d7ced6e70e7746f0da567216ebbf7/composer.json#L157),
# which would likely have to receive a treatment to strip out any references
# from their configurations which explicitly bind to `islandora_defaults`
# similar to our update hook, and to include updated requirements accordingly
# in the root Composer project.

# Clear cache (paranoia; to ensure the update hooks are appropriately
# discovered).
drush cr

# Run the update hook.
drush updb

# Now that our config entities should stay behind, the module itself should be
# fine to be uninstalled. Note that this should/may also result in the
# uninstallation of the islandora_oaipmh and islandora_search modules; though,
# the configurations they included should remain in the system.
drush pm-uninstall islandora_defaults

# Perform a dry-run removal to list out all that would be removed, when
# islandora/islandora_defaults is removed, as some modules may only be included
# transitively.
composer remove --dry-run islandora/islandora_defaults

# Add back some of the modules that might just be included in the project
# transitively, for example:
composer require "drupal/field_group:^3" "drupal/field_permissions:^1" \
  "islandora/controlled_access_terms:^2" "islandora/islandora_mirador:^2"
# However, in the event that you indeed are not using some of these modules, you
# might instead proceed to ensure that they are uninstalled from Drupal, similar
# to the "drush pm-uninstall" invocation above. For the version specs to use, it
# may be useful to refer to what the our `composer.json` specifies.

# Remove the package from the project entirely.
composer remove islandora/islandora_defaults

# Clear the caches, for cleanup/paranoia.
drush cr

# Restart your webserver to register the movement of islandora_mirador from
# submodule to a module in its own right; otherwise, caching of class
# definitions might lead to errors. The command might look something like:
sudo systemctl restart apache2
在上下文中输出的结果,这可能看起来像

这在一个复苏的 standard 实例上执行,为了一些非常小的准备,以解决更新钩子代码尚未存在于发布代码中的事实(因此必须指向开发分支(dev-fix/config-enforcement)并相应地使用别名( [...] as 3.x-dev))。在运行发布后,应使用版本规范 ^3

vagrant@islandora8:~$ cd /var/www/html/drupal
vagrant@islandora8:/var/www/html/drupal$ composer require "islandora/islandora_defaults:dev-fix/config-enforcement as 3.x-dev"
./composer.json has been updated
Running composer update islandora/islandora_defaults
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Lock file operations: 1 install, 1 update, 0 removals
  - Upgrading islandora/islandora_defaults (2.1.1 => dev-fix/config-enforcement dac37d2)
  - Locking islandora/islandora_mirador (2.2.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 1 update, 0 removals
  - Downloading islandora/islandora_mirador (2.2.1)
  - Downloading islandora/islandora_defaults (dev-fix/config-enforcement dac37d2)
  - Installing islandora/islandora_mirador (2.2.1): Extracting archive
  - Upgrading islandora/islandora_defaults (2.1.1 => dev-fix/config-enforcement dac37d2): Extracting archive
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package silex/silex is abandoned, you should avoid using it. Use symfony/flex instead.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating autoload files
68 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found
vagrant@islandora8:/var/www/html/drupal$ drush cr
 [warning] Illegal string offset 'label' OaiPmh.php:116
 [warning] Illegal string offset 'value' OaiPmh.php:116
 [warning] Illegal string offset 'label' OaiPmh.php:116
 [warning] Illegal string offset 'value' OaiPmh.php:116
 [success] Cache rebuild complete.
vagrant@islandora8:/var/www/html/drupal$ drush updb
 -------------------- ------------- ------------- ---------------------------
  Module               Update ID     Type          Description
 -------------------- ------------- ------------- ---------------------------
  islandora_defaults   remove_enfo   post-update   Remove "enforced"
                       rced_depend                 dependency on this module
                       ency                        from installed config.
 -------------------- ------------- ------------- ---------------------------


 Do you wish to run the specified pending updates? (yes/no) [yes]:
 >

>  [notice] Update started: islandora_defaults_post_update_remove_enforced_dependency
>  [notice] Update completed: islandora_defaults_post_update_remove_enforced_dependency
>  [warning] Illegal string offset 'label' OaiPmh.php:116
>  [warning] Illegal string offset 'value' OaiPmh.php:116
>  [warning] Illegal string offset 'label' OaiPmh.php:116
>  [warning] Illegal string offset 'value' OaiPmh.php:116
 [success] Finished performing updates.
vagrant@islandora8:/var/www/html/drupal$ drush pm-uninstall islandora_defaults
The following extensions will be uninstalled: islandora_defaults, islandora_oaipmh, islandora_search

 Do you want to continue? (yes/no) [yes]:
 >

 [warning] Illegal string offset 'label' OaiPmh.php:116
 [warning] Illegal string offset 'value' OaiPmh.php:116
 [warning] Illegal string offset 'label' OaiPmh.php:116
 [warning] Illegal string offset 'value' OaiPmh.php:116
 [success] Successfully uninstalled: islandora_defaults, islandora_oaipmh, islandora_search
vagrant@islandora8:/var/www/html/drupal$ composer require "drupal/field_group:^3" "drupal/field_permissions:^1"   "islandora/controlled_access_terms:^2" "islandora/islandora_mirador:^2"
./composer.json has been updated
Running composer update drupal/field_group drupal/field_permissions islandora/controlled_access_terms islandora/islandora_mirador
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 0 updates, 0 removals
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package silex/silex is abandoned, you should avoid using it. Use symfony/flex instead.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating autoload files
68 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found
vagrant@islandora8:/var/www/html/drupal$ composer remove islandora/islandora_defaults
./composer.json has been updated
Running composer update islandora/islandora_defaults
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 0 updates, 1 removal
  - Removing islandora/islandora_defaults (dev-fix/config-enforcement dac37d2)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 0 updates, 1 removal
  - Removing islandora/islandora_defaults (dev-fix/config-enforcement dac37d2)
Deleting web/modules/contrib/islandora_defaults - deleted
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package silex/silex is abandoned, you should avoid using it. Use symfony/flex instead.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating autoload files
68 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found
vagrant@islandora8:/var/www/html/drupal$ drush cr
 [warning] Illegal string offset 'label' OaiPmh.php:116
 [warning] Illegal string offset 'value' OaiPmh.php:116
 [warning] Illegal string offset 'label' OaiPmh.php:116
 [warning] Illegal string offset 'value' OaiPmh.php:116
 [success] Cache rebuild complete.
vagrant@islandora8:/var/www/html/drupal$ sudo systemctl restart apache2
vagrant@islandora8:/var/www/html/drupal$

警告

 [warning] Illegal string offset 'label' OaiPmh.php:116
 [warning] Illegal string offset 'value' OaiPmh.php:116

... 来自 islandora_defaults 为旧架构(更改它的提交)发布的 REST OAI-PMH 模块,它超出了当前努力的范围。

介绍

Islandora Defaults 是一个 Drupal 功能,旨在展示完整 Islandora 安装的全部功能。它提供自定义内容类型、上下文、查看器和其他“启动器”配置,反映了一个基准 Islandora 网站的情况。预计您将使用这些默认值并进一步自定义它们以适应您的用例。

安装

Islandora_defaults 是一个 Drupal 功能。有关更多信息,请参阅 Drupal 功能文档

配置

Islandora_defaults 是一组 Drupal 配置。它可以进一步通过自定义内容类型、操作和 Drupal 中 islandora_defaults 配置的其他方面进行自定义。

维护者

当前维护者

文档

有关此模块的更多文档可在 Islandora 文档网站上找到

故障排除/问题

遇到问题或解决问题?请在 Islandora Google Groups 中查找解决方案。

开发

如果您想做出贡献,请通过参加我们每周的 技术电话会议 来参与。我们很高兴听到您的声音!

如果您想为项目贡献代码,您需要遵守 Islandora 基金会的贡献者许可协议企业贡献者许可协议。请访问 Islandora.ca 上的贡献者页面获取更多信息。

我们建议您使用ISLE-DCislandora-playbook开始。

许可证

GPLv2