Jana
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Islandora Mirador ## Introduction This module implements [Mirador](https://github.com/IIIF/mirador) open source [IIIF](http://iiif.io/) image viewer for Islandora Book and Large Image objects and provides functionality to generate IIIF Manifests and ingest them into our [IIIF API](https://github.com/utlib/utl_iiif_api) server. This module is based off [Islandora Mirador Bookreader](https://github.com/utlib/islandora_mirador_bookreader) and [Islandora SharedCanvas Manifest Generator](https://github.com/utlib/islandora_sc_manifest). Initial development of both modules was supported by the The Andrew W. Mellon Foundation for the [French Renaissance Paleography website](https://paleography.library.utoronto.ca/). ## Prerequisite * Drupal 7.x with Islandora 7.x * Drupal module [Libraries API](https://www.drupal.org/project/libraries) * Compiled Mirador javascript library * [Stable 2.x release version](https://github.com/ProjectMirador/mirador/tree/release-2.x) You need to compile it following the README file. The Master branch contains many experimental features that are not stable, but fun for testing. * UTL IIIF [Presentation API](https://iiif.library.utoronto.ca/presentation/v2/collections) server * Github https://github.com/utlib/utl_iiif_api * IIIF [Image API](http://iiif.io/api/image/2.0/) server * [Loris](https://github.com/loris-imageserver/loris) works well. ## Install 1. Download compiled Mirador javascript library into Drupal's libraries directory, usually in`sites/all/libraries`. Verify the file permission is web servable. 2. Clone and enable this module. 3. Go to admin/islandora/solution_pack_config/book and choose **Mirador BookReader** under Book Viewers and Page Viewers. 4. Go to /admin/islandora/solution_pack_config/large_image and choose **Mirador BookReader** under Viewers NOTE: Uninstall *sc_manifest_generator* module (if installed). ## Generate IIIF Manifest In order for the viewer to automatically display the current page's book object, you can generate and ingest a IIIF Manifest for the object and tell the viewer to use this when loading the page. This produces [IIIF Manifest](http://iiif.io/api/presentation/2.1) for the following Islandora Solution Packs: * [Islandora Book Solution Pack](https://github.com/Islandora/islandora_solution_pack_book) as a IIIF Manifest * [Islandora Large Image Solution Pack](https://wiki.duraspace.org/display/ISLANDORA715/Large+Image+Solution+Pack) as a IIIF Manifest * [Islandora Compound Solution Pack](https://wiki.duraspace.org/display/ISLANDORA715/Compound+Solution+Pack) as a IIIF Manifest for the Compound object's first Large Image child ### Usage There are two ways to generate IIIF Manifests: Via Drush or Via one of the above mentioned Solution Pack. Both ways would first delete the existing IIIF Manifest and then create the newly generated **IIIF Manifest** into the server. ### Drush On the command line, run the following drush command: ``` drush iiifgen PID_OF_OBJECT ``` where PID_OF_OBJECT is the PID of the object to generate IIIF Manifest. To generate the IIIF for a Collection and all of its children, run the drush command with the `recursive` flag: ``` drush iiifgen PID_OF_OBJECT --recursive ``` For testing and debugging purposes, run the drush command with the `test` and `show` flag: ``` drush iiifgen PID_OF_OBJECT --test --show ``` where `test` will prevent the datastream being ingested and `show` will output the generated JSON in the console. To perform the operation in production environment, run the drush command with `production` flag: ``` drush iiifgen PID_OF_OBJECT --production --auth='theAuthenticationToken' ``` All possible flags are as follows: ``` --recursive => Whether to recursively generate IIIF Manifest for this object including its children: true|false. Defaults to false. --test => Whether to run the command in Test mode: true|false. Defaults to false. --show => Whether to print the resulting IIIF JSON object: true|false. Defaults to false. --production => Whether to perform in production environment. Defaults to using development. --auth=<token> => JWT authentication token. Used to ingest the generated JSON into IIIF server. --delete => Whether to delete the given PID from IIIF server. ``` Example output when generating a Collection Manifest will look like: ``` drush iiifgen paleography:historicalmaps --test --recursive <<<<<<<-- Running in TEST mode. This will not ingest to Fedora. -->>>>>>>> Processing IIIF Collection for Object: paleography:historicalmaps Collection has 6 children Processing Sub Manifest: paleography:423 for Collection: paleography:historicalmaps Processing Sub Manifest: paleography:387 for Collection: paleography:historicalmaps .............. <<<<<<<-- Running in Recursive mode. -->>>>>>>> Processing Manifest paleography:423 Processing Canvas (Page) for Object: paleography:423 Processing Manifest paleography:423 Processing Canvas (Page) for Object: paleography:423 .............. Successfully generated the IIIF JSON for: paleography:historicalmaps [status] Successfully generated the IIIF JSON for: paleography:423 [status] Successfully generated the IIIF JSON for: paleography:423 [status] .............. ``` ### UI Each Comaptible Solution Pack object has a new **IIIF Generation** option under **Manage** through the admin UI for each object. The option exists as a sub-menu item. Clicking **Generate IIIF Manifest** will add/update a IIIF Manifest in the server. ## Customizations for the French Renaissance Paleography website ### Fixed thumbnail not showing up on first load The thumbnails do not appear unless the view changes. In $.ThumbnailsView's Handelbars the src attribute does not receive the value when first loading. To fix this, thumbUrl was placed into the src value. ### Load current manuscript first When Mirador is initialized with an array of manifests, it can display any one of them automatically by setting the loadedManifest option in the windowObjects array. However, Mirador does not prioritize loading the loadedManifest, causing it to wait until the other manifests before it in the array have been loaded. If the current manifest is in low position in a large array, the wait could be long. The fix was to manually rearrange the loadedManifest's position to be at top before initializing Mirador. ### Removing annotation overlay from all windows In official release the annotation overlay "speech bubble" can be removed by setting annotationLayer to false in the windowObjects array. However, the setting could not be applied to subsequent windows. Instead, the overlay link is hidden from view via CSS. ## Current maintainers * [University of Toronto Libraries:](http://its.library.utoronto.ca/) * [Kelli Babcock](http://its.library.utoronto.ca/staff/kelli-babcock) * [Bilal Khalid](https://github.com/bilalkhalid) * [Sunny Lee](https://github.com/sunnywd) * [Jana Rajakumar](https://github.com/jana-uoft) * [Monica Ung](https://github.com/monicau) ## Copyright and License Copyright 2020 University of Toronto Libraries Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully