HyraxでIIIFの設定を行う
HyraxはIIIFに対応している。IIIFサーバにriiif、ビューワにUniversal Viewerを利用しているが、デフォルトでは有効にはなっていない。
IIIFサーバを有効にするには、Hyraxの config/initializers/hyrax.rb を以下のように変更する。
# Enable IIIF image service. This is required to use the # UniversalViewer-ified show page # # If you have run the riiif generator, an embedded riiif service # will be used to deliver images via IIIF. If you have not, you will # need to configure the following other configuration values to work # with your image server: # # * iiif_image_url_builder # * iiif_info_url_builder # * iiif_image_compliance_level_uri # * iiif_image_size_default # # Default is false config.iiif_image_server = true # この行を編集
Hyraxを再起動した後、新しく画像をアップロードし、Universal Viewerによる画像ビューワが表示されることを確認する。