Cartographer User and Technical Documentation
Home
User Docs
Technical Docs
Home
User Docs
Technical Docs
  • User Documentation
    • Introduction
    • Cartographer App
    • User Interface
    • Actions
  • Technical Documentation
    • Components

      • AppFooter Component
      • AppHeader Component
      • AppSidebar Component
      • ContentPreviewMdiv Component
      • Content Preview Measure
      • Content Preview Pane
      • ImageSelection Modal
      • LoadGitModal Component
      • LoadIIIFModal Component
      • LoadXMLModal Component
      • MainMenu Component
      • MeasureModal Component
      • MdivModal Component
      • OsdComponent Component
      • PageImportModal Component
      • PagesListEntry Component
      • PagesModal Component
    • Store
      • Vuex Store (src/store/index.js)
    • Tools
      • IIIF Tools (src/tools/iiif.js)
      • MEI Mapping Tools (src/tools/meimapping.js)

LoadXMLModal Component

Displays a modal dialog for importing a IIIF manifest URL and converting it to an MEI file.


Overview

The LoadXMLModal component:

  • Shows a modal dialog for the user to input a IIIF manifest URL.
  • Provides a button to autofill a test IIIF manifest URL.
  • On import, triggers an action to convert the IIIF manifest to an MEI file for the Mercator app.
  • Modal can be closed with the Cancel button or overlay.
  • Uses Vuex store for state management and actions.

Layout

  • Header: Modal title ("Load IIIF") and close button.
  • Body:
    • Input field for IIIF manifest URL.
    • Description of the import process.
    • Button to autofill a test IIIF manifest URL.
  • Footer: Cancel and Import buttons.

Props

None


Data

NameTypeDescription
testUriStringExample IIIF manifest URL for autofill

Methods

NameDescription
useTestUriAutofills the input with a test IIIF manifest URL
mainTriggers import action if the input is a valid URL, then closes the modal
closeModalCloses the modal dialog

Example

<LoadXMLModal />
Prev
LoadIIIFModal Component
Next
MainMenu Component